Lynxman Posted February 3, 2020 Posted February 3, 2020 hi everyone i hope some one help i cant figure out how to edit this script the script is a color trigger i must hold Right mouse to activate the trigger i believe this is the code If _WinAPI_GetKeyState(0x02) = True Then what i want is the script is activated without holding right mouse #include <WinAPIEx.au3> If WinExists(@ScriptName) Then Exit AutoItWinSetTitle(@ScriptName) Global $Paused, $counter = 0 HotKeySet("{F3}", "TogglePause") HotKeySet("{F2}", "Terminate") Shoot() Func Shoot() While 1 If _WinAPI_GetKeyState(0x02) = True Then Local $coord = PixelSearch(630, 525, 655, 500,12191508,40) If Not @error Then MouseClick("Left") Sleep(60) EndIf EndIf WEnd EndFunc While 1 $counter +=1 WEnd Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ;ToolTip('Script is "Paused"',0,0, $counter, 1) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc
Developers Jos Posted February 3, 2020 Developers Posted February 3, 2020 5 minutes ago, Lynxman said: Shoot() Shoot who? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Developers Jos Posted February 3, 2020 Developers Posted February 3, 2020 Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts