Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Macro recorder


  • This topic is locked This topic is locked
56 replies to this topic
polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
Similar to AutoScriptWriter with additional features such as recording mouse movements (relative or absolute), timing intervals between actions and combining send keys i.e. automatically converting 'aaaaaaa' to {a 7}, and yet more to come. This is an alpha release.

Posted Image

Download

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


engunneer
  • Moderators
  • 9162 posts
  • Last active: Sep 12 2014 10:36 PM
  • Joined: 30 Aug 2005
nice. I think this will help quite a bit.

Can you make it also generate ControlSend when possible?

polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
Great idea; The next version will use Control commands such as *SetText, *Send and *Click.

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


0mega
  • Members
  • 38 posts
  • Last active: Nov 15 2008 09:38 PM
  • Joined: 17 May 2007
Where I can get Anchor.ahk ?

When I try to launch Recorder.ahk, it says: #include file "Anchor.ahk" cannot be opened

Or why this won't work :S ?

LazyLarry
  • Guests
  • Last active:
  • Joined: --
I found anchor.ahk on the net, then had to find RegExMatchAll.ahk, which then caused error messages duplicate labels with guiclose andGuiSize, followed by error message "call to nonexistant function, at which point I realized author may be humoring himself with newbies.

polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
I uploaded a zip with all the required dependencies.

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


BoBo¨
  • Guests
  • Last active:
  • Joined: --
AHK v 1.0.47.01
XP Pro SP2
German Keyboard Layout

---------------------------
Recorder.ahk
---------------------------
[color=red]Error[/color]: "¬" is not a valid key name.  The current thread will exit.

	Line#
	209: {
	211: Loop,2
	211: {
	212: Loop,Parse,keys,,,
	  

	213: if (state == " up" &&  InStr(keys_mouse, A_LoopField))  
	214: Continue
	215: Else
--->	215: Hotkey,*~%A_LoopField%%state%,LogKey,on ? "On" : "Off"
	216: state :=  up
	217: }
	218: }
	221: {
	223: Loop,cch * 2
	224: str .= Chr(*(lpch - 1 + A_Index))  
	225: if code = 0

---------------------------
OK   
---------------------------


polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
Thanks, I wasn't aware of foreign keyboard layouts. I'll try find an alternative for the next version.

Edit: fixed in 0.9a.

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


System Monitor
  • Members
  • 508 posts
  • Last active: Mar 26 2012 05:13 AM
  • Joined: 09 Mar 2007
On Exitapp, ask if the user wants to save,that bugged me SO much on the old AutoScriptWriter

polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
How could I forget! Will be added in v0.11a.

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


Omega
  • Guests
  • Last active:
  • Joined: --
Uumh ? http://img233.images... ... 092uz4.jpg

What I should do ?

polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
Try updating to the latest version of AutoHotkey.

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


BoBo¨
  • Guests
  • Last active:
  • Joined: --
I've translated the Gui text to German, using/including simple text files named with its Telco country code*. Wouldn't it make sense to assign the GUIs default language (and keyboard layout pattern) to the one which is used/set at the OS'es regional settings?
#Include 49.txt

 .
 .
 .

Gui, Add, GroupBox, vsec1 Section 			ym 		w200 r6.5, %[color=blue]GroupBox1[/color]%
Gui, Add, CheckBox, vgui_sleep 		xp+15	yp+25 Checked%gui_sleep%, %[color=blue]CheckBox1[/color]%
Gui, Add, CheckBox, vgui_window Checked%gui_window%, %[color=blue]CheckBox2[/color]%
Gui, Add, CheckBox, vgui_ctrl Checked%gui_ctrl%, %[color=blue]CheckBox3[/color]%
Gui, Add, CheckBox, vgui_keyboard Checked%gui_keyboard%, %[color=blue]CheckBox4[/color]%
Gui, Add, CheckBox, vgui_clicks Checked%gui_clicks%, %[color=blue]CheckBox5[/color]%
Gui, Add, CheckBox, vgui_movements Checked%gui_movements% gMov, %[color=blue]CheckBox6[/color]%
Gui, Add, Edit, 	vgui_moveinte 	xp+86 	yp-2	w50 Limit4
Gui, Add, UpDown, 	vgui_movint Range100-5000, %gui_movint%
Gui, Add, CheckBox, vgui_moverel 	xp+56 	yp+2 Checked%gui_moverel%, %[color=blue]CheckBox7[/color]%
Gui, Add, GroupBox, vsec2 			xs 				w200 r3, %[color=blue]GroupBox2[/color]%
Gui, Add, Text, 	vlbl1 			xp+15 	yp+25, %[color=blue]Text1[/color]%
Gui, Add, Hotkey, 	vgui_start 		xp+40 	yp-2 	w128 Limit1 gHotkey, %gui_start%
Gui, Add, Text, 	vlbl2 			xp-40 	yp+27, %[color=blue]Text2[/color]%
Gui, Add, Hotkey, 	vgui_stop 		xp+40 	yp-2	w128 Limit1 gHotkey, %gui_stop%
Gui, Add, Button, 	vsave 			xm 		yp+10	w94 Disabled gSave -Wrap, %[color=blue]Button1[/color]%
Gui, Add, Button, 	vclear 			xp+230 			w55 Disabled gClear, %[color=blue]Button2[/color]%
Gui, Add, Button, 	vlbl3 			xp+65 			w55 Default gStart, %[color=blue]Button3[/color]%
44.txt (English)
GroupBox1 = Recording options
GroupBox2 = Hotkeys
CheckBox1 = &Time intervals
CheckBox2 = &Window actions
CheckBox3 = &Use control commands
CheckBox4 = &Keyboard actions
CheckBox5 = Mouse c&licks
CheckBox6 = &Movements
CheckBox7 = Rel
Text1 = S&tart:
Text2 = St&op:
Button1 = &Save As...
Button2 = &Clear
Button3 = Sta&rt
49.txt (Deutsch)
GroupBox1 = Aufnahmeoptionen
GroupBox2 = HotKey
CheckBox1 = &Zeitintervale
CheckBox2 = &Fensteraktionen
CheckBox3 = &Control-Befehle 
CheckBox4 = &Tastaturaktionen
CheckBox5 = &Mausklicks
CheckBox6 = &Bewegungen
CheckBox7 = Rel 
Text1 = St&art:
Text2 = St&op:
Button1 = &Speichern unter...
Button2 = Z&urücksetzen
Button3 = Sta&rt
Huh, have forgotten to include the tooltip messages :shock:. Coming soon ...

polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
Wunderbar! :) I took your translations and put it into CSV format, when you have the time could you please fill in the missing ones:

