sandin Posted October 29, 2008 Share Posted October 29, 2008 (edited) I have this script: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 633, 447, 193, 125) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $GUI_EVENT_PRIMARYDOWN WinSetTrans($Form1,"",100) do dllcall("user32.dll","int","SendMessage","hWnd", $Form1,"int",0xA1,"int", 2,"int", 0) Local $msgg2 = GUIGetMsg() Until $msgg2 <> -7 WinSetTrans($Form1,"",255) EndSwitch WEnd when u hold down mouse button anywhere in the GUI, gui turns transparent, and back to solid once u release mouse button. Can someone help me do the same but with GUI's title bar? So when user move the GUI by holding the GUI's title bar, it becomes transparent. Edited October 29, 2008 by sandin Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
komalo Posted October 29, 2008 Share Posted October 29, 2008 (edited) here you go edit : used sendmessage instead of dllcall #include <SendMessage.au3> #include <Constants.au3> #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> Global Const $WM_ENTERSIZEMOVE = 0x0231 $Trans = GUICreate("Click me to be transperent", 633, 447, 193, 125) GUISetState() GUIRegisterMsg($WM_ENTERSIZEMOVE,"WM_ENTERSIZEMOVE") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $GUI_EVENT_PRIMARYDOWN WinSetTrans($Trans,"",100) _SendMessage($Trans,$WM_NCLBUTTONDOWN, 2, 0) Do Sleep(10) Until GUIGetMsg() = $GUI_EVENT_PRIMARYUP WinSetTrans($Trans,"",255) EndSwitch WEnd Func WM_ENTERSIZEMOVE($hWndGUI, $MsgID, $WParam, $LParam) WinSetTrans($Trans,"",100) EndFunc Edited October 29, 2008 by komalo [font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font] Link to comment Share on other sites More sharing options...
sandin Posted October 29, 2008 Author Share Posted October 29, 2008 thank you very much =) Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll 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