When I use FindImagePos> and try to specify the Haystack by using a wildcard, the macro fails to find the image.
Is this by design?
Thanks!
Haystack + Wildcard = Fail
Moderators: Dorian (MJT support), JRL
-
- Macro Veteran
- Posts: 239
- Joined: Fri Apr 15, 2005 8:32 am
- Marcus Tettmar
- Site Admin
- Posts: 7380
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Haystack + Wildcard = Fail
Can you explain what you mean? Haystack can't take a wildcard. That makes no sense. There can be only one haystack. But it can be SCREEN.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
-
- Macro Veteran
- Posts: 239
- Joined: Fri Apr 15, 2005 8:32 am
Re: Haystack + Wildcard = Fail
Sorry I wasn't clearer.
In SetFocus, the window_title may contain the * symbol at the end to indicate a substring match. However, in FindImagePos, the WINDOW:title option does not allow for the * symbol to be used.
In SetFocus, the window_title may contain the * symbol at the end to indicate a substring match. However, in FindImagePos, the WINDOW:title option does not allow for the * symbol to be used.
- Marcus Tettmar
- Site Admin
- Posts: 7380
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Haystack + Wildcard = Fail
Correct. You could do this:
SetFocus>Window*
GetActiveWindow>title
FindImagePos>needle,WINDOW:title,etc,....
Sent from my iPad using Tapatalk
SetFocus>Window*
GetActiveWindow>title
FindImagePos>needle,WINDOW:title,etc,....
Sent from my iPad using Tapatalk
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
-
- Macro Veteran
- Posts: 239
- Joined: Fri Apr 15, 2005 8:32 am
Re: Haystack + Wildcard = Fail
That works! Thanks for the great support!