Sign in to follow this  
Followers 0
Heater13a

Simple Question

9 posts in this topic

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.

Share this post


Link to post
Share on other sites



Perhaps you could put a Sleep() after it sends Enter?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

WinActivate("Player Chair Identified", "press YES if you are playing")

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by Heater13a

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by onestcoder

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

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]

Share this post


Link to post
Share on other sites

#9 ·  Posted (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 by daashag

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