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
can someone please help?
Moderators: Dorian (MJT support), JRL
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.
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.