Discussion Hello I am looking for help with Autohotkey.

I use a set of AHK scripts to manage pips and to use shield cells and to open camera mode.
I would like to put them all in a single script or use a single script to run them all.
This is one of the scripts and they all use this template but have different keys to activate. For example this one uses F1 to set a certain pips config.

Code:
#NoTrayIcon
#UseHook
#NoEnv
#SingleInstance, force
SendMode, Event
SetKeyDelay 3,65 ;<-- 3 ms between individual keys in the list
keylist = {down},{left},{left},{up},{up} ;<-- the list of keys you said you wanted to send
StringSplit, KeyAry, keylist, `, ;<-- makes each send a separate element in an array
Return ;<-- force end the autoexecute section of the script
f1:: ;<-- the hotkey you use to send the stuff
Keywait, f1 ;<-- waits for you to release the key
    Loop, %KeyAry0% ;<-- loop through each keyset in the list
    {   key := KeyAry%A_Index% ;<-- gets the current key set in the list
        Send %key% ;<-- sends the keys in that element
        Sleep, 1 ;<-- and sleeps 1 ms between elements
    }
    Return ;<-- ends the send subroutine

Any help welcome thank you.
 
Hi @BL1P ,

Try this...


You may need to subscribe to the 'HOTAS/HOSAS/SIMPIT' Discord group first if the above link doesn't take you straight to the 'faq-autohotkey' thread.

Hope this helps.

Clicker
 
Back
Top Bottom