Heater13a Posted November 21, 2006 Posted November 21, 2006 Run ("C:\.......exe") WinWaitActive ("Select Network") Send ("{down}") Send ("{down}") Send ("{Enter}") Send ("{Enter}") WinWaitActive ("AcesFull v2.0.4.3 - window") Send ("!F") Send ("f") Send ("{Enter}") WinWaitActive ("Player Chair Identified", "press YES if you are playing") WinShow ("Player Chair Identified", "press YES if you are playing") Send ("{Enter}") I am having a problem after line 10, once enter is hit "Enter" it takes a second or two for this next window to pop up and while it is waiting the program that I am currently running comes to the front, and I dont know how to reclick the Player Chair window so when I hit "Enter" it will be responding to that window. Thank you, and sorry for simple question.
Somniis Posted November 21, 2006 Posted November 21, 2006 Perhaps you could put a Sleep() after it sends Enter?
Heater13a Posted November 21, 2006 Author Posted November 21, 2006 Im looking for a line of code that would reclick this window so I know for sure when I hit enter for the last time, its directed toward the correct window.
Outshynd Posted November 21, 2006 Posted November 21, 2006 WinActivate("Player Chair Identified", "press YES if you are playing")
Heater13a Posted November 21, 2006 Author Posted November 21, 2006 (edited) I cant seem to get it to wait for this window to pop up and then click it when it does pop up. If anyone would like to write this for me since Im an idiot I would be happy to compensate through Neteller. Thanks I see the window in front of me waiting to be clicked, and when i manually click it, the Autoit does hit enter. Edited November 21, 2006 by Heater13a
onestcoder Posted November 21, 2006 Posted November 21, 2006 (edited) Try having your script slow down a bit at the end using some sleeps to allow the computer time to activate the windows Run ("C:\.......exe") WinWaitActive ("Select Network") Send ("{down}") Send ("{down}") Send ("{Enter}") Send ("{Enter}") WinWaitActive ("AcesFull v2.0.4.3 - window") Send ("!F") Send ("f") WinActivate("Player Chair Identified", "press YES if you are playing") Send ("{Enter}") Sleep(2000) ; 2 seconds WinWaitActive ("Player Chair Identified", "press YES if you are playing") Sleep(2000) ; 2 seconds WinShow ("Player Chair Identified", "press YES if you are playing") Sleep(2000) ; 2 seconds Send ("{Enter}") Edited November 21, 2006 by onestcoder Need a website: http://www.iconixmarketing.com
Heater13a Posted November 21, 2006 Author Posted November 21, 2006 One, Thanks for the reply, the problem is it can take anywhere from 2 seconds to 50 seconds for the "Player Chair Identified" box to pop up. For some reason it just wont 'see' the box to click it.
mikehunt114 Posted November 21, 2006 Posted November 21, 2006 (edited) WinWaitActive() or If WinExists() on the box you are waiting for? Use a ControlSend() when it exists. Edited November 21, 2006 by mikehunt114 IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]
daashag Posted November 21, 2006 Posted November 21, 2006 (edited) Don't know if this will work for you. But I had a situations where I had to wait for a box also. I did a PixelGetColor in Do/Until loop. It just look for a pixel then when it sees it sends a command. ;Wait for backup to finish Do WinWaitNotActive("Create Backup", "") Until PixelGetColor(1108, 700) = 16711680 ;Close Backup WinActivate("Create backup", "") ControlSend("Create backup","&Cancel",3,"!c","") daashag Edited November 21, 2006 by daashag
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