Jump to content
Sign in to follow this  
GOLDI

Pixelsearch and click

Recommended Posts

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

 

Share this post


Link to post
Share on other sites

@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!

Share this post


Link to post
Share on other sites

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.

d1HAIRq.png

Share this post


Link to post
Share on other sites

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 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!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...