AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Macro recorder
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Titan



Joined: 11 Aug 2004
Posts: 5376
Location: /b/

PostPosted: Fri Sep 28, 2007 4:35 pm    Post subject: Macro recorder Reply with quote

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.



Download
_________________



Last edited by Titan on Sat Sep 29, 2007 3:35 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
engunneer



Joined: 30 Aug 2005
Posts: 6856
Location: Pacific Northwest, US

PostPosted: Fri Sep 28, 2007 4:55 pm    Post subject: Reply with quote

nice. I think this will help quite a bit.

Can you make it also generate ControlSend when possible?
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5376
Location: /b/

PostPosted: Fri Sep 28, 2007 5:37 pm    Post subject: Reply with quote

Great idea; The next version will use Control commands such as *SetText, *Send and *Click.
_________________

Back to top
View user's profile Send private message Visit poster's website
0mega



Joined: 17 May 2007
Posts: 39

PostPosted: Sat Sep 29, 2007 2:37 pm    Post subject: Reply with quote

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 ?
Back to top
View user's profile Send private message
LazyLarry
Guest





PostPosted: Sat Sep 29, 2007 3:24 pm    Post subject: recorder Reply with quote

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.
Back to top
Titan



Joined: 11 Aug 2004
Posts: 5376
Location: /b/

PostPosted: Sat Sep 29, 2007 3:36 pm    Post subject: Reply with quote

I uploaded a zip with all the required dependencies.
_________________

Back to top
View user's profile Send private message Visit poster's website
BoBo¨
Guest





PostPosted: Sat Sep 29, 2007 6:50 pm    Post subject: Error Reply with quote

AHK v 1.0.47.01
XP Pro SP2
German Keyboard Layout

Code:
---------------------------
Recorder.ahk
---------------------------
Error: "¬" 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   
---------------------------
Back to top
Titan



Joined: 11 Aug 2004
Posts: 5376
Location: /b/

PostPosted: Sat Sep 29, 2007 7:06 pm    Post subject: Reply with quote

Thanks, I wasn't aware of foreign keyboard layouts. I'll try find an alternative for the next version.

Edit: fixed in 0.9a.
_________________

Back to top
View user's profile Send private message Visit poster's website
System Monitor



Joined: 09 Mar 2007
Posts: 398
Location: Unknown

PostPosted: Sat Sep 29, 2007 9:39 pm    Post subject: Reply with quote

On Exitapp, ask if the user wants to save,that bugged me SO much on the old AutoScriptWriter
_________________
Back to top
View user's profile Send private message Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5376
Location: /b/

PostPosted: Sat Sep 29, 2007 9:59 pm    Post subject: Reply with quote

How could I forget! Will be added in v0.11a.
_________________

Back to top
View user's profile Send private message Visit poster's website
Omega
Guest





PostPosted: Sat Sep 29, 2007 10:23 pm    Post subject: Reply with quote

Uumh ? http://img233.imageshack.us/img233/5471/screenshot00092uz4.jpg

What I should do ?
Back to top
Titan



Joined: 11 Aug 2004
Posts: 5376
Location: /b/

PostPosted: Sat Sep 29, 2007 10:33 pm    Post subject: Reply with quote

Try updating to the latest version of AutoHotkey.
_________________

Back to top
View user's profile Send private message Visit poster's website
BoBo¨
Guest





PostPosted: Sat Sep 29, 2007 11:17 pm    Post subject: Reply with quote

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?
Code:
#Include 49.txt

 .
 .
 .

Gui, Add, GroupBox, vsec1 Section          ym       w200 r6.5, %GroupBox1%
Gui, Add, CheckBox, vgui_sleep       xp+15   yp+25 Checked%gui_sleep%, %CheckBox1%
Gui, Add, CheckBox, vgui_window Checked%gui_window%, %CheckBox2%
Gui, Add, CheckBox, vgui_ctrl Checked%gui_ctrl%, %CheckBox3%
Gui, Add, CheckBox, vgui_keyboard Checked%gui_keyboard%, %CheckBox4%
Gui, Add, CheckBox, vgui_clicks Checked%gui_clicks%, %CheckBox5%
Gui, Add, CheckBox, vgui_movements Checked%gui_movements% gMov, %CheckBox6%
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%, %CheckBox7%
Gui, Add, GroupBox, vsec2          xs             w200 r3, %GroupBox2%
Gui, Add, Text,    vlbl1          xp+15    yp+25, %Text1%
Gui, Add, Hotkey,    vgui_start       xp+40    yp-2    w128 Limit1 gHotkey, %gui_start%
Gui, Add, Text,    vlbl2          xp-40    yp+27, %Text2%
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, %Button1%
Gui, Add, Button,    vclear          xp+230          w55 Disabled gClear, %Button2%
Gui, Add, Button,    vlbl3          xp+65          w55 Default gStart, %Button3%
44.txt (English)
Code:
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)
Code:
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 Shocked. Coming soon ...
Back to top
Titan



Joined: 11 Aug 2004
Posts: 5376
Location: /b/

PostPosted: Sat Sep 29, 2007 11:41 pm    Post subject: Reply with quote

Wunderbar! Smile I took your translations and put it into CSV format, when you have the time could you please fill in the missing ones:

Code:
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.
_________________

Back to top
View user's profile Send private message Visit poster's website
BoBo¨
Guest





PostPosted: Sun Sep 30, 2007 12:40 am    Post subject: Reply with quote

Code:
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)
Quote:
German special keys: °,^,!,",§,`$,`%,&,/,(,),=,?,``,*,',;,:,_,>,<,€,@,|,.,#,-,~,+,[,],{,},;ö,ä,ü
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group