Search found 68 matches

by telanx
24 Jan 2020, 08:33
Forum: 其他
Topic: 新年 - New Year
Replies: 5
Views: 20265

Re: 新年 - New Year

@garry 哥們,鼠年新年快樂! :bravo: :dance: :superhappy:
by telanx
19 Jan 2020, 11:47
Forum: Ask for Help (v1)
Topic: How can I loop two things simultaneously?
Replies: 1
Views: 402

Re: How can I loop two things simultaneously?

There is a problem with the code, rethink your code structure. toggle := 0 !x:: Loop{ send {s down} sleep, 50 send {s up} sleep, 200 send {RButton} } ; ----------> Because the loop has no break, It's an endless loop. So when using hotkeys it is always only in this loop. MouseGetPos, MouseX, MouseY i...
by telanx
18 Jan 2020, 00:05
Forum: Ask for Help (v1)
Topic: Double Click Script Help
Replies: 8
Views: 4083

Re: Double Click Script Help

If you are left button double click, try this tool. Left Mouse Button Fix
by telanx
17 Jan 2020, 20:13
Forum: Ask for Help (v1)
Topic: IfWinActive with Websites
Replies: 14
Views: 2111

Re: IfWinActive with Websites

An easy way is to match if a keyword exists in the title and then run the function you need. ; keyword list, Case Sensitive Keyword := "YouTube,Notion,Instagram" !a:: WinGetTitle, Title, A ;Get Window Title loop, Parse, Keyword, `, ;Keyword slicing { while inStr(Title, A_LoopField) { ;while keyword ...
by telanx
17 Jan 2020, 20:02
Forum: Ask for Help (v1)
Topic: Compiled script disappears from taskbar after opening Topic is solved
Replies: 18
Views: 2556

Re: Compiled script disappears from taskbar after opening Topic is solved

Try reducing the code to find cause. use this to try whether it works.

Code: Select all

#C::
Send, +{F8}
Sleep, 4000
Send, ZD00
Sleep, 500
return
by telanx
17 Jan 2020, 10:46
Forum: Ask for Help (v1)
Topic: how to randomly select a fixed number of files in the current directory in windows explorer using a shortcut key Topic is solved
Replies: 12
Views: 2324

Re: how to randomly select a fixed number of files in the current directory in windows explorer using a shortcut key Topic is solved

My suggestion is to number the file name, randomly select the number from the numbered array, and then remove the number to get the file name. It is best to make it with a batch script.
by telanx
17 Jan 2020, 10:01
Forum: Ask for Help (v1)
Topic: Windows start time and shoot down time Topic is solved
Replies: 2
Views: 522

Re: Windows start time and shoot down time Topic is solved

ahk is not good at this, use the startup and shutdown script. Two written before, Both are vbs scripts. 1. startup script, Put in the startup folder of the start menu. Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile ("c:\StartupShutdownTime.ini", 8, True) ob...
by telanx
17 Jan 2020, 09:42
Forum: Ask for Help (v1)
Topic: Sending %A_Index% values without hard-coding them into script Topic is solved
Replies: 3
Views: 620

Re: Sending %A_Index% values without hard-coding them into script Topic is solved

I dont understand, make it clear, what format you want to paste in the new document. Line1 content ... and c:\myfile\parent\fileID + LineNumber Line2 content ... and c:\myfile\parent\fileID + LineNumber Blank line ignored Blank line ignored Line3 content ... and c:\myfile\parent\fileID + LineNumber ...
by telanx
17 Jan 2020, 05:30
Forum: Ask for Help (v1)
Topic: Same key for different functions. Topic is solved
Replies: 4
Views: 542

Re: Same key for different functions. Topic is solved

Code: Select all

toggle := true
~F1::toggle := !toggle   ; another key switch

#If toggle = "1"
^b::send test1
#If

#If toggle = "0"
^b::send test2
#If

;-------------------------

^s::    ;same key switch
    tog := !tog
    if tog
        send test1
    else
        send test2
    return
by telanx
17 Jan 2020, 05:04
Forum: Ask for Help (v1)
Topic: MouseMove with open folders fail Topic is solved
Replies: 4
Views: 723

Re: MouseMove with open folders fail Topic is solved

Image

Code: Select all

CoordMode, Mouse, Screen    ; add this
sleep 1000
MouseMove, 100,260,20
sleep, 1000
MouseMove, 145,160,20
sleep, 1000
MouseMove, 10, 100
by telanx
17 Jan 2020, 02:19
Forum: Ask for Help (v1)
Topic: Need help displaying Timer
Replies: 17
Views: 2375

Re: Need help displaying Timer

you mean?

Code: Select all

return (hours ? hours . ":" : "") . (hours ? Format("{:02}",mins) . ":" : mins ? mins . ":" : "") . Format("{:02}",secs)
or this, same effect

Code: Select all

return (hours ? hours . ":" : "") . (mins ? hours ? Format("{:02}",mins) . ":" : mins . ":" : "") . Format("{:02}",secs)
by telanx
17 Jan 2020, 00:45
Forum: Ask for Help (v1)
Topic: Enable and disable W10 LAN
Replies: 2
Views: 535

Re: Enable and disable W10 LAN

I'm not using win10, it's too ugly.
Excuse me, what animal is your avatar ?!
by telanx
16 Jan 2020, 23:45
Forum: Ask for Help (v1)
Topic: Need help displaying Timer
Replies: 17
Views: 2375

Re: Need help displaying Timer

You can simplify it because if the value is insufficient, minute and hour variables are flase.

Code: Select all

return (hours ? Format("{:02}",hours) . ":" : "") . (mins ? Format("{:02}",mins) . ":" : "") . Format("{:02}",secs)
by telanx
16 Jan 2020, 23:35
Forum: Ask for Help (v1)
Topic: Need help displaying Timer
Replies: 17
Views: 2375

Re: Need help displaying Timer

yeah, looks good! :P :bravo:
by telanx
16 Jan 2020, 22:54
Forum: Ask for Help (v1)
Topic: Need help displaying Timer
Replies: 17
Views: 2375

Re: Need help displaying Timer

Modify the return value of the ms2hms function. return Format("{:02}",hours) . ":" . Format("{:02}",mins) . ":" . Format("{:02}",secs) about Format() Look this If width is prefixed by 0, leading zeros are added until the minimum width is reached. For example, Format("{:010}", 1) returns 0000000001. ...
by telanx
16 Jan 2020, 21:17
Forum: Ask for Help (v1)
Topic: Need help displaying Timer
Replies: 17
Views: 2375

Re: Need help displaying Timer

Modify this line.

Code: Select all

GuiControl, Text, timer, % ms2hms(maxActiveTime-elapsedTime)
or this, Count to 0

Code: Select all

GuiControl, Text, timer, % ms2hms(maxActiveTime-1000-elapsedTime)
by telanx
16 Jan 2020, 20:16
Forum: Ask for Help (v1)
Topic: Need help displaying Timer
Replies: 17
Views: 2375

Re: Need help displaying Timer

SetTitleMatchMode 2 Title := "Notepad" ; window title maxActiveTime := 30000 Gui +AlwaysOnTop +ToolWindow Gui Add, Text, w80 Vtimer SetTimer Check, 1000 toggle := 1 ; control var Check: if WinActive(Title) { if toggle { start := A_TickCount Gui Show, NoActivate toggle := 0 } elapsedTime := A_TickCo...
by telanx
16 Jan 2020, 16:21
Forum: Ask for Help (v1)
Topic: Need help displaying Timer
Replies: 17
Views: 2375

Re: Need help displaying Timer

Just a simple example SetTitleMatchMode 2 WinWaitActive, ahk_class Notepad start := A_TickCount, maxActiveTime := 30000 SetTimer, Check, 1000 return ~x:: maxActiveTime += 300000 return Check: elapsedTime := A_TickCount - start if (WinExist("ahk_class Notepad")) { ToolTip, % Ceil((maxActiveTime/1000+...
by telanx
15 Jan 2020, 11:31
Forum: Ask for Help (v1)
Topic: Activate hotkeys in specific web page
Replies: 13
Views: 3547

Re: Activate hotkeys in specific web page

This function is title based, so you have to wait for the browser to get the full title to work well.

Go to advanced search