spudw2k Posted March 12, 2008 Share Posted March 12, 2008 (edited) Add a slider to the top of the active window and set the transparency. Close the program in the sytray (by the clock). It's not great, but kinda fun. Check it out. It's plenty open for improvement. Mini Version expandcollapse popup#include <GuiConstants.au3> Global $ActiveWin ;SystemTray Layout and Hide Opt("TrayMenuMode",1) $trayexit = TrayCreateItem("Exit") TraySetIcon("Shell32.dll",-75) Global $Title = "Transparency Machine", $ActiveWin = WinGetTitle(""), $TransTitle $WinActivePos = WinGetPos($ActiveWin) $Left = $WinActivePos[0] $sGUI = GuiCreate($Title, 80, 15, @DesktopWidth-180, 0, $WS_POPUP, $WS_EX_TOOLWINDOW+$WS_EX_TOPMOST) $slider1 = GUICtrlCreateSlider(0,0,80,14,"", $WS_EX_WINDOWEDGE) GUICtrlSetLimit(-1,230,0) AdlibEnable("GuiMove", 10) While 1 $traymsg = TrayGetMsg() if $traymsg = $trayexit then ResetWindows(WinList()) Exit EndIf $msg = GUIGetMsg() if $msg = $slider1 then SetTrans() WEnd Func SetTrans() if $ActiveWin <> "Transparency Machine" Then WinSetTrans($ActiveWin, "", 250-GUICtrlRead($slider1)) EndFunc Func GuiMove() If WinGetTitle("") <> $Title and IsVisible(WinGetHandle("")) and WinGetTitle("") <> "Program Manager" Then $ActiveWin = WinGetTitle("") $pos = WinGetPos($ActiveWin) $x = $pos[0] + $pos[2] - 200 $y = $pos[1] + 8 GUISetState() WinMove($Title, "", $x, $y) WinSetOnTop($sGUI, "", 1) GUICtrlSetData($slider1,0) EndIf If WinGetTitle("") = AutoItWinGetTitle() then GUISetState(@SW_HIDE) Else GUISetState() EndIf EndFunc Func ResetWindows($data) For $i = 1 to $data[0][0] If $data[$i][0] <> "" AND IsVisible($data[$i][1]) AND $data[$i][0] <> "Program Manager" Then WinSetTrans($data[$i][0], "", 255) EndIf Next EndFunc Func IsVisible($handle) Return BitAnd(WinGetState($handle), 2) EndFunc Edited March 12, 2008 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Achilles Posted March 12, 2008 Share Posted March 12, 2008 Good job on what you have so far! The slider on both of them is kind of buggy still... However, I like the idea of there being a slider at the top of the window. My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now