matthewst Posted December 1, 2005 Share Posted December 1, 2005 I am making a script to install roxio 7. Some of the computers in my LAN have an older version or don't have it installed correctly. If the current machine already has roxio, I get different windows then I would if it were not previously installed. I think "IfWinExist" is the appropriate way to do this, but I can't get it to work. The script runs fine up to "Send, {Tab}". Then it just stops. I don't know if it can even see the second window.Run, setup.exe /S /v /qnWinWaitActive, Roxio Easy Media Creator 7 Basic DVD Edition - InstallShield Wizard, WARNING: This program is protected by copyright law and international treaties.Send, {ENTER}IfWInExist, Roxio Easy Media Creator 7 Basic DVD Edition - InstallShield Wizard, Welcome to the InstallShield Wizard for Roxio Easy Media Creator 7 Basic DVD Edition, Send, {Tab}Send, {Enter}Send, ySend, {Enter} Link to comment Share on other sites More sharing options...
w0uter Posted December 1, 2005 Share Posted December 1, 2005 maby the tailing ',' should be removed ? (dont know for sure since i never coded in v2 ) My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Helge Posted December 2, 2005 Share Posted December 2, 2005 It's been ages since I coded in v2, but I'm starting to wonder if you really can specifymultiple actions for the IfWInExist. I seriously doubt it, but as my brain is v3-formatted,I can't be sure..I'll do some testing when I'm coming home, but I'm sure some of the v2-gurus can helpyou before I return. Link to comment Share on other sites More sharing options...
Beastmaster Posted December 9, 2005 Share Posted December 9, 2005 IfWinExist doesn't necessarilly mean that the target window has the focus! WinWaitActive or IfWinExist, ... WinActivate, ... Link to comment Share on other sites More sharing options...
Recommended Posts