Switching between macros !

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
AAG
Posts: 3
Joined: 12 Feb 2015, 08:00

Switching between macros !

12 Feb 2015, 08:09

Hi , Is there is anyway that I can switch between recorded macros with button click ? I have 3 macros that I want to change between with "1,2,3" Keys , So if I click 1 the first macro starts immediately and the same thing for the other two , Thanks !
User avatar
boiler
Posts: 17387
Joined: 21 Dec 2014, 02:44

Re: Switching between macros !

12 Feb 2015, 08:53

What did you record the macros with?
AAG
Posts: 3
Joined: 12 Feb 2015, 08:00

Re: Switching between macros !

12 Feb 2015, 09:03

boiler wrote:What did you record the macros with?
With Pulover's Macro creator , ohh his website brought me to this forum , can you still help me ?
User avatar
boiler
Posts: 17387
Joined: 21 Dec 2014, 02:44

Re: Switching between macros !

12 Feb 2015, 09:10

I've never used it, but each macro ends up being an AHK script (a file with a .ahk extension), correct? If so, then yes, I can help.
User avatar
PaulLeavitt
Posts: 58
Joined: 21 Oct 2014, 10:04

Re: Switching between macros !

12 Feb 2015, 12:02

If you won't be needing the press of a button to immediately end the current script, then you should be able to just use the normal hotkey command.

Here's the documentation on how to write a Hotkey into your script:
http://www.autohotkey.com/docs/Hotkeys.htm

For instance, you could use Window-1 (or #1::) to start the first script, Windows-2 (#2::) for the second, and so on.

Be sure to end each individual section of script with the Return command.

Such as

Code: Select all

#1::
Do stuff here
Return

#2::
Do other stuff here
Return

#3::
Do still more stuff here
Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, Google [Bot], peter_ahk and 412 guests