Execute mouse down in a macro

D

Douglas J. Steele

What do you mean by "execute mouse down"? By itself, a mouse down does
nothing. Are you saying you want to invoke the code associated with the
mouse down event? Simply call that code.
 
S

Sarah

I have scheduled task which runs a macro. THis macro is in a database that
has a password. Not a file secured password, but a password which prompts
the user once they are in the database. I use sendkeys to put in the
password. THis schedule runs fine if I don't lock my computer, but when I
lock the computer, the macro stops in the form which prompts the user for the
password and it appears to be locked. There are no keys or combination of
keys that can be pressed in order for the cursor to appear in the password
box so that the sendkeys can work. The only thing thatg works is if I click
the mouse button and this is why I want to know how to execute the mouse
button in a macro.

Any suggestions?

Sarah
 
S

Steve Schapel

Sarah,

Nope. No such thing.

If you want to locate the cursor in a particular control, you could try
the GoToControl action in your macro.
 
S

Sarah

I finially did get the cursor to go into the password box by using ctrl right
arrow, but it will not execute the sendkeys to put the password in. It just
appears to be locked and I can't even type anything unless I click my mouse
in the password box. I will try the GoToControl and see if that does
anything. Thanks Steve.

Sarah
 
S

Steve Schapel

Sarah,

Many people regard SendKeys to be problem-prone, and avoid it. Instead,
in your example it sounds like a SetValue action would do the trick of
entering the password into the textbox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top