Mouse And Keyboard Macro Recorder

Post your working scripts, libraries and tools
feiyue
Posts: 162
Joined: 08 Aug 2014, 04:08

Re: Mouse And Keyboard Macro Recorder

29 May 2019, 03:04

1. The save path of the original script is the program directory of AutoHotkey.exe.
You can easily change to other directories, such as: LogFile:="c:\a.txt" :beer:

Code: Select all

dir:=A_IsCompiled ? A_ScriptDir : RegExReplace(A_AhkPath,"\\[^\\]+$")
LogFile:=dir "\Record.txt"
2. When you want to loop, you can click the "Edit" button to open the notepad.
Add "Loop {" at the front of the code, and "}" at the end of the code,
then close the notepad(save the changes), then click the "Play" button to run.
0x00
Posts: 79
Joined: 22 Jan 2019, 13:12

Re: Mouse And Keyboard Macro Recorder

29 May 2019, 07:18

Just a quick question, the version currently posted in the OP is v2.0 & recall seeing v4.6, so i was wondering why the drastic revert to such a primitive version when you had made it so powerful in the later versions. Just wondering... because I've been using ahk for years & i still rely on macro recorders for some quick & dirty automation every so often & this script is among the best Macro Recorders on this forum & i loved the scope of the later versions, cheers.
feiyue
Posts: 162
Joined: 08 Aug 2014, 04:08

Re: Mouse And Keyboard Macro Recorder

30 May 2019, 01:34

My original intention was to provide a simple recording tool for beginners.
As I added more and more private functions to this recording tool,
it became more and more complex, making it difficult for beginners to use.
My English is not good enough to explain how to use it clearly.
So I gave up the later version.
0x00
Posts: 79
Joined: 22 Jan 2019, 13:12

Re: Mouse And Keyboard Macro Recorder

01 Jun 2019, 01:41

@feiyue Got it, I'd like to suggest you maybe place the last version in a spoiler tag labelled 'abandoned extended version' or something though, it's much too useful to be completely removed, just a thought. Cheers, awesome improvements on FindText btw.
Probydoby
Posts: 1
Joined: 26 Jul 2019, 07:26

Re: Mouse And Keyboard Macro Recorder

26 Jul 2019, 08:22

@feiyue ,

Signed on to thank you for this script. First I used the basic one, as the more advanced one was hidden. I had to use a website cacher to go find the old, more advanced, version in this thread.

I think it would be useful to post it separately, thanks again for the work you put into it. :bravo:
Virlix
Posts: 1
Joined: 17 Oct 2019, 04:21

Re: Mouse And Keyboard Macro Recorder

17 Oct 2019, 06:43

Hello!!

Please, where i could find the last version.

tks
burque505
Posts: 1031
Joined: 22 Jan 2017, 19:37

Re: Mouse And Keyboard Macro Recorder

17 Oct 2019, 13:23

@Virlix, if by last version you mean 2.0 (latest), it's on the first page of this thread. For anyone interested in 3.0, 4.5, 4.5a or 4.6, I'm attaching them here.
Attachments
MacroRecorders.zip
(44.73 KiB) Downloaded 21 times
Uncle Iroh
Posts: 1
Joined: Yesterday, 13:04

Re: Mouse And Keyboard Macro Recorder

Yesterday, 14:22

This is probably so basic, but I'm new to AHK and just can't seem to alter this piece of the code from v4.6 to do what I want. Which is to log the delays between actions, so playback would actually be at the same speed as recorded. Help would be greatly appreciated.

Code: Select all

Log(str, Keyboard=0)  ; Add to LogArr[]
{
  global LogArr, LastTime
  NowTime:=A_TickCount
  Delay:=LastTime ? NowTime-LastTime : 0
  LastTime:=NowTime
  r:=LogArr[LogArr.MaxIndex()]
  if (Keyboard and InStr(r,"Send(") and Delay<1000)
  {
    LogArr[LogArr.MaxIndex()]:=SubStr(r,1,-2) . str """)"
    return
  }
  if (Keyboard and Delay>0)
    LogArr.Push("Sleep(500)")
  LogArr.Push(Keyboard ? "Send(""" str """)" : str)
}

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Jaay_B, Thoughtfu1Tux and 27 guests