toprekt2 / autokey

Automatically exported from code.google.com/p/autokey
GNU General Public License v3.0
0 stars 0 forks source link

MouseMove and MouseGetPos, holding click etc... #283

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Feature request, not a defect :)

I use AutoHotkey a lot on Windows and it has so much more mouse API 
availability, I can't really do anything with AutoKey's mouse API.

First of all we need some function to move the mouse, I think that's been 
suggested already.

Also, need some way to press and hold a click or any key (in AutoHotkey you can 
do something like "Send {a down}" which holds 'a' until you issue "Send {a up}" 
to release it, same for mouse using "Click down" and "Click up".

These two are very needed to automate dragging. First move mouse to start 
position, then press and hold click, move the mouse to another position, and 
release click.

Lastly, I need a way to get the current mouse position and store it in two 
variables X and Y. It doesn't matter if they're relative to the window or 
desktop, although I'd prefer the window as that is far more useable for 
automating things. For example many times I use script like, move mouse to a 
location, press a hotkey to store its position, do the same for another 
position, press hotkey etc, and then when you press a third hotkey it uses the 
two stored locations to perform some automation task.

I hope you understand now why I put them in the same issue. AutoKey's Mouse API 
really needs to be useable and this would fix many of them in my opinion.

Thanks for your time for considering it.

Original issue reported on code.google.com by katsunor...@gmail.com on 26 Jun 2014 at 11:26