Stop the script from using Ctrl, Shift or Alt.
Posted: 20 Apr 2024, 09:07
I have a simple script where, when you click F9 it does a loop of simple buttons to do a simple task within a single player game while I work on another monitor.
It works completely fine, although it does not allow me to press Ctrl, Shift or Alt while its running. is there any way to prevent the script from touching the command keys? As in the script it does not use them at all.
[Mod action: Moved topic to the “Gaming” section. Please post questions about gaming in this sub-forum.]
It works completely fine, although it does not allow me to press Ctrl, Shift or Alt while its running. is there any way to prevent the script from touching the command keys? As in the script it does not use them at all.
Code: Select all
f9::
Loop
{
; IfWinExist, ahk_class LWJGL
Loop
{
ControlSend,, {%Place% down}, ahk_class LWJGL
Sleep 10
ControlSend,, {1 up}, ahk_class LWJGL
Sleep 500
ControlSend,, {d down}, ahk_class LWJGL
Sleep 100
ControlSend,, {d up}, ahk_class LWJGL
Sleep 500
ControlSend,, {2 down}, ahk_class LWJGL
Sleep 200
ControlSend,, {2 up}, ahk_class LWJGL
Sleep 50
ControlSend,, {3 down}, ahk_class LWJGL
Sleep 100
ControlSend,, {3 up}, ahk_class LWJGL
Sleep 100
ControlSend,, {%Place% up}{%Destroy% down}, ahk_class LWJGL
Sleep 100
ControlSend,, {%Destroy% up}, ahk_class LWJGL
Sleep 100
ControlSend,, {a down}, ahk_class LWJGL
Sleep 300
ControlSend,, {a up}, ahk_class LWJGL
Sleep 100
ControlSend,, {1 down}, ahk_class LWJGL
Sleep 100
ControlSend,, {%Place% up}, ahk_class LWJGL
}
Sleep 200
}
Return
[Mod action: Moved topic to the “Gaming” section. Please post questions about gaming in this sub-forum.]