Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trigger when Window is created - won't trigger
#1
I'm trying to do a very simple macro but it won't trigger by Window creation.

I just want a few things to happen when I create a new outlook 2003 task (triggered when "Untitled - Task" is created - or activated, whatever (it is only named that at creation anyway))

So my trigger is:
Window\Created and Active
Code:
Copy      Help
!ca"Untitled - Task" "rctrl_renwnd32"

my macro is:
Code:
Copy      Help
int hwnd=val(_command)
int w1=act(win("Untitled - Task" "rctrl_renwnd32"))
lef 223 164 w1
mes "it worked"

no errors but it just doesn't trigger. I also tried plain Activated by alt-tabbing and that didn't work either.

What am I missing here?
#2
Everything is correct. I tested, works.

Usually when a window trigger does not work I use window events logging to find the problem. Menu Tools -> Output -> Log -> Window events.

I also noticed that the name ends with several spaces. But if you don't check Use* it doesn't matter.
#3
thank you and my apologies,

I had qm triggers disabled

sorry


Forum Jump:


Users browsing this thread: 2 Guest(s)