Hi, i tryed my first script. Working fine but i want to run TARA function only mouse left clicked not draged and free draging with left click and i want to activate/Pause TARA function with Capslock. Thanks #include <Misc.au3>
global $paused
HotKeySet("{F2}", "Tara")
HotKeySet("{F3}", "Togglepause")
HotKeySet("{ESC}", "Terminate")
While 1
Sleep(100)
WEnd
Func TogglePause()
$Paused = Not $Paused
While $Paused
ToolTip('Script is "Paused"', 0, 0)
Sleep(10000000)
WEnd
ToolTip("")
EndFunc ;==>TogglePause
Func Terminate()
Exit 0
EndFunc ;==>Terminate
Func Tara()
$dll = DllOpen("user32.dll")
ToolTip("")
While 1
If _IsPressed("01", $dll) Then
Sleep (100)
ControlSend("xwindow", "", "", "รง")
Sleep (100)
ControlSend("x window", "", "", "c")
EndIf
WEnd
DllClose($dll)
EndFunc
Exit
;;;;;;;;