Merge few simple scripts

Ask gaming related questions (AHK v1.1 and older)
Almighty Aqu
Posts: 1
Joined: 08 Aug 2022, 03:50

Merge few simple scripts

Post by Almighty Aqu » 08 Aug 2022, 05:10

Hello guys!
I'm newbie in AHK and I have a question for you. Is possible to merge few simple scripts in one script?
example:

I need to:
1. Click "F4" every X seconds
2. Click "F5 + F6" every X seconds

And all of these things should be in one script with key to turn ON/OFF. ex: When I press "X key" script is turned to ON and do theses things. When I press "X key again" (or Y if can't be the same key) scripts stopping do these things.

Thank You!
Last edited by BoBo on 08 Aug 2022, 05:14, edited 1 time in total.
Reason: Moved to 'Ask for Help' (Gaming).

User avatar
mikeyww
Posts: 26951
Joined: 09 Sep 2014, 18:38

Re: Merge few simple scripts

Post by mikeyww » 08 Aug 2022, 06:18

Welcome to this AutoHotkey forum!

Scripts can be merged. They sometimes require attention to the following things.

1. Avoid unintentional duplication of variable names.
2. Avoid duplication of hotkeys in the same context, & functions.
3. Attend to the auto-execute section.

Try it. See if it works. If you have trouble, you can post your script below.

Post Reply

Return to “Gaming Help (v1)”