AutoItWannabe Posted September 21, 2006 Posted September 21, 2006 Hello Well i have another problem :/ and the problem is i cant get my background image to work... the window just stays the same ... i tried everything ... 2 hours of trying to figure out one little problem.. if you could please help me i would really thank you !
AutoItWannabe Posted September 21, 2006 Author Posted September 21, 2006 (edited) Specifically answered as asked....ANSWER: make sure you type the right code into Scite.Lar.Well i actaully did read everything what i typed like 10 times... It dosent throw any errors or anything like that... :/ Well guess im gonna read the Help file another 2 times ... :/EDIT : Oh and i use a notepad EDIT No.2 : Well i checked everything again and again... Edited September 21, 2006 by AutoItWannabe
this-is-me Posted September 21, 2006 Posted September 21, 2006 Not to be rude, but this post is filed under "DUH". You have not posted any code for us to peruse, therefore the answer Larry gave. We cannot help if we have no idea what you are doing. Try driving a car blindfolded. You will see what we mean. Who else would I be?
Xenobiologist Posted September 21, 2006 Posted September 21, 2006 HI, post your code and we'll find the prob. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
AutoItWannabe Posted September 22, 2006 Author Posted September 22, 2006 Hehe oh Right forgot about that Heres the code : GUICtrlCreatePic(@Systemdir & "\BackGround.Jpeg",0,0, 200,300) GuiCtrlSetState(-1,$GUI_DISABLE) Sorry by the way... I knew i forgot something
MHz Posted September 22, 2006 Posted September 22, 2006 Hehe oh Right forgot about that Heres the code : GUICtrlCreatePic(@Systemdir & "\BackGround.Jpeg",0,0, 200,300) GuiCtrlSetState(-1,$GUI_DISABLE) Sorry by the way... I knew i forgot something GuiCreate(...) is the 1st line, right , then....
AutoItWannabe Posted September 22, 2006 Author Posted September 22, 2006 GuiCreate(...) is the 1st line, right , then....If by that you mean the lines for the window... yes i already did that... i just have problems with the background pic :/ damnit better check it again or just do a simple background (color)
MHz Posted September 22, 2006 Posted September 22, 2006 If by that you mean... i just.....Communication problem. You see the code, we do not. What some help, then do share the experience.
AutoItWannabe Posted September 22, 2006 Author Posted September 22, 2006 (edited) Communication problem. You see the code, we do not. What some help, then do share the experience.Right so if you mean the Entire code well ok here it is : #include <GUIConstants.au3> GUICreate ( "xxx" , 200 , 300 ) GUICtrlCreatePic(@Systemdir & "\BackGround.Jpeg",0,0, 200,300) GuiCtrlSetState(-1,$GUI_DISABLE) GUISetState () GUICtrlCreateButton("xxx", 110, 10, 60) GUICtrlCreateEdit ( "", 100, 50 , 80 , 100 ) GUICtrlCreateButton("xxx", 130, 240, 60) GUICtrlCreateButton("xxx", 130, 270, 60) GUICtrlCreateLabel ("xxx", 10,5 ) GUICtrlCreateInput ("xxx", 10,20,70,20) GUICtrlCreateLabel ("xxx", 10,45 ) GUICtrlCreateInput ("xxx", 10,60,70,20) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Thanks for Any Help.. oh and btw i know its almost unreadable... even tho im used to C++ i still dont type (explanations) EDIT : Thank you larry for that example Edited September 22, 2006 by AutoItWannabe
Ruud0209 Posted September 22, 2006 Posted September 22, 2006 (edited) I don't know much but this works here .... #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("AForm1", 638, 457, 193, 115) $Pic1 = GUICtrlCreatePic("C:\WINDOWS\winnt256.bmp", 0, 0, 636, 452, BitOR($SS_NOTIFY,$WS_GROUP)) GuiCtrlSetState(-1,$GUI_DISABLE) GUICtrlCreateButton("Hello World",10,10,100,100) GUICtrlCreateCombo("",10,140,100,100,$CBS_DROPDOWNLIST) GUICtrlSetData(-1,"Hello|World|How|Are|You|Today","Hello") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Edited September 22, 2006 by Ruud_Sas
Ruud0209 Posted September 22, 2006 Posted September 22, 2006 this also works here : #include <GUIConstants.au3> GUICreate ( "xxx" , 200 , 300 ) GUICtrlCreatePic("C:\WINDOWS\winnt256.bmp",0,0, 200,300) ; So your problem must be here ?! GuiCtrlSetState(-1,$GUI_DISABLE) GUISetState () GUICtrlCreateButton("xxx", 110, 10, 60) GUICtrlCreateEdit ( "", 100, 50 , 80 , 100 ) GUICtrlCreateButton("xxx", 130, 240, 60) GUICtrlCreateButton("xxx", 130, 270, 60) GUICtrlCreateLabel ("xxx", 10,5 ) GUICtrlCreateInput ("xxx", 10,20,70,20) GUICtrlCreateLabel ("xxx", 10,45 ) GUICtrlCreateInput ("xxx", 10,60,70,20) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend
AutoItWannabe Posted September 22, 2006 Author Posted September 22, 2006 I actually found out the bug just after i posted my last thread Thank you all for your help !!
iceberg Posted September 24, 2006 Posted September 24, 2006 BackGround.Jpeg? file ext looks funny tho. mouse not found....scroll any mouse to continue.
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