Determine if mouse is over script-called menu/window =possible?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
eil
Posts: 1620
Joined: 13 Jan 2011 19:44

Determine if mouse is over script-called menu/window =possible?

Post by eil »

As i understood from help file it's possible to get position of mouse pointer, and even determine if it's over tree/list(though i'm not sure i understood it's correct). My question is if it's possible to call a window via XY script(say Inputselect() or popupmenu()) and determine if mouse pointer is over this particular element?
Basically i've got an idea for script, where such element appears with results of search, and if mouse doesn't get over it, close one after 3 seconds waiting.
Win 7 SP1 x64 100% 1366x768

highend
Posts: 13309
Joined: 06 Feb 2011 00:33

Re: Determine if mouse is over script-called menu/window =possible?

Post by highend »

On its own? Obviously not. Why? What does XY do after invoking a function like inputselect() / popupmenu()?
It waits for it to return so there is no: While I'm waiting for this I'll do a check every <x> milliseconds if something happened (apart from the fact that there is no inbuilt command to test if a context menu or inputselect window is open)

Call an external tool (that you have to write) before you display the window/menu that does the mouse pointer check and the appropriate action after the timeout...
One of my scripts helped you out? Please donate via Paypal

eil
Posts: 1620
Joined: 13 Jan 2011 19:44

Re: Determine if mouse is over script-called menu/window =possible?

Post by eil »

@highend thanks for explanation, couldn't figure out all the aspects fully.
Win 7 SP1 x64 100% 1366x768

Post Reply