Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Next Key
#1
is there a way to have the "next key" property allow more that just one key?
An old blog on QM coding and automation.

The Macro Hook
#2
In Properties click multi-trigger and set another trigger. For example, if main macro trigger is Ctrl+B+N, another trigger can be Ctrl+B+M, and so on.
#3
i was really thinking about using CASx for a bunch of different macros but differentiating which one those start depending on with two or three extra keys i hit.

can qm do that?
An old blog on QM coding and automation.

The Macro Hook
#4
Wait for third key in macro:
Code:
Copy      Help
;spe
int vk=wait(5 KF); err ret
;out vk
sel vk
,case 'A': "key A"
,case VK_LEFT: "key Left"
,;case 0xC0: "key `"
,case else: key (vk)
#5
that'll do!

thanks.
An old blog on QM coding and automation.

The Macro Hook
#6
i'm having problems with this working when I'm in the editor. I'm trying to get it to put "ClearOutput" in when i hit c-l put all it does is put a "v" in the editor and gives me this error after it times out.
"Error (RT) in C_macs: cannot paste. Make sure that this window is editable, supports Ctrl+V, and accepts this clipboard format. Some windows use Shift+Insert instead.
"

here's the actual code....it works great every where else but i cant seem to figure out why it doesn't work in the editor.

any ideas why?



Code:
Copy      Help
spe 100
int vk=wait(5 KF); err ret
shutdown -6 0 "TS_Sound"
sel vk
,case 'E': outp "Crystal Enterprise"
,case 'L': outp "ClearOutput"
,case 'R': outp "Crystal Reports"
,case else: end
An old blog on QM coding and automation.

The Macro Hook
#7
Here works well. Try to check "When released".
#8
i think i tracked it down. i'm starting another function that is doing an OnScreenDisplay and i think it's grabbing that window rather than the editor. this isnt a problem on anything else just the editor. is there a way to do this?

Code:
Copy      Help
,OnScreenDisplay("Ú" 0.15 0 0 "Wingdings 2" 58 0x1101b2 2 "TS")
,OnScreenDisplay("Û" 0.15 0 0 "Wingdings 2" 58 0x1101b2 2 "TS")
,OnScreenDisplay("Ü" 0.15 0 0 "Wingdings 2" 58 0x1101b2 2 "TS")
,OnScreenDisplay("Ý" 0.15 0 0 "Wingdings 2" 58 0x1101b2 2 "TS")
,OnScreenDisplay("Þ" 0.15 0 0 "Wingdings 2" 58 0x1101b2 2 "TS")
,OnScreenDisplay("ß" 0.15 0 0 "Wingdings 2" 58 0x1101b2 2 "TS")

,OnScreenDisplay("Þ" 0.15 0 0 "Wingdings 2" 58 0x1101b2 2 "TS")
,OnScreenDisplay("Ý" 0.15 0 0 "Wingdings 2" 58 0x1101b2 2 "TS")
,OnScreenDisplay("Ü" 0.15 0 0 "Wingdings 2" 58 0x1101b2 2 "TS")
,OnScreenDisplay("Û" 0.15 0 0 "Wingdings 2" 58 0x1101b2 2 "TS")
,OnScreenDisplay("Ú" 0.15 0 0 "Wingdings 2" 58 0x1101b2 2 "TS")
An old blog on QM coding and automation.

The Macro Hook
#9
shutdown is asynchronous. QM thread for a while is not in main message loop, and does not process Ctrl+V. Use something else instead of shutdown. For example, global variable.

Code:
Copy      Help
mac "TS_Sound"
int+ g_stop_ts_sound
int vk=wait(5 KF); err g_stop_ts_sound=1; ret
g_stop_ts_sound=1
sel vk
,case 'E': outp "Crystal Enterprise"
,case 'L': outp "ClearOutput"
,case 'R': outp "Crystal Reports"
,case else: end

Function TS_Sound
Code:
Copy      Help
int+ g_stop_ts_sound=0
str s="??Ü??ß??Ü??"
str ss
int i
rep
,for i 0 s.len
,,OnScreenDisplay(ss.get(s i 1) 0.2 0 0 "Wingdings 2" 58 0x1101b2 0 "TS")
,,0.15
,,if(g_stop_ts_sound) ret
#10
MAN THAT'S SLICK!!!

thanks!!
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 1 Guest(s)