Page 1 of 1

Macros

Posted: 06 Jul 2008, 14:10
by Joakim Skoglund
Hi,

I would like to have the possiblity to record macros of keypressing sequences and execute them via a keyboard shortcut.

Then many repetitions would be saved. For example one common task that I perform is to extract all files from an achive;
1. enter a catalog [enter]
2. move down to the first file in this dir [down]
3. press enter on a rar archive [enter]
4. change the oposite panel to same drive [alt-f1/f2]
5. change back to archive [tab]
6. select all files in the archive [ctrl-a]
7. extract the contents of the archive [f5]
8. close the archive [home + enter]

how I would implement the possiblity to record a macro
1. Activate recording [ctrl-r] (now Altap Salamander displays a recording icon somewhere)
2. Record all keystrokes in the Altap Salamander application only
3. User then stops the recording via [ctrl-r] to get a dialog to input a task name and keyboard shortcut for this task.

Keep up the good work!

Best regards,
Joakim Skoglund

Posted: 01 Aug 2008, 22:17
by Ether
For automatization (macros), try AutoIt.
Joakim Skoglund wrote:3. press enter on a rar archive [enter]
4. change the oposite panel to same drive [alt-f1/f2]
5. change back to archive [tab]
6. select all files in the archive [ctrl-a]
7. extract the contents of the archive [f5]
8. close the archive [home + enter]
In the meantime, I can advise you, how to make it little quicker. If you use a shortcut Alt+F9 to unpack the contents of an archive. The textbox should be empty or contain a period ('.', meaning: extract to the current directory) in your case.

Another thing - to change the other panel to the same directory, use:
a] Tab, Ctrl+Shift+~ (it's a difficult key combination, but I like it more)
b] Alt+F1/F2, . (. stands for the item 'As Other Panel')
c] Ctrl+.
In either case, you don't have to think about which drive to select.

edit 6.8.] Added c].