can someone please help?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Lionel
Newbie
Posts: 1
Joined: Sat Aug 23, 2003 5:34 am

can someone please help?

Post by Lionel » Sat Aug 23, 2003 5:39 am

I'd like to run a macro to right click a program, select a command then input a password in dialog box that pops up and click ok.
Is that something that is doable? The record function does not work for me.
thank you

User avatar
Captive
Macro Veteran
Posts: 213
Joined: Sun Oct 20, 2002 8:37 pm
Location: Colorado, USA

Post by Captive » Sat Aug 23, 2003 7:04 am

It certainly is possible! :) Your macro would do something *like* the following:

1) Set focus to that window:SetFocus>WindowName*2) Move the mouse to a certain position, and Right click:MouseMoveRel>50,100
RClick3) (Possibly optional) Set focus to the dialog box, again with the 'SetFocus' command.

4) Type the password, (and hit enter?)Sen>YourPassword
Press Enter(Or to click ok, use MouseMoveRel to move the mouse over the 'ok', then LClick to click the left mouse button)

Now the co-ordinates of where the mouse should be, and the names of the windows that you want to set focus to (the dialog box possibly counts as a window too!) will depend on your system.

MouseMoveRel is a good command, because it moves the mouse 'relative' to the top-left corner of the current program.

Depending on the dialog box, you might have to 'Press Tab' to put the cursor in to the password field.

Hope these help.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts