AutoHotkey Community

It is currently May 25th, 2012, 4:39 pm

All times are UTC [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 57 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Macro recorder
PostPosted: September 28th, 2007, 5:35 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
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.

Image

Download

_________________
GitHubScriptsIronAHK Contact by email not private message.


Last edited by polyethene on September 29th, 2007, 4:35 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 28th, 2007, 5:55 pm 
Online
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8657
Location: Salem, MA
nice. I think this will help quite a bit.

Can you make it also generate ControlSend when possible?

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 28th, 2007, 6:37 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
Great idea; The next version will use Control commands such as *SetText, *Send and *Click.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 29th, 2007, 3:37 pm 
Offline

Joined: May 17th, 2007, 4:49 pm
Posts: 38
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 ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: recorder
PostPosted: September 29th, 2007, 4:24 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 29th, 2007, 4:36 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
I uploaded a zip with all the required dependencies.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Error
PostPosted: September 29th, 2007, 7:50 pm 
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   
---------------------------


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 29th, 2007, 8:06 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
Thanks, I wasn't aware of foreign keyboard layouts. I'll try find an alternative for the next version.

Edit: fixed in 0.9a.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 29th, 2007, 10:39 pm 
Offline

Joined: March 9th, 2007, 2:47 am
Posts: 509
Location: Unknown
On Exitapp, ask if the user wants to save,that bugged me SO much on the old AutoScriptWriter


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 29th, 2007, 10:59 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
How could I forget! Will be added in v0.11a.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 29th, 2007, 11:23 pm 
Uumh ? http://img233.imageshack.us/img233/5471 ... 092uz4.jpg

What I should do ?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 29th, 2007, 11:33 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
Try updating to the latest version of AutoHotkey.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 30th, 2007, 12:17 am 
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 :shock:. Coming soon ...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 30th, 2007, 12:41 am 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
Wunderbar! :) 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.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 30th, 2007, 1:40 am 
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: °,^,!,",§,`$,`%,&,/,(,),=,?,``,*,',;,:,_,>,<,€,@,|,.,#,-,~,+,[,],{,},;ö,ä,ü


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 57 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bon, Google Feedfetcher, Rajat, sarevok9, Wicked, XX0 and 18 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group