Sign in to follow this  
Followers 0
ajdicky

Help!GUI ERROR!PLEASE HELP!

17 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



Is that your only code? I don't get any error.

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

It's still the same error!isit because I installed Beta or something i haven't install?

the $GUI_EVENT_CLOSE works fine as a variable but the $WS_POPUP doesnt't?=(

Share this post


Link to post
Share on other sites

We need to know what versions of AutoIt you are both running. There have been significant changes to GUIConstants.au3 and GUIConstantsEX.au3

Share this post


Link to post
Share on other sites

Posted Image

PS: I clicked Toggle AU3 Beta in the start menu. What does it exactly do?

Share this post


Link to post
Share on other sites

how do i see what version am i using?

I download the autoit-v3-setup.exe(3.2.10.0i think)and autoit-v3.2.11.0-beta-setup.exe(3.2.11.0)

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Go to Program Files/Autoit and open AutoIt.chm, you'll see it on the top.

Or, Start > Programs > AutoIt > Check for updates

Edited by Aassdd

Share this post


Link to post
Share on other sites

I do have the latest version now but the error still happens :)!

Share this post


Link to post
Share on other sites

if will only open the first mother window but the child GUI was nowhere to be seen if i use non Beta,but if i toggle to Beta the error came out,i reinstalled it twice and still the same!:) help plz!

Share this post


Link to post
Share on other sites

push for help!

Share this post


Link to post
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]

Share this post


Link to post
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!

Share this post


Link to post
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]

Share this post


Link to post
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? :)

Share this post


Link to post
Share on other sites

still not finish any1 else got ne ideas?

Share this post


Link to post
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
Sign in to follow this  
Followers 0