Jump to content

Recommended Posts

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
Posted

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.

Posted

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
Posted

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?=(

Posted

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

Posted

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)

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
Posted

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!

Posted

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]
Posted

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!

Posted

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]
Posted

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? :)

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
  • Recently Browsing   0 members

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