big idea with small knowledge....Need help

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
omar93917
Posts: 1
Joined: 20 Aug 2017, 10:59

big idea with small knowledge....Need help

20 Aug 2017, 11:22

hello there i want to Control my mouse using my Arduino ...can anyone tell how i can use autohotkey in this projet...i am still at the first
thanks
User avatar
Capn Odin
Posts: 1352
Joined: 23 Feb 2016, 19:45
Location: Denmark
Contact:

Re: big idea with small knowledge....Need help

20 Aug 2017, 13:01

Try taking a look at this theard https://autohotkey.com/board/topic/6469 ... k-beta-01/
I don't own the hardware myself so I can't confirm that it works.

Edit: if you are able to generate an event you will be able to detect it in AHK. By event I mean either something is sent to the computer or something changes on the computer.
Please excuse my spelling I am dyslexic.
User avatar
Brazolek123
Posts: 187
Joined: 06 Jun 2016, 16:02

Re: big idea with small knowledge....Need help

20 Aug 2017, 18:47

How I would make it:

1. Make the arduino to send position to the serial monitor, for example:
x450
y500
or:
x450y500M/C,L/R ;move/click, left/right

2. check if window "Serial Monitor" exist
https://autohotkey.com/docs/commands/WinExist.htm

3. using ahk built-in application Active Window Info obtain class of control in which text with position is stored in com monitor

4. then in loop periodically parse the string using some string managment commands and save it into variables
https://autohotkey.com/docs/commands/IfInString.htm
https://autohotkey.com/docs/commands/StringSplit.htm
and so on, depending what other data will you be sending

5. use mouse commands to manipulate your cursor
https://autohotkey.com/docs/commands/MouseClick.htm

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mikeyww, WAZAAAAA and 397 guests