Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
filter by app
#1
I'm trying to filter a macro so that it only works within a certain window in a certain application, specifically Avid Xpress. The window I'm interested in is distinguished in the application only by its ID, as indicated in the QM status bar (id=2). The entire app appears as the same window name, but the id changes between the windows within the app.

How do I modify the win/wintest line so that it filters by the app and the window id?

Also, I want a macro to only run in Trillian Pro. But Trillian launches different window names based on the person I'm chatting with, so how do I filter based ONLY on the name of the app?

I tried

Code:
Copy      Help
if(win("" "" "Trillian")) ret iid

and

Code:
Copy      Help
if(win("" "Trillian" "")) ret iid

Code:
Copy      Help
if(win("" "" "C:\Program Files\Trillian\trillian.exe")) ret iid

but the macro still runs in other apps.

thanks!
Ze'ev


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)