How to create a hotkey to press a button?

vuvanthanh's Avatar
Email Reported As Spam
I have a POS software which doesn't support hotkey to press a certain button. I have to press this button very often and having always to use mouse is slow and uncomfortable.
I tried to use AutoHotKey or AutoIt to emulate the mouse click. However, the problem is that AutoHotKey and AutoIt couldn't locate the button. This button control seems to be an internal object of the POS software and not visible to AutoHotKey and AutoIt.
Any suggestions? Thanks!
Attached Images
File Type: jpg hotkey_button.jpg (37.0 KB, 4 views)
fabian1121's Avatar, Join Date: Mar 2012
Newbie Member
MouseMove() to the pos of the button maybe ? wouldn't it be easiest, i mean in AutoIt3, check the pos by AutoIt 3 Window Info.
phpdevelopment's Avatar, Join Date: Jun 2012
Newbie Member
You can work faster and more efficiently by using your keyboard instead of your mouse. HotKeyz is a keyboard utility that will boost your productivity and it is really great to use.

Once you’ve done that, paste the following into the script:
SetTimer, PressTheKey, 1800000
Send, {Space}
annaharris's Avatar
Place the window in the top-left corner of your screen. Record a macro that moves the pointer all the way to the top left corner of your monitor, then down to the button and clicks it. Then you can run your macro however often you like, because no matter where your mouse pointer is, it will zoom up to the top left corner, then down to the button.