GOLDI Posted August 1, 2019 Share Posted August 1, 2019 Hello I'm nwebie in programing. Can I get help witch simple code? I try to create: Then start program sleep 2500 doo this: When color b9b9b9 not in this cordinates x= 1794, y= 592 press left mause button. I create something this: $left = 1792 $bottom = 590 $right = 125 $top = 487 $color = 0xb9b9b9 ;==>Cordinates ; Press Esc to terminate script, Pause/Break to "pause" Global $Paused, $Runner HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") Func TogglePause() $Paused = Not $Paused While $Paused Sleep(10) ToolTip('Script is "Paused"', 0, 0) WEnd ToolTip("") EndFunc ;==>TogglePause Func Terminate() Exit 0 EndFunc ;==>Terminate Sleep(2500) while(1) $pix = PixelSearch($right, $bottom, $left, $top, $color, 1) if Not(@error) Then MouseClick("left", 1606, 704, 01) EndIf WEnd I'm very newbie, thanks for help, have agood day ;3 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 1, 2019 Moderators Share Posted August 1, 2019 @GOLDI what is the application, and what exactly are you trying to accomplish? This kind of information will help us help you, as there is likely a much easier way to do it than PixelSearch. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
GOLDI Posted August 1, 2019 Author Share Posted August 1, 2019 In game can i get this: when the bottom bar reaches this red line (I added it in the paint), I must press the button (there is a red circle in the game, also added in paint), the coordinates and the color written above. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 1, 2019 Moderators Share Posted August 1, 2019 (edited) I thought as much. Apparently you walked right by the forum rules on your way in to the forum. I would suggest you read them now, and you'll quickly see why this thread is locked. We offer no support for game-botting, as it damages the reputation of the language as a whole. Hope to see you again with a legitimate question. Edited August 1, 2019 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts