TheWhiteDeath Posted April 24, 2008 Share Posted April 24, 2008 (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 April 24, 2008 by TheWhiteDeath Link to comment Share on other sites More sharing options...
James Posted April 24, 2008 Share Posted April 24, 2008 There is no Firefox functionallity unlike IE. Try _IE functions Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
TheWhiteDeath Posted April 24, 2008 Author Share Posted April 24, 2008 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? Link to comment Share on other sites More sharing options...
James Posted April 24, 2008 Share Posted April 24, 2008 AutoIt cannot read Firefox windows. Look under the helpfile for _IE. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
TheWhiteDeath Posted April 24, 2008 Author Share Posted April 24, 2008 (edited) k, thx. i will check it Edit: Well I'm to stupid for that Can't find the help i need in the help file.. what commands do i need? ^^" Can't be that hard, right? Edited April 24, 2008 by TheWhiteDeath Link to comment Share on other sites More sharing options...
TheWhiteDeath Posted April 24, 2008 Author Share Posted April 24, 2008 (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 April 24, 2008 by TheWhiteDeath Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now