Mouse CoordMode

Ask gaming related questions
Willa63
Posts: 2
Joined: 11 Jan 2020, 10:45

Mouse CoordMode

11 Jan 2020, 11:01

Hi there i'm trying to creat a script that save my all clicks position and save them into to a mouseclicks.txt file,

inside txt file,
;--------------------------------*
position 1 => xx, yy
position 2 => xx, yy
position 3 => xx, yy
position 4 => xx, yy
.
.
.
position n => xx, yy
;--------------------------------*mouseclicks.txt

code,
;--------------------------------*

Code: Select all

Esc::ExitApp
F1::
CoordMode, Mouse, Screen
SetTimer, Check, 20
return

Check:
MouseGetPos, xx, yy
Tooltip %xx%`, %yy%
FileAppend, %xx%, %pos1%
OutputMessage = Click, %RulerRelX%`,%RulerRelY%, 0`nSleep, 16
Clipboard = %OutputMessage%
return
;--------------------------------*mouseclicks.ahk
Plz help. :)
User avatar
SyntaxTerror
Posts: 19
Joined: 23 May 2017, 12:55

Re: Mouse CoordMode

12 Jan 2020, 07:54

Hello Willa63

You should try AutoScriptWriter (it was packaged with AHK in its older versions:
https://www.autohotkey.com/download/1.0/AutoHotkey104805.zip).
It records all your actions (including clicks and mouse positions) and gives a text of this record, that you can save as an .AHK file.
After, you can edit it to fit your needs.

Look also this topic: https://www.autohotkey.com/boards/viewtopic.php?t=15743

Good luck.
Willa63
Posts: 2
Joined: 11 Jan 2020, 10:45

Re: Mouse CoordMode

16 Jan 2020, 08:11

thank you that was very help full

Return to “Gaming”

Who is online

Users browsing this forum: bruno03rs, w0z and 12 guests