shotokan
Joined: 08 Aug 2005 Posts: 7
|
Posted: Mon Aug 08, 2005 2:34 am Post subject: Need help with script |
|
|
I want to write a script that, after pressing a hotkey, will launch about 5 different programs on my work computer. Not only that, but I would like the script to input my username and password and then click the appropriate login button for each program. Is this possible?
I've tried using the AutoScript Writer on my home computer as a test by launching Outlook, then Excel then entering data in a couple of cells, then launching another program. I wanted #q as my hotkey. But I keep getting the same error when I double-click the script file. It says:
Error: Requires at least one of its window parameters
Line#
001: Return
--> 002: Winwait,
Here's what the AutoScript recorded:
| Code: |
#q::
WinWait, ,
IfWinNotActive, , , WinActivate, ,
WinWaitActive, ,
MouseClick, left, 25, 16
Sleep, 100
WinWait, Inbox - Microsoft Outlook,
IfWinNotActive, Inbox - Microsoft Outlook, , WinActivate, Inbox - Microsoft Outlook,
WinWaitActive, Inbox - Microsoft Outlook,
MouseClick, left, 969, 14
Sleep, 100
WinWait, ,
IfWinNotActive, , , WinActivate, ,
WinWaitActive, ,
MouseClick, left, 46, 8
Sleep, 100
WinWait, Start Menu,
IfWinNotActive, Start Menu, , WinActivate, Start Menu,
WinWaitActive, Start Menu,
MouseClick, left, 377, 321
Sleep, 100
WinWait, Rhapsody,
IfWinNotActive, Rhapsody, , WinActivate, Rhapsody,
WinWaitActive, Rhapsody,
MouseClick, left, 981, 16
Sleep, 100
MouseClick, left, 968, 17
Sleep, 100
WinWait, ,
IfWinNotActive, , , WinActivate, ,
WinWaitActive, ,
MouseClick, left, 16, 23
Sleep, 100
WinWait, Microsoft Excel - Book1,
IfWinNotActive, Microsoft Excel - Book1, , WinActivate, Microsoft Excel - Book1,
WinWaitActive, Microsoft Excel - Book1,
MouseClick, left, 376, 324
Sleep, 100
Send, 123
MouseClick, left, 399, 341
Sleep, 100
Send, afdjl{ENTER}
MouseClick, left, 965, 8
Sleep, 100
return
|
What am I missing??
Last edited by shotokan on Mon Aug 08, 2005 12:13 pm; edited 1 time in total |
|