Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
React to user mouse click
#1
I want to create a button for my desktop search screen that pastes a string into a search box.

But the search box is not always in the same place.

I know how to create buttons. I need to know how to react to the user mouse click so:

1. User clicks button
2. User clicks desired text box on search screen and a text string stored in the macro is pasted

I have the button created.

Now macro needs to:
Wait for user left click
Paste "text string" at the exact location the the left click was made.

Can you advise?
Thanks!
#2
Please post here the code you already have.
#3
Code:
Copy      Help
;wait/loop until mouse is left clicked
;let the left click take effect (text box is now clicked in)

key "H:\!Files"
#4
If initially left button is not pressed, then simply
wait 60 ML; err ret
0.1
#5
Thanks! Works like a charm!

What is ML?
#6
"wait for mouse left button up". Look in QM help.


Forum Jump:


Users browsing this thread: 1 Guest(s)