Jump to content

Opaque button on transparent gui


momar33
 Share

Recommended Posts

Can it be done?

Here is some code with a button and a transparent gui.

Can the button be made opaque?

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)

$gui = GUICreate("My GUI", Default, Default, Default, Default, Default, $WS_EX_ACCEPTFILES)

GUICtrlCreateButton("Testing", 0, 0)

WinSetTrans($gui, "", 100)

GUISetState()

While 1
    Sleep(100)
WEnd
Link to comment
Share on other sites

Can it be done?

Here is some code with a button and a transparent gui.

Can the button be made opaque?

WinSetTrans($gui, "", 100)
I would remove that WinSetTrans() and use Lod3n's method using png-files instead for the transparency Edited by TzarAlkex
Link to comment
Share on other sites

  • 2 weeks later...

I would remove that WinSetTrans() and use Lod3n's method using png-files instead for the transparency

my predicament:

I am trying to create a GUI that will overlay on top of an application that I call from shell, run

Run("C:\Program Files\CounterPath\X-Lite\x-lite.exe -dial=sip:101@192.168.1.17")

I need to run my AutoIT scripts to press the record button but does not want the user to be able to press other buttons. Can this be done? "Hollow Form - Shaped forms! I know GUI can be transparent"

My faithful VB6 is able to do it! How do I open GUI form at certain coordinates X,Y? WinGetPos give me the coordinates but I want to put it in a certain coordinates.

I am opting for AutoIT to do most of my automation job real soon, once I know it.

Thanks.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...