Jump to content

If... Then...


Recommended Posts

Well i got a little Problem...

I want the script to klick on a button if there is written: "Lebenspunkte: (163/200)" or to klick the button (would be better) if "Lebenspunkte: (163/200) or less"

It's in a firefox window..

I think it should look like this:

If (dont know what to write her) then MoveMouse(1110,560)

sleep(200)

MouseClick("left")

sorry for my english..

Edited by TheWhiteDeath
Link to comment
Share on other sites

sorry for double post..

K i solved that problem with pixel colour.. it's not as good as it would be with numbers but it doesn't matter

code:

$mc = dec ("FF8000")

if PixelGetColor(1112,221) = $mc Then

MouseMove(100,560)

MouseClick("right")

sleep(5000)

endif

;for example:

while

;move1

MouseMove(1000,400)

sleep(3000)

--here it should check it again--

;move2

MouseMove(1100,400)

sleep(3000)

--here it should check it again--

wend

now it checks if it is the right colour and klicks.. but what do i have to do if i want the script to repeat that, after every other thing it has to do? Do i have to copy it every time?

Edited by TheWhiteDeath
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...