Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mouse Scroll over winow caption but not active
#1
I have a function that will lower (and raise) the transparency when I scroll the mouse wheel when over the window's caption.  I'd like for it to work on the non-active window as well.
How can I do this?

Function Trans_Lower
Trigger #Dh2 0x1     Help - how to add the trigger to the macro
Code:
Copy      Help
dll user32 #GetLayeredWindowAttributes hwnd *crKey !*bAlpha *dwFlags
int col flags; byte alpha
int z
GetLayeredWindowAttributes win &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(win 25)
,3
,end
Transparent(win alpha)
An old blog on QM coding and automation.

The Macro Hook


Messages In This Thread
Mouse Scroll over winow caption but not active - by ken gray - 02-17-2021, 06:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)