Jump to content

Simple Question


 Share

Recommended Posts

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.

Link to comment
Share on other sites

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 by Heater13a
Link to comment
Share on other sites

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 by onestcoder

Need a website: http://www.iconixmarketing.com

Link to comment
Share on other sites

WinWaitActive() or If WinExists() on the box you are waiting for? Use a ControlSend() when it exists.

Edited 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]
Link to comment
Share on other sites

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 by daashag
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...