Sam
Sam

Reputation: 15508

Automating 6 Keypresses (DreamWeaver Save Upload Page Refresh and Back) into 1 Keypress with AutoHotKey

While designing my website I'm using often the following combination of key presses:

I 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?


enter image description here

Upvotes: 0

Views: 63

Answers (1)

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

Related Questions