lang =
(
en,de ;,fr,es,it
Recorder,
Recording options,Aufnahmeoptionen
&Time intervals,Aufnahmeoptionen
&Window actions,&Zeitintervale
&Use control commands,&Control-Befehle
&Keyboard actions,&Tastaturaktionen
Mouse c&licks,&Mausklicks
&Movements,&Bewegungen
Rel,
Hotkeys,&Fensteraktionen
S&tart:,St&art:
St&op:,St&op:
&Save As...,&Speichern unter...
&Clear,Z&urücksetzen
Sta&rt,Sta&rt
by,
Macro,
Save As...,
AutoHotkey Scripts,
Recording macro...`nPress $1 to stop.,
"Loading script, please wait...",""
Save script,
Would you like to save the current script before closing?,
)

Any other translations will be much appreciated. German support will be added in v0.11a.

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


BoBo¨
  • Guests
  • Last active:
  • Joined: --
lang =
(
en,de ;,fr,es,it
Recorder,Rekorder
Recording options,Aufnahmeoptionen
&Time intervals,&Zeitintervalle
&Window actions,&Fensteraktionen
&Use control commands,&Control-Befehle
&Keyboard actions,&Tastaturaktionen
Mouse c&licks,&Mausklicks
&Movements,&Bewegungen
Rel,Rel
Hotkeys,Hotkeys
S&tart:,St&art:
St&op:,St&op:
&Save As...,&Speichern unter...
&Clear,Z&urücksetzen
Sta&rt,Sta&rt
by, von
Macro,Makro
Save As...,Speichern unter...
AutoHotkey Scripts,AutoHotkey Scripts
Recording macro...`nPress $1 to stop.,Makroaufzeichnung...`nBeenden mit  $1
"Loading script, please wait...","Lade Skript, bitte warten..."
Save script,Skript speichern
Would you like to save the current script before closing?,Vor Beenden speichern?
)
Btw. I'd replace 'Start' and 'Clear' on-the-fly (@ same pos&size) and vice versa, to prevent overlappings of those buttons at fixed pos, based on their different size if using another language eg.
German (Start=5/Zurücksetzen=12)
English (start=5/clear=5)

German special keys: °,^,!,",§,`$,`%,&,/,(,),=,?,``,*,',;,:,_,>,<,€,@,|,.,#,-,~,+,[,],{,},;ö,ä,ü