Using GetMouse

Questions, comments, and suggestions related to Typeitin.
Post Reply
hfperkTII
Posts: 1
Joined: Thu Sep 09, 2021 12:45 am

Using GetMouse

Post by hfperkTII » Thu Sep 09, 2021 1:46 am

I have a collection of about 15 buttons and in each I want to record the position of the cursor using GetMouseX & Y. I cannot figure out how to do this since when I click the TypeItIn button to run the macro, the cursor has to move off the position I want to save in order to click the TypeItIn button. So the variables always reference the position of the TII button. Assigning a hot key to run the TII macros is not an option; too cumbersome. How to solve?

Wavget
Site Admin
Posts: 67
Joined: Wed Jan 16, 2019 4:32 pm

Re: Using GetMouse

Post by Wavget » Tue Sep 21, 2021 10:14 am

You can assign a shortcut key to the button to activate it.

In the Button Edit window, click on the Shortcut Key button to open the shortcut key window.

As an example, check the Alt and Control boxes and select A from the character list. Then click the Update Key button.

Close the shortcut key window and click the Close button to close the Button Edit window.

Now press the Control-Alt-A key combination to activate the button.

Post Reply