Is there a way to prevent the edit macro dialog closing when you run the macro?
I assigned a keystroke to edit macro so that is not so bad now.
Why do you have to retype the entire macro name every time you want to save it?
This has always annoyed me with most of the custom items.
Also, why does it not save if you do not run after saving?
What I want is to create a folder in the opposite pane using the parent and current folder names in the active pane.
For example, if the current pane is in 'C:\something\parent\current' ,I want the macro to create a folder named 'parent-current' in the opposite pane.
I've got something that works but it seems very slow. Right now it only works with the left pane being active but I think I know how to deal with that.
Code: Select all
# get full name of active folder from address bar findwnd address findclass combobox gettext $2 # get name of parent folder and add it to $3 pop $2 chopstr \-2 store $4 pop $3 addstr $4 store $3 # add "-' to $3 pop "-" store $4 pop $3 addstr $4 store $3 # get name of current folder and add it to $3 pop $2 chopstr \-1 store $4 pop $3 addstr $4 store $3 #message $3 findwnd "right pane" setfocus COMMAND 32796 # create new folder POP 0 FINDCLASS Edit FINDCLASS Edit SETTEXT $3 SENDKEY RETURN SENDKEY RETURN findwnd "left pane" setfocus