Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Active Control Conundrum
#1
I have a TS menu item that I want triggered every time except when I'm in the To,CC,or BCC text fields but will still trigger in the main body or in other dialog boxes.
I tried this but it still triggers in the CC and BCC fields even though they have the same style. am I doing this the wrong way or can I just not be able to do that ?

Autotext TS Menu
Trigger $t //FF_TS_Menu     Help - how to add the trigger to the macro
Code:
Copy      Help
vi :ifa child("" "" win(" - Message " "rctrl_renwnd32") 0x0 "style=0x5001D044");    end;'"visualization"
An old blog on QM coding and automation.

The Macro Hook
#2
In Outlook 2003 these fields have different id. I would use this filter function.
Function FF_Autotext10
Code:
Copy      Help
;/
function# iid FILTER&f

if wintest(f.hwnd "* Message" "OpusApp" "" 1)
,int c=child
,sel GetWinId(c)
,,case [4097,4098] ret -2

err+
ret iid

;ret iid    ;; run the autotext list item.
;ret 0        ;; don't run any items.
;ret -2        ;; don't run this item. Matching items of other autotext lists can run.
Autotext Autotext10
Trigger $t //FF_Autotext10     Help - how to add the trigger to the macro
Code:
Copy      Help
/b/i/c/p3
vi :'"visualization"
#3
Thanks!
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 1 Guest(s)