Sinisterly
[HELP NEEDED] Making tansparent GUI - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: [HELP NEEDED] Making tansparent GUI (/Thread-HELP-NEEDED-Making-tansparent-GUI)



[HELP NEEDED] Making tansparent GUI - Solixious - 09-18-2012

I'm not being able to make a GUI which will be transparent (not exactly transparent, but translucent) in autoit3. I wanted to give a glass like appearance to my GUI. I would really appreciate if someone could help me with a snippet of code demonstrating this. Thank you in advance.
Cheers.


RE: [HELP NEEDED] Making tansparent GUI - spymare - 09-18-2012

WinSetTrans("Parva Keylogger Pro", "", 230) ?


RE: [HELP NEEDED] Making tansparent GUI - Jacob - 09-18-2012

You'll need to use the built in function WinSetTrans()

Here is demonstration code

Code:
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Click Master PRO", 276, 118, 192, 124) $labClick = GUICtrlCreateLabel("Click me!", 16, 24, 47, 17) $butNoMe = GUICtrlCreateButton("No, click me!", 16, 48, 75, 25) GUISetState(@SW_SHOW) WinSetTrans("Click Master PRO", '', 200) While 1 $nMsg = GUIGetMsg() Switch $nMsg case $labClick MsgBox(0, "Label", "Haha! I got you to click me c:", 3) case $butNoMe msgbox(0,"YAY", "Woo, I win! :DD", 3) Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd

Here is the outcome
[Image: 0a48334d960c26aa5a02891e38e5a65e.png]


RE: [HELP NEEDED] Making tansparent GUI - Solixious - 09-19-2012

Its exactly what I wanted... Thanks a ton Jacob and spymare... Smile