Jump to content

how to active a window that is under the mouse, not by clicking it?


Go to solution Solved by Nine,

Recommended Posts

Hi @jacky998877,

I would do this:

  • get a list (handles) of visible windows (or only for your target window) 
  • get window position/size of these windows (or only of your target window)
  • listen on to the mouse position (cursor) event
    • calculate the mouse position in comparison to the target window position/size
    • in case the mouse hover over your target window, bring that window in front

Best regards
Sven

Edited by SOLVE-SMART

Stay innovative!

Spoiler

🌍 Au3Forums

🎲 AutoIt (en) Cheat Sheet

📊 AutoIt limits/defaults

💎 Code Katas: [...] (comming soon)

🎭 Collection of GitHub users with AutoIt projects

🐞 False-Positives

🔮 Me on GitHub

💬 Opinion about new forum sub category

📑 UDF wiki list

✂ VSCode-AutoItSnippets

📑 WebDriver FAQs

👨‍🏫 WebDriver Tutorial (coming soon)

Link to comment
Share on other sites

  • Solution
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...