JellyFish666 Posted September 25, 2008 Share Posted September 25, 2008 Hello Guys I am wondering is there anyway to make a inputbox transparent completely >_< Please help me I am stuck Link to comment Share on other sites More sharing options...
TehWhale Posted September 25, 2008 Share Posted September 25, 2008 You can't, Inputbox returns after it has been clicked, like, X, or cancel, or Ok. Why not create your own GUI and do it yourself? Link to comment Share on other sites More sharing options...
JellyFish666 Posted September 25, 2008 Author Share Posted September 25, 2008 (edited) You can't, Inputbox returns after it has been clicked, like, X, or cancel, or Ok. Why not create your own GUI and do it yourself? opps I mean't inputbox GUI still not sure how to do it though... This works but it also makes the text transparent when I don't want that to happen Func _GuiCtrlMakeTrans($iCtrlID,$iTrans=255) Local $pHwnd, $nHwnd, $aPos, $a $hWnd = GUICtrlGetHandle($iCtrlID); If $hWnd = 0 then Return SetError(1,1,0) $pHwnd = DllCall("User32.dll", "hwnd", "GetParent", "hwnd", $hWnd) If $pHwnd[0] = 0 then Return SetError(1,2,0) $aPos = ControlGetPos($pHwnd[0],"",$hWnd) If @error then Return SetError(1,3,0) $nHwnd = GUICreate("", $aPos[2], $aPos[3], $aPos[0], $aPos[1], 0x80000000, 0x00080000 + 0x00000040, $pHwnd[0]) If $nHwnd = 0 then Return SetError(1,4,0) $a = DllCall("User32.dll", "hwnd", "SetParent", "hwnd", $hWnd, "hwnd", $nHwnd) If $a[0] = 0 then Return SetError(1,5,0) If NOT ControlMove($nHwnd,'',$hWnd,0,0) then Return SetError(1,6,-1) GUISetState(@SW_Show,$nHwnd) WinSetTrans($nHwnd,"",$iTrans) If @error then Return SetError(1,7,0) GUISwitch($pHwnd[0]) Return $nHwnd EndFunc Edited September 25, 2008 by JellyFish666 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