Sign in to follow this  
Followers 0
Silverback83

WinWaitActive title problem

6 posts in this topic

#1 ·  Posted

In my company I have to install the same programs on every PC I ever setup, so I'm trying to write a script that will do it all automatically.

So far I've managed to get my AutoIT script to install the first programme however when the installation finished, it loads up the box which requires some user info to be entered (This is always the same info, I.e. area code = +44 etc)

Problem I'm having is the install goes through fine. It then autoloads the programme but using the WinWaitActive command no longer works. I've tried to change this for

WinWait('', 'Enter International Area Code')

but this doesnt work either.

Basically, at this last stage of installation, I just need it to press TAB 3 times, enter 44 and click save.  Not sure why WinWaitActive no longer works at this stage. If it was still on an installer screen it would be fine so is the issue the fact its finished installing and I need to use a different command? *confused*

Share this post


Link to post
Share on other sites



#2 ·  Posted

Never mind. Figured it out.

Share this post


Link to post
Share on other sites

#3 ·  Posted

@Silverback83 if you have resolved your own issue (congrats) please modify your initial post and add RESOLVED to the title. This helps those assisting on the forum to know you're all set.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#5 ·  Posted

@JLogan3o13 How do I do that? I cant seem to find an edit button?

@spudw2k Sorry about that. I used the class instead.

WinWaitActive("[Class:WindowsForms10.Window.8.app.0.33c0d9d]")
Send ("{TAB}")
Send ("{TAB}")
;Now We enter the area code and save
Send(44)
Send ("!s")

Share this post


Link to post
Share on other sites

#6 ·  Posted

not sure if you can target the "input box where ever the 44 is going" but if you can try 

ControlSend

I find if your doing multiple things or the pc bit slow then the "send tab" might not sent it to the right place

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