Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Activate Toplevel window under mouse


  • Please log in to reply
3 replies to this topic
Bluesmaster
  • Members
  • 23 posts
  • Last active: Mar 22 2016 06:49 PM
  • Joined: 17 Aug 2013

Dear Community,

 

I want a window to become active when I move the mouse over it.

Unfortunately this ( in a loop ) is too aggressive:

MouseGetPos,,, WinUMID
WinActivate, ahk_id %WinUMID%

It makes it impossible to launch menus and other child windows.

But ok I think you know what I mean and want.

 

Can you please give me a hint?

 

best regards

 

Bluesmaster



Bluesmaster
  • Members
  • 23 posts
  • Last active: Mar 22 2016 06:49 PM
  • Joined: 17 Aug 2013

push?



noname
  • Members
  • 650 posts
  • Last active:
  • Joined: 12 Nov 2011

Windows has a function for it :  http://msdn.microsof...947(VS.85).aspx
 SPI_GETACTIVEWINDOWTRACKING = 0x1000

 

Just Me has made a function for easy use:

 

http://www.autohotke...tracking-ahk-l/


winXP  and ahk unicode


Bluesmaster
  • Members
  • 23 posts
  • Last active: Mar 22 2016 06:49 PM
  • Joined: 17 Aug 2013

Perfect. Thank you very much!

 

Blues