Posts: 1,769
Threads: 410
Joined: Feb 2003
i'd like to be able to get to the Open Recent menu option using a macro or gesture. what is the menu number for that? (ie Macro
will get you to the Threads listing.)
Posts: 12,071
Threads: 140
Joined: Dec 2002
Menu can be recorded.
Macro
men 33304 id(2213 _hwndqm) ;;View Open Items
Posts: 1,769
Threads: 410
Joined: Feb 2003
i tried that but i just kept coming up with this (i did check the 'men' option too).
Macro
int w1=act(win("Quick Macros - List - [Macro]" "QM_Editor"))
lef+ 76 37 w1
lef- 77 37 w1
int w2=wait(7 WV win("" "#32768"))
lef 35 14 w2
thanks...how did you get that.
Posts: 12,071
Threads: 140
Joined: Dec 2002
Use menu Tools -> Record Menu.
Posts: 1,769
Threads: 410
Joined: Feb 2003
hmmm...still wont work for me since it's a menu.
Posts: 1,769
Threads: 410
Joined: Feb 2003
i'm talking about the 'open recent' in the 'run' menu not the other 'open recent'
thanks.
Posts: 331
Threads: 60
Joined: May 2006
You could always get the list of files from the reg and make your own menu..... not really sure how to do this but I found the key
str rcntfl
if(rget(rcntfl "Recent Files" "Software\GinDi\QM2\settings"))
,out rcntfl
It is only geting the last line of the key for some reason. Im not sure how to work with REG_MULTI_SZ.
Posts: 12,071
Threads: 140
Joined: Dec 2002
men cannot open submenus. Menu items that open submenus don't have an id. In this and most other cases, you cannot open a submenu without opening its parent popup menu.
Macro
Posts: 331
Threads: 60
Joined: May 2006
What about my idea, do u have any tips on working with REG_MULTI_SZ
Posts: 12,071
Threads: 140
Joined: Dec 2002
Recently executed macros are not stored in the registry.
--------
A multistring is a string consisting of several strings separated by 1 null and ends with 2 nulls, like this:
"string1[0]string2[0]string3[0]"
To go to the next string, add len(currentstring)+1.
Macro
lpstr s="string1[0]string2[0]string3[0]"
rep
,if(!s[0]) break
,out s
,s+len(s)+1
another example
Macro
str multistring.fromn("string1" 8 "string2" 8 "string3" 8)
lpstr s(multistring) se(multistring+multistring.len)
rep
,if(s>=se) break
,out s
,s+len(s)+1
Posts: 1,271
Threads: 399
Joined: Mar 2003
i must say that i miss the recent menu as button (recent executed macros).
Posts: 1,769
Threads: 410
Joined: Feb 2003
you can make your own with the trigger "QM Events" and put a macro that does this
Macro
Trigger
@11
Posts: 1,271
Threads: 399
Joined: Mar 2003
thanks, but this solutions not very beautiful.
why has this been removed ?
Posts: 12,071
Threads: 140
Joined: Dec 2002
The Previous button belongs to the "edit" part, so I moved the menu to th e"run" part. Did't think the menu is used frequently.
Now how to move it back? One solution would be to add "View Executed Items" below "View Open Items", and when you check it, show the list below the open items list. Is it OK? Or better add it as a popup menu somewhere? Another soulution would be to add GetExecutedItems function.
Posts: 1,769
Threads: 410
Joined: Feb 2003
how about another little window that'll open up beside that new "View Open Items" frame?
like this.
[ primary window ] [ secondary window ] [View Open Items] [Recent Run Items]