fstoll Posted September 17, 2007 Share Posted September 17, 2007 Hi, I have a (hopefully) simple issue to resolve. The Send command is not working in my scripts. I've tried it with different keys, etc., but it's as if the send command is not in the code. The dialog box brought up from the previous line just sits there waiting. For example, here is a snippet from the included WinZip tutorial in the help file. Nothing happens at the send command. Run("winzip90.exe") WinWaitActive("WinZip® 9.0 SR-1 Setup", "&Setup") Send("!s") OS is Vista and UAC is turned off. Thanks for looking. Link to comment Share on other sites More sharing options...
enaiman Posted September 18, 2007 Share Posted September 18, 2007 My guess is that your script is hanging at WinWaitActive. Here is what you can do: - put Opt("WinTitleMatchMode", 2) on top of your script (looks to match any substring from the title) - use a shorter title ("Setup" or "WinZip" or anything else significant) also Put Opt ("TrayIconDebug", 1) on top of your script so you can see which line is executed (where the script hangs) SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
John Posted September 18, 2007 Share Posted September 18, 2007 The WinZip installer contacts the internet prior to starting the installation. I suspect that it is active well before you see the GUI so the send command is happening too soon. Try putting a 5 second wait after WinWaitActive(). Run("winzip90.exe") WinWaitActive("WinZip® 9.0 SR-1 Setup", "&Setup") Sleep(5000) Send("!s") Link to comment Share on other sites More sharing options...
BillLuvsU Posted September 18, 2007 Share Posted September 18, 2007 Try the following code to see if it is the send command or somthing else: Run( "notepad.exe" ) sleep(3000) Send("Hello World!") [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now