Sign in to follow this  
Followers 0
Guest Lediak

quick question prob been covered...

2 posts in this topic

im workin on makin this bot for a game i play so far its going ok but once the script runs it turns off i want to be persistant i.e always running say like a chat bot for example here is my script it has just began but i think is doing pretty good

another question is there a way to mouse click areas of the screen without having to actually move the mouse there first? also is there a better more effient way to acomplish other then what i have below ?

Thanmx in advance

here is the script

$checksum = PixelChecksum(95,99, 487,491)

;Wait for the region to change, the region is checked every 100ms to reduce CPU load
While $checksum = PixelChecksum(95,99, 487,491)
 sleep (10)
Wend

MouseMove(101, 284)
MouseClick("left")
Send("XXXXX{Enter}")

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

perhaps...

$checksum = PixelChecksum(95,99, 487,491)

While 1
  ;Wait for the region to change, the region is checked every 100ms to reduce CPU load
    While $checksum = PixelChecksum(95,99, 487,491)
        sleep (10)
    Wend

    MouseMove(101, 284)
    MouseClick("left")
    Send("XXXXX{Enter}")
    Sleep(2000)
Wend
ok thanx for the help i must have stated wrong what i was tryin to accomplish i mearly use the chatbot as an example

this way i tried it and the script went to a continuous loop

basicly i want the script to wait for a change in the area then fire off the mouse commands then go back to waiting for another change in the same area and not exit once it enters the text...

i probally ought to make it a pixelhue search but i dont really understand what ive read on it in the help file yet

thanx again for the help

Got it figured out thanx for the help

Edited by Lediak

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0