Hey Guys Curious if your able to help me, i'm trying to use a block Input script along with a toggle pause,
atm i'm just testing trying to toggle the block/unblock along with the pause script toggle.
i've included the UDF files i'm using with block input function. but can;t rly make head or tales as to the edits i need to make to the UDF.
the script current has two functions in it atm while i'm testing.
the end result should be as follows....
{PAUSE} = TogglePause and also Toggle Input block
^{PAUSE} = Terminate
my test script so far, excuse the mess, had to keep functions from both scripts to keep my computer from freaking out.
atm i'm just testing trying to toggle the block/unblock along with the pause script toggle.
i've included the UDF files i'm using with block input function. but can;t rly make head or tales as to the edits i need to make to the UDF.
the script current has two functions in it atm while i'm testing.
the end result should be as follows....
{PAUSE} = TogglePause and also Toggle Input block
^{PAUSE} = Terminate
my test script so far, excuse the mess, had to keep functions from both scripts to keep my computer from freaking out.
[ autoit ]
#include <BlockInputEx.au3> ;================== Exclude usage Example ================== Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("^{PAUSE}", "Terminate") HotKeySet("{PAUSE}", "_Quit") ;All keyboard keys and mouse clicks are blocked except these keys: 0x13 = {PAUSE} _BlockInputEx(1, "0x13") ;This is only for testing, so if anything go wrong, the script will exit after 10 seconds. AdlibRegister("_Quit", 10000) While 1 Sleep(100) WEnd Func _Quit() Exit EndFunc Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is Paused',1047,0," Warning",0,4) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc