Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application pushbuttons

Status
Not open for further replies.

Volkmaniac

Technical User
Mar 19, 2003
104
US
I was wondering if anyone might be able to help me. I using a mouse recorder application to help me run WinFtp. I can load a file into the mouse recorder but I don't know how to tell the application to press play. There are three buttons that come up when it loads. Recorder Stop Play. Right now I can't shift-over to play so all I could do is hit enter to record.

proc main

set aspect keys on ;Tell Aspect to handle keys.


winminimize $PWMAINWIN
run "C:\Program Files\WinTelnet & FTP Pro\rtelftp32.exe"
pause 3
sendvkey 377 ;File
pause 1
sendvkey 83 ;Open
pause 1
sendvkey 70 ;FTP site
pause 1
sendvkey 82
pause 5
run "C:\GMouse20\Gmouse.exe"
pause 3
sendvkey 1094 ;File
pause 3
sendvkey 591 ;Open
pause 3
sendkeystr "mouse.gms"
pause 5
sendvkey 1103 ;Open
pause 3
playback "C:\Program Files\Symantec\Procomm Plus\Aspect\mouse.gms" (obviously doesn't work)
pause 30
sendvkey 2087 ;right arrow
pause 1
sendvkey 2087
pause 1
sendvkey 2087


endproc








































 
If you can send a tab manually, then you should be able to use sendvkey 0x09 to send a tab to the mouse recorder. If the buttons have accelerators, you can send Alt and the underlined key to activate that button.


aspect@aspectscripting.com
 
knob,

It worked to perfection. The mouse recorder just ftp'd my files from Unix to local using WinTelnet. Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top