Thanks that worked perfectly.
Search found 140 matches
- 12 Aug 2021, 12:31
- Forum: Ask for Help (v1)
- Topic: Using KeyWait with multiple options
- Replies: 9
- Views: 1530
- 12 Aug 2021, 01:53
- Forum: Ask for Help (v1)
- Topic: Using KeyWait with multiple options
- Replies: 9
- Views: 1530
Re: Using KeyWait with multiple options
Example using: #If ^+b::waitforkey := true #If waitforkey f:: waitforkey := false MsgBox, 4096, % A_ThisHotkey, Run some code here return i:: waitforkey := false MsgBox, 4096, % A_ThisHotkey, Run some code here return r:: waitforkey := false MsgBox, 4096, % A_ThisHotkey, Run some code here return #...
- 12 Aug 2021, 01:51
- Forum: Ask for Help (v1)
- Topic: Using KeyWait with multiple options
- Replies: 9
- Views: 1530
Re: Using KeyWait with multiple options
The better way to do this would be to have ^+b turn on hotkeys for f/i/r and then (depending on how you wanted it to work, have each of those hotkeys turn off each other key again). Have a look here. I think something like this would achieve what you're after: #InstallKeybdHook ^+b:: ; keybind for ...
- 11 Aug 2021, 22:55
- Forum: Ask for Help (v1)
- Topic: Using KeyWait with multiple options
- Replies: 9
- Views: 1530
Using KeyWait with multiple options
I'm trying to create hotkeys for Ctrl + Shift + b then f, Ctrl + Shift + b then d, etc. I'm using this syntax: ^+b:: KeyWait, f, D, T0.25 If not ErrorLevel Some code... Return KeyWait, i, D, T0.25 If not ErrorLevel Some code... Return KeyWait, r, D, T0.25 If not ErrorLevel Some code... Return This d...
- 11 Aug 2021, 14:12
- Forum: Ask for Help (v1)
- Topic: Incremental timestamped back-up
- Replies: 7
- Views: 388
Re: Incremental timestamped back-up
Thanks, it's working perfectly now.mikeyww wrote: ↑11 Aug 2021, 12:54Could try passing an expression as your (second) parameter.
Forbidden in Windows file names: <>:"/\|?*Code: Select all
A_Desktop "\Destination\" A_DD "-" A_MM "-" A_YYYY "_" A_Hour "-" A_Min "-" A_Sec
- 11 Aug 2021, 12:39
- Forum: Ask for Help (v1)
- Topic: Incremental timestamped back-up
- Replies: 7
- Views: 388
Re: Incremental timestamped back-up
Oops! I missed that part.... :) I do still recommend incorporating ErrorLevel checking into scripts that use the file-management commands. It's working now, but if I can ask one more thing, how can I include a timestamp in the folder name? By that I mean I want to do this (Though this obviously isn...
- 11 Aug 2021, 12:10
- Forum: Ask for Help (v1)
- Topic: Incremental timestamped back-up
- Replies: 7
- Views: 388
Re: Incremental timestamped back-up
Thanks so much to both of you.
- 11 Aug 2021, 12:06
- Forum: Ask for Help (v1)
- Topic: Send {Enter} not working as expected
- Replies: 2
- Views: 252
Re: Send {Enter} not working as expected
Ok thank you, at least I know the syntax isn't wrong. I appreciate the help.
- 10 Aug 2021, 22:40
- Forum: Ask for Help (v1)
- Topic: Incremental timestamped back-up
- Replies: 7
- Views: 388
Incremental timestamped back-up
I'm trying to bind Ctrl + Window + p to back-up a directory to an incrementally timestamped folder instead of the original Windows shortcut. This is the script I'm using, but it doesn't do anything. I'm not sure if I'm using the wrong hotkey sequence to define it, or if there's something wrong with ...
- 10 Aug 2021, 22:00
- Forum: Ask for Help (v1)
- Topic: Send {Enter} not working as expected
- Replies: 2
- Views: 252
Send {Enter} not working as expected
Could someone help me figure out what I'm doing wrong here? The script is supposed to send: Enter Ctrl + 1 3 Enter 1 Enter 3,5 Enter 4,11 Enter 5 Enter Ctrl Then wait an hour. This is what I have, but it doesn't seem to be sending the commands properly. I also can't figure out how to debug what comm...
- 08 Aug 2021, 11:01
- Forum: Ask for Help (v1)
- Topic: Quickly typing jk to send escape?
- Replies: 2
- Views: 428
Re: Quickly typing jk to send escape?
Thank you so much.Xtra wrote: ↑07 Aug 2021, 17:29Click KeyWait in the code box to bring up the help file.Code: Select all
~j:: KeyWait, k, D T0.5 if (ErrorLevel = 0) Send, {Esc} return
- 07 Aug 2021, 16:39
- Forum: Ask for Help (v1)
- Topic: Quickly typing jk to send escape?
- Replies: 2
- Views: 428
Quickly typing jk to send escape?
I'm trying to figure out how I can turn two sequential keys pressed (j then k within 0.5 seconds) into a hot key to send escape. I found this script to create leader keys which is basically what this is, but it's hundreds of lines of code. Is there a simpler way? https://www.autohotkey.com/boards/vi...
- 24 Jul 2021, 23:47
- Forum: Ask for Help (v1)
- Topic: Send tab only if released without pressing another key?
- Replies: 2
- Views: 262
Re: Send tab only if released without pressing another key?
Thank you, that was the problem. I appreciate the help.
- 24 Jul 2021, 11:00
- Forum: Ask for Help (v1)
- Topic: Send tab only if released without pressing another key?
- Replies: 2
- Views: 262
Send tab only if released without pressing another key?
I'm trying to use Tab + other keys as hotkeys only when a certain program is active/in focus. As is my script works, but completely disabled the tab key so I'm unable to use it to tab around. It also works all the time instead of only when the program is active, and my if statement is returning an e...
- 24 Jul 2021, 10:53
- Forum: Ask for Help (v1)
- Topic: If app was in focus in last x minutes?
- Replies: 2
- Views: 271
Re: If app was in focus in last x minutes?
Thank you very much.
- 23 Jul 2021, 23:02
- Forum: Ask for Help (v1)
- Topic: If app was in focus in last x minutes?
- Replies: 2
- Views: 271
If app was in focus in last x minutes?
Is there a way to conditionally check if an app was in focus in the last x minutes? I want to back-up my project folder every 30 minutes, but only if I'm actively using VS Code. I'm planning on running a .cmd batch file using AHK, and I know how to check if a window is in focus, but am unsure how to...
- 23 Jul 2021, 17:07
- Forum: Ask for Help (v1)
- Topic: Focus or open if app doesn't exist shortcut stops working after first time
- Replies: 2
- Views: 345
Re: Focus or open if app doesn't exist shortcut stops working after first time
Thank you, I was able to get it to work after some troubleshooting as well as defining the entire path instead of just the name.
- 23 Jul 2021, 14:03
- Forum: Ask for Help (v1)
- Topic: Focus or open if app doesn't exist shortcut stops working after first time
- Replies: 2
- Views: 345
Focus or open if app doesn't exist shortcut stops working after first time
I'm using Caps + V to open Visual Studio Code, but about half the time I use the shortcut it breaks the shortcut. And not always in the same way. Sometimes I'm unable to use Caps + V after opening or focusing on it one time, sometimes I'm not able to use any hotkeys, sometimes it works fine. I'm goi...
- 08 Jul 2021, 13:58
- Forum: Ask for Help (v1)
- Topic: SetCapsLockState, Off doesn't seem to be working
- Replies: 2
- Views: 367
Re: SetCapsLockState, Off doesn't seem to be working
That works, thank you.
- 08 Jul 2021, 12:33
- Forum: Ask for Help (v1)
- Topic: SetCapsLockState, Off doesn't seem to be working
- Replies: 2
- Views: 367
SetCapsLockState, Off doesn't seem to be working
I have a script that sends a VIM command for substituting text when pressing CapsLock & s. The command works, but for some reason CapsLock remains on when I press CapsLock & s despite the code seeming like it should be keeping it off. Any idea what's happening here? CapsLock & s:: SetCapsLockState, ...