need help with a toggleable script to farm
Posted: 11 Apr 2024, 07:27
Im trying setup a script using AHK v2 to automatically harvest resources in the game . I dont exactly understand the syntax with autohotkey so im struggling to make the script . It work something like this
Press [x] key to toggle the script on and off
Press [p] key to switch between state one and state two
state one : holds left click and d at the same time
state two : holds left click and s at the same time
also to clarify i dont meant to completely stop the script but something more akin to this
Press [x] key to toggle the script on and off
Press [p] key to switch between state one and state two
state one : holds left click and d at the same time
state two : holds left click and s at the same time
also to clarify i dont meant to completely stop the script but something more akin to this
Code: Select all
toggle := true
return
f1::toggle := !toggle ;inverts toggle 0>1>0>1 etc.
#If toggle ;if toggle = true/1 then hotkeys work, otherwise disabled
z::a ;this does not need a return since its single line
x::d