Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open Recent
#1
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
Code:
Copy      Help
men 33042
will get you to the Threads listing.)
An old blog on QM coding and automation.

The Macro Hook
#2
Menu can be recorded.

Macro
Code:
Copy      Help
men 33304 id(2213 _hwndqm) ;;View Open Items
#3
i tried that but i just kept coming up with this (i did check the 'men' option too).
Macro
Code:
Copy      Help
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.
An old blog on QM coding and automation.

The Macro Hook
#4
Use menu Tools -> Record Menu.
#5
hmmm...still wont work for me since it's a menu.
An old blog on QM coding and automation.

The Macro Hook
#6
i'm talking about the 'open recent' in the 'run' menu not the other 'open recent'

thanks.
An old blog on QM coding and automation.

The Macro Hook
#7
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

Code:
Copy      Help
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.
#8
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
Code:
Copy      Help
key Arp
#9
What about my idea, do u have any tips on working with REG_MULTI_SZ
#10
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
Code:
Copy      Help
lpstr s="string1[0]string2[0]string3[0]"

rep
,if(!s[0]) break
,out s
,s+len(s)+1

another example
Macro
Code:
Copy      Help
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
#11
i must say that i miss the recent menu as button (recent executed macros).
pi
#12
you can make your own with the trigger "QM Events" and put a macro that does this

Macro
Trigger @11     Help - how to add the trigger to the macro
Code:
Copy      Help
'Ar
0.005
'p
An old blog on QM coding and automation.

The Macro Hook
#13
thanks, but this solutions not very beautiful.
why has this been removed ?
pi
#14
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.
#15
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]
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 2 Guest(s)