Sign in to follow this  
Followers 0
TheWhiteDeath

If... Then...

6 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



Well.. could you tell me what to do? ^^

It can't be that hard.. It just has to check if there is a number.. and if there is a number.. it just needs to check it is higher than 160 or less.. should work on firefox as well or not?

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

k, thx. i will check it :D

Edit: Well I'm to stupid for that :D Can't find the help i need in the help file..

what commands do i need? ^^" Can't be that hard, right?

Edited by TheWhiteDeath

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

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