ajdicky Posted March 17, 2008 Share Posted March 17, 2008 (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 March 18, 2008 by ajdicky Link to comment Share on other sites More sharing options...
Aassdd Posted March 17, 2008 Share Posted March 17, 2008 Is that your only code? I don't get any error. Link to comment Share on other sites More sharing options...
ajdicky Posted March 17, 2008 Author Share Posted March 17, 2008 yes thats my only code!Heres my Error msgLine 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,^ ERRORError: Variable used without being declared. Link to comment Share on other sites More sharing options...
Aassdd Posted March 17, 2008 Share Posted March 17, 2008 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 More sharing options...
ajdicky Posted March 17, 2008 Author Share Posted March 17, 2008 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?=( Link to comment Share on other sites More sharing options...
weaponx Posted March 17, 2008 Share Posted March 17, 2008 We need to know what versions of AutoIt you are both running. There have been significant changes to GUIConstants.au3 and GUIConstantsEX.au3 Link to comment Share on other sites More sharing options...
Aassdd Posted March 17, 2008 Share Posted March 17, 2008 PS: I clicked Toggle AU3 Beta in the start menu. What does it exactly do? Link to comment Share on other sites More sharing options...
ajdicky Posted March 17, 2008 Author Share Posted March 17, 2008 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) Link to comment Share on other sites More sharing options...
Aassdd Posted March 17, 2008 Share Posted March 17, 2008 (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 March 17, 2008 by Aassdd Link to comment Share on other sites More sharing options...
ajdicky Posted March 17, 2008 Author Share Posted March 17, 2008 I do have the latest version now but the error still happens ! Link to comment Share on other sites More sharing options...
ajdicky Posted March 17, 2008 Author Share Posted March 17, 2008 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! Link to comment Share on other sites More sharing options...
ajdicky Posted March 18, 2008 Author Share Posted March 18, 2008 push for help! Link to comment Share on other sites More sharing options...
Achilles Posted March 18, 2008 Share Posted March 18, 2008 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 More sharing options...
ajdicky Posted March 18, 2008 Author Share Posted March 18, 2008 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! Link to comment Share on other sites More sharing options...
AutoItKing Posted March 18, 2008 Share Posted March 18, 2008 the error msg was gone!but i had to include GUIConstants.au3 also,for the $GUI_EVENT_CLOSEand 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 More sharing options...
ajdicky Posted March 18, 2008 Author Share Posted March 18, 2008 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 More sharing options...
ajdicky Posted March 19, 2008 Author Share Posted March 19, 2008 still not finish any1 else got ne ideas? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now