Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
active acc object
#1
When I'm working on an email, I don't want some of my TS Menu items executing. is there a way to test where the cursor is so that I can cancel the TS Menu output that would normally happen?
An old blog on QM coding and automation.

The Macro Hook
#2
Use this filter function.
Function FF_TS_Menu
Code:
Copy      Help
;/
function# iid FILTER&f

Acc a=acc
;...

ret -2

;ret iid    ;; run the TS menu item.
;ret 0        ;; don't run any items.
;ret -2        ;; don't run this item. Matching items of other TS menus can run.
#3
I've been working on this for a couple of days now and can't seem to get it to check the active child.
I'm in the 'To' field of an Outlook email but still can't seem to get this check to work. Can anyone tell me where I'm going wrong here?

Macro Macro2
Code:
Copy      Help
_i=win("Untitled - Message (HTML) " "rctrl_renwnd32" "OUTLOOK")
int a=4099
if childtest(_i a "To" "RichEdit20WPT" _i )
,out "yes"
An old blog on QM coding and automation.

The Macro Hook
#4
Macro Macro1653
Trigger F11     Help - how to add the trigger to the macro
Code:
Copy      Help
int w=win
if(!w or !wintest(w "Message")) ret
int c=child
if(!c or !childtest(c 4097)) ret
out "yes"
#5
Ahhhhh....'child' works like 'win'.....got it!!

thanks.
An old blog on QM coding and automation.

The Macro Hook
#6
Is there a way to capture the characters triggering the TS menu item? that is what two characters are being exectuted via the TS item?

I tried this but it just outs a '0' and outing iid only gets me a '6' for anything I trigger.

Function FF_TS_Menu
Code:
Copy      Help
f.tkey2
An old blog on QM coding and automation.

The Macro Hook
#7
Shows TS menu trigger info. Can be called from a TS menu filter function or TS menu item code.

Function outTsmTrigger
Code:
Copy      Help
;/
function [FILTER&f]

str si sa; int pc fl
if(TriggerInfoTsMenu(sa pc si fl f)) out "user: %s '%C'    item: %s 0x%X" sa pc si fl


Forum Jump:


Users browsing this thread: 1 Guest(s)