Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

combo and check box and Error...

$
0
0
Hello i have this code bat why give automatically exit and  does not begin to run ?

[ autoit ]         
$Mm1 = IniRead("Config.ini", "mm1", "1", "") ;load INI If $Mm1 = 1 Then GUICtrlSetState($mm1, $GUI_CHECKED) $RIGHT = IniRead("Config.ini", "Position", "Right", "") If $RIGHT = 1 Then GUICtrlSetState($RIGHT, $GUI_CHECKED) Global $Paused HotKeySet("{f2}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("{f1}", " start") While 1 sleep(100) WEnd Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc   Func start() ; Sleep(Random(1000, 1500))   If GUICtrlRead($mm1) = $GUI_CHECKED Then   Mm1() EndIf EndFunc Func Mm1() While 1 $Coord = PixelSearch (461, 36, 800, 600, 0x75C0E2, 0, 4) Sleep(Random(1000, 1500)) If Not @error Then MouseClick ( "Left" , $Coord[0] + Random(1, 5), $Coord[1] - Random(1, 5), 1 , random(3, 7)) Sleep(Random(1000, 1500)) if GUICtrlRead($Mm1) = $GUI_CHECKED Then If GUICtrlRead($Right) = $GUI_CHECKED Then MouseMove(165 + Random(1,3),271 + Random(1,3), random(5, 9)) Sleep(Random(500, 1000)) MouseClick ( "Left" , $Coord[0] + Random(1, 5), $Coord[1] - Random(1, 5), 1 , random(3, 7)) Sleep(Random(500, 1000)) MouseMove(713 + Random(1,3),246 + Random(1,3), random(5, 9)) MouseClick ( "Right" , $Coord[0] + Random(1, 5), $Coord[1] - Random(1, 5), 1 , random(3, 7)) EndIf EndIf EndIf WEnd EndFunc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>