dandymcgee Posted January 3, 2007 Share Posted January 3, 2007 Wow Secure_ICT you sure did outpost me in no time at all... Maybe it's the fact I hate free post topics and try my hardest to avoid them at all costs, therefore only posting where it is necessary? (I have made some useless posts that don't help anyone such as this one). - Dan [Website] Link to comment Share on other sites More sharing options...
Achilles Posted January 3, 2007 Share Posted January 3, 2007 Did your computer break because Vista is faulty? Nice code, for the hotkeys I would recommend setting the transparency when the key is pushed. I don't think it makes sense to have a hotkey and then have to click 'Set State' My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Achilles Posted January 4, 2007 Share Posted January 4, 2007 (edited) After having Vista for a while I got obsessed with the windows media player transparency. Then my computer broke and XP came back. SecureHey, I thought I'd try to improve your code(hope you don't mind )... I added a combo box that shows all the current windows... However it has lots of bugs and I need to get to bed... expandcollapse popup; Name: Windows Media Player Transparency ; Author: Secure_ICT ;Edited for multiple windows by Piano_Man ; Version: 1.2 ; Credit given to: Helge and ThatsGreat2345 #include <GUIConstants.au3> $currentTrans = '' $nowShown = '' $reset = False GUICreate("Set Transparency",320,170, 100,200) GuiCtrlCreateLabel('Choose a wdow...', 10, 10, 300, 20) $window = GuiCtrlCreateCombo('', 10, 30, 300, 20) $slider = GUICtrlCreateSlider (10,60,300,20) GUICtrlSetLimit(-1,250,0) GuiCtrlSetData(-1, 250) $set = GUICtrlCreateButton ("Set State",60,110,90,30) $reset = GUICtrlCreateButton ("Reset",170,110,90,30) AdLibEnable('_UpDate', 250) GUISetState() Do $n = GUIGetMsg () If $n = $set Then $selected = GuiCtrlRead($window) If $currentTrans <> $selected and $reset = False then WinSetTrans($currentTrans, "", 250) $reset = False Endif WinSetTrans($selected, "", GUICtrlRead($slider)) $currentTrans = $selected Endif If $n = $reset Then $reset = True WinSetTrans($selected, "", 250) GUICtrlSetData($slider,250) EndIf Until $n = $GUI_EVENT_CLOSE If WinExists($currentTrans) then WinSetTrans($currentTrans, "", 250) Func _UpDate() $shown = '' $list = WinList() If IsArray($list) Then For $a = 1 to $list[0][0] If $list[$a][0] <> '' and IsVisible($list[$a][1]) then $shown = $shown & $list[$a][0] & "|" Next Endif If $nowShown <> $shown then GuiCtrlSetData($window, $shown) $nowShown = $shown Endfunc Func IsVisible($handle) If BitAnd( WinGetState($handle), 2 ) Then Return 1 Else Return 0 EndIf EndFunc Example of bugs: List doesn't compile correctly if the windows change and there's this weird flashing black thing that happens to the window for some reason.. that might just be my computer... Let me know what you think! Edit: It also lags when you try to drag the box.. I don't know why, the 250 Adlib shouldn't be confusing it (once again, my computer isn't the greatest... :"> ) Edited January 4, 2007 by Piano_Man My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Danny35d Posted January 4, 2007 Share Posted January 4, 2007 Making windows transparentexpandcollapse popup#include <GUIConstants.au3> #Include <GuiCombo.au3> ; == GUI generated with Koda == $Form1 = GUICreate("Making Windows Transparent", 550, 24, 0, 0, BitOr($WS_CAPTION, $WS_SYSMENU)) $Combo1 = GUICtrlCreateCombo("", 0, 0, 281, 21, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL, $WS_VSCROLL, $CBS_DROPDOWNLIST)) $Slider1 = GUICtrlCreateSlider(280, 0, 270, 21) GuiCtrlSetLimit(-1, 255, 0) GUISetState(@SW_SHOW) AdlibEnable('RebuildComboBox') While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Slider1 If GUICtrlRead($Combo1) == '' Then ContinueLoop WinSetTrans(GUICtrlRead($Combo1), '', Abs(Number(GuiCtrlRead($Slider1) - 255))) Case Else ;;;;;;; EndSelect WEnd Exit Func RebuildComboBox() Local $listItems Dim $var = WinList() For $i = 1 to $var[0][0] ; Only display visble windows that have a title If $var[$i][0] <> "" AND IsVisible($var[$i][1]) And $var[$i][0] <> "Program Manager" And $var[$i][1] <> $Form1 Then If _GUICtrlComboFindString($Combo1, $var[$i][0]) == $CB_ERR Then _GUICtrlComboAddString($Combo1, $var[$i][0]) EndIf EndIf Next $listItems = StringSplit(_GUICtrlComboGetList($Combo1, '|'), '|') For $x = 1 To $listItems[0] If Not WinExists($listItems[$x]) Then _GUICtrlComboDeleteString($Combo1, _GUICtrlComboFindString($Combo1, $listItems[$x])) EndIf Next EndFunc Func IsVisible($handle) If BitAnd( WinGetState($handle), 2 ) Then Return 1 Else Return 0 EndIf EndFunc AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
James Posted January 4, 2007 Author Share Posted January 4, 2007 Well the whole idea was just to make Windows Media Player Transparent. Its not in the right place though, but I don't think its possible to make certain parts transparent. Thankyou for your suggestions. If I make a new one, I will use them. Secure Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
NELyon Posted January 4, 2007 Share Posted January 4, 2007 Agh! I Set my desktop's transparency and now the desktop won't re-paint itself! What should i do? Link to comment Share on other sites More sharing options...
James Posted January 4, 2007 Author Share Posted January 4, 2007 Hmm.. Really? Screenshot please. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Achilles Posted January 4, 2007 Share Posted January 4, 2007 (edited) Agh! I Set my desktop's transparency and now the desktop won't re-paint itself! What should i do? How'd you pull that off? I don't see where there's a window title for desktop.... but anwyays, Just make a one line code: WinSetTrans('Desktop' '', 250) Seems kind of simple, let me know if I misunderstood the problem Edited January 4, 2007 by Piano_Man My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Psibernetic Posted January 10, 2007 Share Posted January 10, 2007 Fun program!....can it be modded to be used with any window? and a suggestion perhaps make it a tray icon program or a tool window either way so it wont take up space on my taskbar lol the O so precious space....Overall 8/10 gj! [sup]Psibernetic[/sup]My Creations:X-HideSecuracy Link to comment Share on other sites More sharing options...
James Posted January 10, 2007 Author Share Posted January 10, 2007 Thanks.. Yes, where it says something like "Windows Media Player" change it to the window you would like. Its buit INTO the script. Cheers, Secure Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Achilles Posted January 11, 2007 Share Posted January 11, 2007 Making windows transparent expandcollapse popup#include <GUIConstants.au3> #Include <GuiCombo.au3> ; == GUI generated with Koda == $Form1 = GUICreate("Making Windows Transparent", 550, 24, 0, 0, BitOr($WS_CAPTION, $WS_SYSMENU)) $Combo1 = GUICtrlCreateCombo("", 0, 0, 281, 21, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL, $WS_VSCROLL, $CBS_DROPDOWNLIST)) $Slider1 = GUICtrlCreateSlider(280, 0, 270, 21) GuiCtrlSetLimit(-1, 255, 0) GUISetState(@SW_SHOW) AdlibEnable('RebuildComboBox') While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Slider1 If GUICtrlRead($Combo1) == '' Then ContinueLoop WinSetTrans(GUICtrlRead($Combo1), '', Abs(Number(GuiCtrlRead($Slider1) - 255))) Case Else ;;;;;;; EndSelect WEnd Exit Func RebuildComboBox() Local $listItems Dim $var = WinList() For $i = 1 to $var[0][0] ; Only display visble windows that have a title If $var[$i][0] <> "" AND IsVisible($var[$i][1]) And $var[$i][0] <> "Program Manager" And $var[$i][1] <> $Form1 Then If _GUICtrlComboFindString($Combo1, $var[$i][0]) == $CB_ERR Then _GUICtrlComboAddString($Combo1, $var[$i][0]) EndIf EndIf Next $listItems = StringSplit(_GUICtrlComboGetList($Combo1, '|'), '|') For $x = 1 To $listItems[0] If Not WinExists($listItems[$x]) Then _GUICtrlComboDeleteString($Combo1, _GUICtrlComboFindString($Combo1, $listItems[$x])) EndIf Next EndFunc Func IsVisible($handle) If BitAnd( WinGetState($handle), 2 ) Then Return 1 Else Return 0 EndIf EndFunc That's cool... sort of what I was aiming (and missing) to do My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Emiel Wieldraaijer Posted January 28, 2007 Share Posted January 28, 2007 I have some side effects with WinSetTrans .. the gui displays colored bars example : $Hlbl = GUICtrlCreateLabel ("Host List", 30, 80) will display a green bar around the text . Greetinx Emiel Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
HardHackz Posted February 27, 2007 Share Posted February 27, 2007 I love it but the slider only has like 5 options, is it compatible with WMP 11? [center]My BlogOldSock Programs (AutoIT Apps)A Message to Hackers! (NOT SKIDDIES!)OldSock Programs is my little "company."[/center] Link to comment Share on other sites More sharing options...
James Posted February 28, 2007 Author Share Posted February 28, 2007 HardHackz: Yes, just change the title if it is different. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
HAL9000 Posted March 2, 2007 Share Posted March 2, 2007 TRASPARENCE.au3 for Media player 11 and Mycomputer and other folders. OS Windows XP with theme Longhorn and icolorforder. CODE:#cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.2.0 Author: HAL9000 Script Function: Template AutoIt script.#ce ----------------------------------------------------------------------------; Script Start - Add your code below here#include <Misc.au3>opt("WinTitleMatchMode", 4)TraySetToolTip("TRASPARENCE")$dll = DllOpen("user32.dll")while 1 select case _IsPressed("04", $dll) AND ControlGetFocus ("classname=CabinetWClass") WinSetTrans("classname=CabinetWClass", "", 175) ;04 Middle mouse button case _IsPressed("1B", $dll) AND ControlGetFocus ("classname=CabinetWClass") WinSetTrans("classname=CabinetWClass", "", 255); 1B ESC key case _IsPressed("04", $dll) AND ControlGetFocus ("classname=WMPlayerApp") WinSetTrans("classname=WMPlayerApp", "", 175) case _IsPressed("1B", $dll) AND ControlGetFocus ("classname=WMPlayerApp") WinSetTrans("classname=WMPlayerApp", "", 255) EndselectWEndDllClose($dll) Link to comment Share on other sites More sharing options...
James Posted March 3, 2007 Author Share Posted March 3, 2007 Thats looking nice. Well done Hal Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
HAL9000 Posted March 3, 2007 Share Posted March 3, 2007 Thats looking nice. Well done HalMaybe this code is better :#cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.2.0 Author: Hal9000 Script Function: Template AutoIt script.#ce ----------------------------------------------------------------------------; Script Start - Add your code below here#include <Misc.au3>opt("WinTitleMatchMode", 4)TraySetToolTip("TRASPARENCE")$dll = DllOpen("user32.dll")while 1 Sleep (1) ;reduce cpu usage select ; more windows and no problems with desktop case _IsPressed("04", $dll) and ControlGetFocus ("active") <> "SysListview321" WinSetTrans("active", "", 175) case _IsPressed("1B", $dll) AND ControlGetFocus ("active") <> "SysListview321" WinSetTrans("active", "", 255) ;My computer and other folders case _IsPressed("04", $dll) AND ControlGetFocus ("classname=CabinetWClass") WinSetTrans("classname=CabinetWClass", "", 175) case _IsPressed("1B", $dll) AND ControlGetFocus ("classname=CabinetWClass") WinSetTrans("classname=CabinetWClass", "", 255) ; WMP case _IsPressed("04", $dll) AND ControlGetFocus ("Windows Media Player") WinSetTrans("Windows Media Player", "", 175) case _IsPressed("1B", $dll) AND ControlGetFocus ("Windows Media Player") WinSetTrans("Windows Media Player", "", 255) EndselectWEndDllClose($dll); end code Link to comment Share on other sites More sharing options...
James Posted March 4, 2007 Author Share Posted March 4, 2007 Very good. Try using tags in your script: [autoit ] code [/ autoit] Without spaces Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Pakku Posted March 4, 2007 Share Posted March 4, 2007 (edited) Hi,havn't test it yet but i saw this:HotKeySet("0", "urgeerbestingenprotest") HotKeySet("1", "urgeerbestingenprotest") HotKeySet("2", "urgeerbestingenprotest") HotKeySet("3", "urgeerbestingenprotest") HotKeySet("4", "urgeerbestingenprotest") HotKeySet("5", "urgeerbestingenprotest") HotKeySet("6", "urgeerbestingenprotest") HotKeySet("7", "urgeerbestingenprotest") HotKeySet("8", "urgeerbestingenprotest") HotKeySet("9", "urgeerbestingenprotest") oÝ÷ Ù©ÝØhºm¶Ê¢é]êeiÇ¢·Øb±«¢+Ø)½ÈÀÌØí¡½ÑåÍÑäôÀѼä(%!½Ñ-åMÐ ÀÌØí¡½ÑåÍÑä°ÅÕ½ÐíÕÉÉÍÑ¥¹¹ÁɽÑÍÐÅÕ½Ðì¤)¹áÐIt's a bit shorter :"> ArjanP.S. you might want to look at this, i made it a vew months ago: http://www.autoitscript.com/forum/index.ph...=0&p=252907 Edited March 4, 2007 by arjan staring How can someone use Windows without using AutoIt?That one would properly don't know how to handle a computer!My scripts:Send files over internetKind of RSS reader3Draw ProUDF: convert a character string to a binary one and backCalculate PiCommand line downloader (Youtube/Google video)Set the transparency of a window just by hitting a key!Secure your pcOther things:My filemanMy profilePM me Link to comment Share on other sites More sharing options...
James Posted March 7, 2007 Author Share Posted March 7, 2007 Cool... I will check it out now. I will also change the Hotkey Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ 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