Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fade in/out hwnd code
#1
i am sure it can be coded better.

Function fade_test_example
Code:
Copy      Help
out
int h=win("* - Mozilla Firefox" "MozillaUIWindowClass" "firefox" 0x5)
act h

int trans_min=10

int i=1
for i 255 trans_min -125
,0.1
,SetWinStyle h WS_EX_TRANSPARENT 0|4
,;out i
,if i=130
,,WinTransparent(h trans_min)

1.9
out i
,SetWinStyle h WS_EX_TRANSPARENT 2|4    
int j=1
for j 0 255 125

,0.1
,WinTransparent(h j+10)
pi
#2
If the window belongs to the same thread as the calling code, try also AnimateWindow.


Forum Jump:


Users browsing this thread: 1 Guest(s)