Jump to content
Sign in to follow this  
Guest jbibler

Ifwinexist Question.... Help Please.

Recommended Posts

Guest jbibler

Hey guys, this is my first post. I just started using this tool about a week ago, and I have it working perfectly for implementing a automatic configuration script for Internet Explorer proxy settings.

Anyways, I'm trying to do another install now of RealOne Player. It has several windows in the installation, but they pop up different on different machines.

Some machines pop up asking for Network settings (LAN, etc.) but others dont. So I wanted to add a IfWinExists for that window, but the problem is... that Window has the same Title as the windows prior and the windows afterwards. The AutoIT viewer doesn't show any text for either window, so how do I differentiate between the two windows? They are both titled... "Install Wizard"... is there another way to distinguish a window?

I hope I haven't confused everyone. Let me know if you have any questions.

Thanks,

Josh

Share this post


Link to post
Share on other sites
CyberSlug

Two suggestions:

1) Look into AutoIt v3. It is approaching official release, and has a function that lets you retrieve the size of the active window*. It can also check for the presence of buttons and controls!

*Edit: I see that version2 has "WinGetActiveStats" However, I don't know if window size is a reliable measue given the possibility of windows themes and screen resolutions.

2) Don't install RealOne Player. If you need to play RealMedia files, look into Alternatives first (and check the license).

Good Luck

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites
Jos

agree with cyberslug that v3 is much better...

This is a solution that could work in V2... its from a working script that i just cut&paste to give you an idea...

Repeat, 60
Sleep, 1000
IfWinActive, LPR Port Configuration Warning, The LPD Server did not respond, Send, {ENTER}
IfWinActive, LPR Port Configuration Warning, The server name you specified could not be resolved, GoSub, HostNotExists
IfWinActive, Add Printer Ports, The printer already exists, GoSub, PrtExists
IfWinActive, Printer Ports, , Goto, Cont1
EndRepeat
Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.