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

Get help with using AutoHotkey and its commands and hotkeys
teosc
Posts: 22
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: 2016
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] [Download] GeSHi © Codebox Plus

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

teosc
Posts: 22
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: 53
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”

Who is online

Users browsing this forum: firestar9114, Gio, SirRFI, Yahoo [Bot] and 21 guests