Trasparency effect, l'ho gia postato? boh ._.

« Older   Newer »
  Share  
Lahace
CAT_IMG Posted on 29/6/2010, 11:20     +1   -1




ecco un altro programmino per rendere il desktop più LOL

rende semplicemente trasparenti tutte le finestre tranne la principale

SPOILER (click to view)
CODICE
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>
Opt("TrayMenuMode", 1)
$Form1 = GUICreate("TrasparencyEffect!", 341, 88, 393, 163)
$Input1 = GUICtrlCreateInput("255", 25, 20, 41, 21,$ES_NUMBER)
GUICtrlCreateUpdown($Input1)
GUICtrlSetLimit(-1,255,1)
$Label1 = GUICtrlCreateLabel("Imposta la trasparenza delle finestre in background", 75, 25, 243, 17)
$start = GUICtrlCreateButton("Start!", 105, 55, 121, 26, $WS_GROUP)
$state = False
$exit = TrayCreateItem("Esci")
GUISetState(@SW_SHOW)

While 1
       Sleep(25)
       If GUICtrlRead($Input1) > 255 Then
               GUICtrlSetData($Input1,255)
       EndIf
       Switch TrayGetMsg()
               Case $exit
                       Exit
               Case $TRAY_EVENT_PRIMARYDOUBLE
                       GUISetState()
       EndSwitch
       $nMsg = GUIGetMsg()
       Switch $nMsg
               Case $GUI_EVENT_CLOSE
                       GUICtrlSetData($start,"Start!")
                       $state = False
                       AdlibUnRegister("StartTrasp")
                       _SetAllTrasp(255)
                       Exit
               Case -4
                       GUISetState(@SW_HIDE)
               Case $start
                       If $state =False Then
                               GUICtrlSetData($start,"Stop")
                               $state = True
                               _SetAllTrasp(GUICtrlRead($Input1))
                               AdlibRegister("StartTrasp",1000)
                       ElseIf $state = True Then
                               GUICtrlSetData($start,"Start!")
                               $state = False
                               AdlibUnRegister("StartTrasp")
                               _SetAllTrasp(255)
                       EndIf
       EndSwitch
WEnd

Func _SetAllTrasp($trasp)
       $list = WinList()
       For $i = 1 To $list[0][0]
               $state = WinGetState($list[$i][0])
               If $list[$i][1] = WinGetHandle("[CLASS:shell_TrayWnd]") Or BitAND($state , 8) Or $list[$i][1] = WinGetHandle("[CLASS:Progman]") Or $list[$i][1] = WinGetHandle("[CLASS:ROCKETDOCK]") Then
                       ContinueLoop
               ElseIf BitAND($state , 2)  Then
                       WinSetTrans($list[$i][0],"",$trasp)
               Else
                       ContinueLoop
               EndIf
       Next
EndFunc

Func StartTrasp()
       _SetAllTrasp(GUICtrlRead($Input1))
       WinSetTrans("[ACTIVE]","",255)
EndFunc


Edited by Lahace - 29/6/2010, 12:30
 
Top
MHack
CAT_IMG Posted on 29/6/2010, 11:23     +1   -1




Non mi sembra che tu l'abbia già postato, ma l'ho già visto nel tuo sito. ;)
 
Top
Gianlu-thebest
CAT_IMG Posted on 29/6/2010, 14:13     +1   -1




Carino..ma lo slider è più comodo
 
Top
ACIDBURN16
CAT_IMG Posted on 29/6/2010, 14:27     +1   -1




Si già lo avevo visto, era il tuo ma non ricordo dove xD, comunque bello e utile.
 
Top
Gianlu-thebest
CAT_IMG Posted on 6/8/2010, 16:07     +1   -1




 
Top
ACIDBURN16
CAT_IMG Posted on 6/8/2010, 17:32     +1   -1




Infatti Lahace non si ricordava se lo aveva postato o no, xD.
 
Top
~•~†Søap˜M.T.™†~•~
CAT_IMG Posted on 6/8/2010, 18:15     +1   -1




xD allora delettate l'altro post xD !
 
Top
6 replies since 29/6/2010, 11:20   136 views
  Share