Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v1) • Re: Toggle any window clickthrough on/off

$
0
0
Was wondering, If I were to change the class of an .exe, would this affect anything?
Wondering if I should change the class via a clickthrough toggle, as-well as setting a %count% for each .exe applied hotkey, so that way I can disable clickthrough via class call?

Unless if you or anyone else would have a suggestion on how to universally apply this?

Also... I changed the transparency code as follows:

CODE:

; ######################################################################
; USED FOR A WHILE LOOP, WHERE RELEASING "RBUTTON" EXITS SAID WHILE LOOP
; ######################################################################
_WinTransparentHotkey := 0

~RButton Up::
_WinTransparentHotkey = 0
RETURN



; ################################################
; HOTKEY USED TO ACTIVATE "WHEEL AS TRANSPARENCY"
; ################################################
~RButton & MButton::
_WinTransparentHotkey = 1
While WinTransparentHotkey = 1
Gosub, _WinTransparentWheels
Return
RETURN

_WinTransparentWheels:
~RButton & WheelUp::Gosub, _WinTransparentUp
~RButton & WheelDown::Gosub, _WinTransparentDown
WinSet, Transparent %WinT%, % A
RETURN



; ##############################
; WHEEL AS TRANSPARENCY GOSUBS
; ##############################
_WinTransparentUp:
DetectHiddenWindows, on
WinGet, curtrans, Transparent, A
If ! curtrans
curtrans = 255
newtrans := curtrans + 8
If newtrans > 0
{
WinSet, Transparent, %newtrans%, A
}
Else
{
WinSet, Transparent, OFF, A
WinSet, Transparent, 255, A
}
Return
RETURN

_WinTransparentDown:
DetectHiddenWindows, on
WinGet, curtrans, Transparent, A
If ! curtrans
curtrans = 255
newtrans := curtrans - 8
If newtrans > 0
{
WinSet, Transparent, %newtrans%, A
}
Return
RETURN

Statistics: Posted by OrangeCat — 46 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles