Jump to content
Sign in to follow this  
fstoll

Send not working

Recommended Posts

fstoll

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.

Share this post


Link to post
Share on other sites
enaiman

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 :)

Share this post


Link to post
Share on other sites
John

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")

Share this post


Link to post
Share on other sites
BillLuvsU

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

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  

×