Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mouse Scroll over winow caption but not active
#2
just need to grap the windowhandle from the mouse and change win to hwnd so it will work on inactive window as well

Function Trans_Lower
Trigger #Dh2 0x1     Help - how to add the trigger to the macro
Code:
Copy      Help
int hwnd=win(mouse)
int col flags; byte alpha
int z
GetLayeredWindowAttributes hwnd &col &alpha &flags
z=18
if alpha=0
,alpha=255
else
,alpha-z
;out "alpha %i" alpha
if alpha<18
,bee "C:\downloads\sounds\system\comp3.wav"
,Transparent(hwnd 25)
,3
,end
Transparent(hwnd alpha)


Messages In This Thread
RE: Mouse Scroll over winow caption but not active - by Kevin - 02-18-2021, 02:06 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)