Code: Select all
Label>3 GetActiveWindow>title,x,y If>title=Planner* MessageModal>BD Wait>10 Else //Something else is active Endif Goto>3 Endif
Specify the window name in window_title. The window_title may contain the * symbol at the end to indicate a substring match.
If the last character of the window title specified is an asterisk (*), Macro Scheduler will attempt to select the first window whose title matches the text entered exactly. If it cannot make an exact match it then looks at all windows and selects the first one it finds whose title contains the entered text (using a case-insensitive search). This solves the problem with applications such as Word or Netscape which change their titles depending on the document loaded. It is best to try to provide an exact (including case) window title to ensure the correct window is found, as many applications have multiple invisible windows with similar names. Specifying text without a trailing asterisk will force Macro Scheduler to only look for an exact match.
I searched about add a * after a word to it ignore anything after, but it dont working in my script.
Im trying make the script run only if a window named Planner be activated and focused, but everytime the window title change, example PLanner - 1, Planner - 20, so i tried Planner* but not working.