Reputation: 15508
While designing my website I'm using often the following combination of key presses:
Ctr+S
to save and upload the current page to the serverAlt+Tab
to switch from DreamWeaver to my Chrome browserCtr+F5
to force a complete refreshI would like to replace these 6 keypresses in just 1 key press, for example let's say the Caps
key.
I would then like to press Caps
(or another key) once more to function as a Alt+Tab
bringing me back to Dreamweaver (and also as a way to deactivate caps lock).
I have made something which, though elegant, does not work.
^Caps::
Send, Ctr+S
Wait, 1000ms
Send, Alt+Tab
Send, Ctrl+F5
return
What code needs to be fed in to AutoHotKey to achieve the above steps?
Upvotes: 0
Views: 63
Reputation: 1188
Try this:
CapsLock::
Send, ^S
Sleep, 1000
Send, {LAlt Down}{Tab}{LAlt Up}
Send ^{F5}
Send, {LAlt Down}{Tab}{LAlt Up}
return
This wont change capslock state.
Upvotes: 0