in reply to Mouseclick in Application

Let me say up front. It will be very difficult to help you with this as we cannot see or test the application you are using. And even if we could, we probably have different resolution screens etc. which makes comparing absolute or relative coordinates impossible.

That said, Are you sure you want SendMouse("{ABS125,221}");? There are couple of reasons why this may be wrong:

Another possibility that might work for you, is to avoid using SendMouse() at all. Most mouse actions in most GUIs have a keyboard shortcut that is "position independant". Using them, where available, can make automation much simpler.

You appear to have taken great pains to manoeuvre the input caret to the control or field of interest. Having done so, you will often find that hitting the spacebar will have the same affect as clicking with the mouse. Hence replacing

SendMouse('{ABSx,y}'); SendMouse('LeftClick');

with the simpler, position independent

SendKey('SPC');

Might achieve the desired affect.

Another useful one is replacing SendMouse('{RightClick'}; with SendKey('APP'}; to invoke context menus.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy

Replies are listed 'Best First'.
Re^2: Mouseclick in Application
by Anonymous Monk on Oct 21, 2010 at 00:20 UTC
    Thank you for your response! Lucky for me, my window opens in the same spot every time (I ran through it several times to make sure). Using the spacebar in lieu of a mouse click did not work in my situation - but MouseMoveAbsPix() did the trick. I deeply appreciate you taking the time to answer so thoroughly even though I couldn't give you the actual application I am using.
    Keep up the great work!