Jump to content

Help!GUI ERROR!PLEASE HELP!


Recommended Posts

a few ppl been helping me but i still don get it working!

it says that this line's varible was not being declared but i already include <GUIConstants.au3>What should i do?!

$pic=GUICreate("", 14, 80, 0, 0,$WS_POPUP,$WS_EX_LAYERED+$WS_EX_MDICHILD,$gui)

heres the script thats error and it works for everyone except me!

; example 2

#include <GUIConstants.au3>

$gui=GUICreate("Background", 800, 300)

; background picture

$background = GUICtrlCreatePic ("demo-bg.jpg", 0, 0, 800, 300)

GUISetState(@SW_SHOW)

; transparent child window

$pic=GUICreate("", 14, 80, 0, 0,$WS_POPUP,$WS_EX_LAYERED+$WS_EX_MDICHILD,$gui)

; transparent pic

$basti_stay = GUICtrlCreatePic ("l_st.gif", 0, 0, 14, 80)

GUISetState(@SW_SHOW)

do

$msg = GUIGetMsg()

until $msg = $GUI_EVENT_CLOSE

Edited by ajdicky
Link to comment
Share on other sites

yes thats my only code!Heres my Error msg

Line 10 (File "H:\Documents and Settings\Owner\桌面\新增AutoIt v3 Script.au3"):

$pic=GUICreate("", 14, 80, 0, 0,$WS_POPUP,$WS_EX_LAYERED+$WS_EX_MDICHILD,$gui)

$pic=GUICreate("", 14, 80, 0, 0,^ ERROR

Error: Variable used without being declared.

Link to comment
Share on other sites

Try this, works fine for me.

#include <GUIConstants.au3>

$gui = GUICreate("Background", 800, 300)
; background picture
$background = GUICtrlCreatePic("demo-bg.jpg", 0, 0, 800, 300)
GUISetState(@SW_SHOW)

; transparent child window
$pic = GUICreate("", 14, 80, 0, 0, $WS_POPUP, $WS_EX_LAYERED + $WS_EX_MDICHILD, $gui)
; transparent pic
$basti_stay = GUICtrlCreatePic("l_st.gif", 0, 0, 14, 80)
GUISetState(@SW_SHOW)

Do
    $msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE
Link to comment
Share on other sites

Try this:

#include<WindowsConstants.au3>
; example 2

$gui=GUICreate("Background", 800, 300)
; background picture
$background = GUICtrlCreatePic ("demo-bg.jpg", 0, 0, 800, 300)
GUISetState(@SW_SHOW)

; transparent child window
$pic=GUICreate("", 14, 80, 0, 0,$WS_POPUP,$WS_EX_LAYERED+$WS_EX_MDICHILD,$gui)
; transparent pic
$basti_stay = GUICtrlCreatePic ("l_st.gif", 0, 0, 14, 80)
GUISetState(@SW_SHOW)

do
$msg = GUIGetMsg()

until $msg = $GUI_EVENT_CLOSE
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

the error msg was gone!but i had to include GUIConstants.au3 also,for the $GUI_EVENT_CLOSE

and with this script am i suppose to see 2 GUI windows?i only see a main one!

The other one is transparent, read the comments in the code, they might just tell you what it does.
http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]
Link to comment
Share on other sites

ahh ok thx sorry i'm not very good at english!

but does ne1 have nemore ideas please?I don't want to include everything in my script in order to make a simple GUI!

i have to include the exact script to get the globle varible now,can't I just include GUIConstants.au3 like everybody else? :)

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...