Need Help with combining scripts or using the with the same toggle hotkey(im new)

Ask gaming related questions (AHK v1.1 and older)
PlsHelpQuick
Posts: 2
Joined: 10 Aug 2020, 08:35

Need Help with combining scripts or using the with the same toggle hotkey(im new)

Post by PlsHelpQuick » 11 Aug 2020, 06:41

Hey guys i was wondering if some one could combine these scripts for me
all i basically want to do is run them at the same time
like with 1 hotkey
in the current scripts i use multiple hotkeys
even if it cannot be combined can someone help me run the scripts with the same toggle hotkey
thanks in advance(if u help)
Script 1:

Code: Select all

#MaxThreadsPerHotkey 3

NumpadHome::

#MaxThreadsPerHotkey 1

if keep_winz_running = y

{

    keep_winz_running = n

    return

}

; Otherwise:

keep_winz_running = y

Loop, 

{ 

    MouseClick, right 

    Sleep, 20 ;This means the script will wait 1.5 secs 

    if keep_winz_running = n  ; The user signaled the loop to stop.

        break  ; break out of the loop

}





Script 2:

Code: Select all

NumpadUp::
KeyDown := !KeyDown
If KeyDown
	SendInput {s down}
Else
	SendInput {s up}

If KeyDown
	SendInput {d down}
Else
	SendInput {d up}

return


Script 3:

Code: Select all

#maxthreadsperhotkey 2 ;*1
NumpadPgUp:: ;2
 {
   toggle:=!toggle ;*3

   while, toggle ;*4
    {
	  send, {space down}
          sleep, 50
          send, {space up} ;*5
	  sleep, 1800 ;*6
    }
 }
return ;*7
NOTE :
i am not the maker of these scripts i have just edited them to my needs

Return to “Gaming Help (v1)”