Border Active Window -> Turn off when the mouse is above the window

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
teosc
Posts: 54
Joined: 17 Jun 2017, 04:56

Border Active Window -> Turn off when the mouse is above the window

17 Jun 2017, 05:04

Hi guys , please help me!

I'm using the script to draw a border on the active window.

I would like to include the function that when the mouse is on the active window, the border shuts off.
How can I do?

Thank you so much
Last edited by teosc on 19 Jun 2017, 02:13, edited 1 time in total.
guest3456
Posts: 3463
Joined: 09 Oct 2013, 10:31

Re: Border Active Window -> Turn off when the mouse is above the window

17 Jun 2017, 07:42

teosc wrote: I would like to include the function that when the mouse is on the active window, the border shuts off.
How can I do?
add this to the start of DrawRect: subroutine:

Code: Select all

MouseGetPos,,, mousehwnd
if (mousehwnd = WinExist("A")) {
   Gui, Destroy
   return
}

teosc
Posts: 54
Joined: 17 Jun 2017, 04:56

Re: Border Active Window -> Turn off when the mouse is above the window

18 Jun 2017, 17:40

Other request, thanks for the help.

I want the border to be drawn not at all windows in the foreground active, but only on the active window that contains a certain text in the title.

I tried to use the function ifwinactive,wintext ... without results.

Help me please!
Many thanks
feiyue
Posts: 349
Joined: 08 Aug 2014, 04:08

Re: Border Active Window -> Turn off when the mouse is above the window

19 Jun 2017, 00:37

DrawRect:
ifwinnotactive, title
{
Gui, Destroy
return
}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: ccqcl, Descolada, Google [Bot], Rohwedder and 175 guests