Jump to content

Recommended Posts

Posted

ok its probially a simple mistake so i am sorry if it is.

but while testing this section i set up a button that would exit the program. so i can get it closed

but when its al loaded the mouse click does not effec the button.

yet space bar still does. im guesing it is due to the picture over lapping some how.

but it really has confused me and i can think of a way to solve it.. maybe due to that lack of sleep past nights but, thankyou in advance

#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>

$screenresX = @DesktopWidth
$screenresY = @DesktopHeight
$BGlocation = "\B\Wallpapers\5a8e4ed25b9762957d2f659ab7b06a83.jpg"

MsgBox("","x,Y", $screenresX & " = Width" & @CRLF & $screenresY & " = height")



$hGUI = GUICreate("Test", $screenresX, $screenresY, 0, 0, $WS_POPUP)
$hBG = GUICtrlCreatePic( @UserProfileDir & $BGlocation, 0, 0, $screenresX, $screenresY)
$hButton = GUICtrlCreateButton("Exit", 10, 10, 80, 30)
GUISetState()

While 1

    Switch GUIGetMsg()
        Case $hButton
            Exit
    EndSwitch

WEnd

Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D

Posted

ok its probially a simple mistake so i am sorry if it is.

but while testing this section i set up a button that would exit the program. so i can get it closed

but when its al loaded the mouse click does not effec the button.

yet space bar still does. im guesing it is due to the picture over lapping some how.

but it really has confused me and i can think of a way to solve it.. maybe due to that lack of sleep past nights but, thankyou in advance

#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>

$screenresX = @DesktopWidth
$screenresY = @DesktopHeight
$BGlocation = "\B\Wallpapers\5a8e4ed25b9762957d2f659ab7b06a83.jpg"

MsgBox("","x,Y", $screenresX & " = Width" & @CRLF & $screenresY & " = height")



$hGUI = GUICreate("Test", $screenresX, $screenresY, 0, 0, $WS_POPUP)
$hBG = GUICtrlCreatePic( @UserProfileDir & $BGlocation, 0, 0, $screenresX, $screenresY)
$hButton = GUICtrlCreateButton("Exit", 10, 10, 80, 30)
GUISetState()

While 1

    Switch GUIGetMsg()
        Case $hButton
            Exit
    EndSwitch

WEnd
GUICtrlSetState($hBG, $GUI_DISABLE)
Posted

whoop whoop whoop :)

than kyou very much :)

Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D

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
×
×
  • Create New...