TheWarLords Posted April 4, 2012 Posted April 4, 2012 (edited) i wen't that workCode =expandcollapse popup#include <ButtonConstants.au3> #include <ComboConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form=form1.kxf $Form1_1 = GUICreate("Form1", 615, 438, 299, 149) GUISetBkColor(0xFF0000) GUISetOnEvent($GUI_EVENT_CLOSE, "Form1_1Close") GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1_1Minimize") GUISetOnEvent($GUI_EVENT_MAXIMIZE, "Form1_1Maximize") GUISetOnEvent($GUI_EVENT_RESTORE, "Form1_1Restore") $List1 = GUICtrlCreateList("", 200, 104, 145, 175) GUICtrlSetOnEvent(-1, "List1Click") $Label1 = GUICtrlCreateLabel("Save Here", 248, 48, 55, 17) GUICtrlSetOnEvent(-1, "Label1Click") GUICtrlCreateCombo("If i Write any name here and chick save save in In the rectangle underneath", 88, 72, 401, 25, BitOR($CBS_SIMPLE,$CBS_AUTOHSCROLL)) GUICtrlSetOnEvent(-1, "Combo2Change") $Button1 = GUICtrlCreateButton("&Save", 352, 112, 35, 17, $BS_PUSHBOX) GUICtrlSetOnEvent(-1, "Button1Click") $Button2 = GUICtrlCreateButton("&Delete", 352, 136, 35, 17, $BS_PUSHBOX) GUICtrlSetOnEvent(-1, "Button2Click") $Button3 = GUICtrlCreateButton("&Restart", 352, 160, 43, 17, $BS_PUSHBOX) GUICtrlSetOnEvent(-1, "Button3Click") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd Func Button1Click() EndFunc Func Button2Click() EndFunc Func Button3Click() EndFunc Func Combo2Change() EndFunc Func Form1_1Close() EndFunc Func Form1_1Maximize() EndFunc Func Form1_1Minimize() EndFunc Func Form1_1Restore() EndFunc Func Label1Click() EndFunc Func List1Click() EndFuncAnd i need add that in Code and work when i open scriptC:UsersTestDesktopMu.mp4i went in The second rectangle itif i write here thing In the rectangle underneath and chick and select on name and chick Delete went be delete and if i chick restart all restart but not remove in the In the rectangle underneath Thnksin end Thanks you All Edited April 5, 2012 by TheWarLords
SecretLanguage Posted April 5, 2012 Posted April 5, 2012 i can help you with the color of your gui if you can color my php
czardas Posted April 5, 2012 Posted April 5, 2012 TheWarLords, you need to write some code where it says Func for anything to happen. expandcollapse popup#include <ButtonConstants.au3> #include <ComboConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form=form1.kxf $Form1_1 = GUICreate("Form1", 615, 438, 299, 149) GUISetBkColor(0xFF0000) GUISetOnEvent($GUI_EVENT_CLOSE, "Form1_1Close") GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1_1Minimize") GUISetOnEvent($GUI_EVENT_MAXIMIZE, "Form1_1Maximize") GUISetOnEvent($GUI_EVENT_RESTORE, "Form1_1Restore") $List1 = GUICtrlCreateList("", 200, 104, 145, 175) GUICtrlSetOnEvent(-1, "List1Click") $Label1 = GUICtrlCreateLabel("Save Here", 248, 48, 55, 17) GUICtrlSetOnEvent(-1, "Label1Click") $Combo = GUICtrlCreateCombo("If i Write any name here and chick save save in In the rectangle underneath", 88, 72, 401, 25, BitOR($CBS_SIMPLE,$CBS_AUTOHSCROLL)) GUICtrlSetOnEvent(-1, "Combo2Change") $Button1 = GUICtrlCreateButton("&Save", 352, 112, 35, 17) GUICtrlSetOnEvent(-1, "Button1Click") $Button2 = GUICtrlCreateButton("&Delete", 352, 136, 35, 17) GUICtrlSetOnEvent(-1, "Button2Click") $Button3 = GUICtrlCreateButton("&Restart", 352, 160, 43, 17) GUICtrlSetOnEvent(-1, "Button3Click") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd Func Button1Click() GUICtrlSetData($List1, GUICtrlRead($Combo)) EndFunc Func Button2Click() EndFunc Func Button3Click() EndFunc Func Combo2Change() EndFunc Func Form1_1Close() Exit EndFunc Func Form1_1Maximize() EndFunc Func Form1_1Minimize() EndFunc Func Form1_1Restore() EndFunc Func Label1Click() EndFunc Func List1Click() EndFunc operator64 ArrayWorkshop
TheWarLords Posted April 5, 2012 Author Posted April 5, 2012 TheWarLords, you need to write some code where it says Func for anything to happen. expandcollapse popup#include <ButtonConstants.au3> #include <ComboConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form=form1.kxf $Form1_1 = GUICreate("Form1", 615, 438, 299, 149) GUISetBkColor(0xFF0000) GUISetOnEvent($GUI_EVENT_CLOSE, "Form1_1Close") GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1_1Minimize") GUISetOnEvent($GUI_EVENT_MAXIMIZE, "Form1_1Maximize") GUISetOnEvent($GUI_EVENT_RESTORE, "Form1_1Restore") $List1 = GUICtrlCreateList("", 200, 104, 145, 175) GUICtrlSetOnEvent(-1, "List1Click") $Label1 = GUICtrlCreateLabel("Save Here", 248, 48, 55, 17) GUICtrlSetOnEvent(-1, "Label1Click") $Combo = GUICtrlCreateCombo("If i Write any name here and chick save save in In the rectangle underneath", 88, 72, 401, 25, BitOR($CBS_SIMPLE,$CBS_AUTOHSCROLL)) GUICtrlSetOnEvent(-1, "Combo2Change") $Button1 = GUICtrlCreateButton("&Save", 352, 112, 35, 17) GUICtrlSetOnEvent(-1, "Button1Click") $Button2 = GUICtrlCreateButton("&Delete", 352, 136, 35, 17) GUICtrlSetOnEvent(-1, "Button2Click") $Button3 = GUICtrlCreateButton("&Restart", 352, 160, 43, 17) GUICtrlSetOnEvent(-1, "Button3Click") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd Func Button1Click() GUICtrlSetData($List1, GUICtrlRead($Combo)) EndFunc Func Button2Click() EndFunc Func Button3Click() EndFunc Func Combo2Change() EndFunc Func Form1_1Close() Exit EndFunc Func Form1_1Maximize() EndFunc Func Form1_1Minimize() EndFunc Func Form1_1Restore() EndFunc Func Label1Click() EndFunc Func List1Click() EndFunc TheWarLords, you need to write some code where it says Func for anything to happen. expandcollapse popup#include <ButtonConstants.au3> #include <ComboConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form=form1.kxf $Form1_1 = GUICreate("Form1", 615, 438, 299, 149) GUISetBkColor(0xFF0000) GUISetOnEvent($GUI_EVENT_CLOSE, "Form1_1Close") GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1_1Minimize") GUISetOnEvent($GUI_EVENT_MAXIMIZE, "Form1_1Maximize") GUISetOnEvent($GUI_EVENT_RESTORE, "Form1_1Restore") $List1 = GUICtrlCreateList("", 200, 104, 145, 175) GUICtrlSetOnEvent(-1, "List1Click") $Label1 = GUICtrlCreateLabel("Save Here", 248, 48, 55, 17) GUICtrlSetOnEvent(-1, "Label1Click") $Combo = GUICtrlCreateCombo("If i Write any name here and chick save save in In the rectangle underneath", 88, 72, 401, 25, BitOR($CBS_SIMPLE,$CBS_AUTOHSCROLL)) GUICtrlSetOnEvent(-1, "Combo2Change") $Button1 = GUICtrlCreateButton("&Save", 352, 112, 35, 17) GUICtrlSetOnEvent(-1, "Button1Click") $Button2 = GUICtrlCreateButton("&Delete", 352, 136, 35, 17) GUICtrlSetOnEvent(-1, "Button2Click") $Button3 = GUICtrlCreateButton("&Restart", 352, 160, 43, 17) GUICtrlSetOnEvent(-1, "Button3Click") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd Func Button1Click() GUICtrlSetData($List1, GUICtrlRead($Combo)) EndFunc Func Button2Click() EndFunc Func Button3Click() EndFunc Func Combo2Change() EndFunc Func Form1_1Close() Exit EndFunc Func Form1_1Maximize() EndFunc Func Form1_1Minimize() EndFunc Func Form1_1Restore() EndFunc Func Label1Click() EndFunc Func List1Click() EndFunc Thanks save work but Delete and REstart not
czardas Posted April 5, 2012 Posted April 5, 2012 (edited) Thanks save work but Delete and REstart not That's because you haven't started to write the functions associated with those buttons. Func Button2Click() ; No code exists for this function EndFunc Func Button3Click() ; No code exists for this function EndFunc Edited April 5, 2012 by czardas operator64 ArrayWorkshop
Bert Posted April 5, 2012 Posted April 5, 2012 Are you trying to make a music player? Going off your other post and what you are trying to do here. If yes, have you looked to see if anyone else has already done what you have in mind by searching the forum? The Vollatran project My blog: http://www.vollysinterestingshit.com/
BrewManNH Posted April 5, 2012 Posted April 5, 2012 By the way, I wouldn't use the function GUICtrlCreateCombo if you're going to be using it as an input box. Use GUICtrlCreateInput for that, because that's what it's for. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
TheWarLords Posted April 5, 2012 Author Posted April 5, 2012 That's because you haven't started to write the functions associated with those buttons. Func Button2Click() ; No code exists for this function EndFunc Func Button3Click() ; No code exists for this function EndFunc Thanks Bro
czardas Posted April 5, 2012 Posted April 5, 2012 (edited) Thanks BroNo problem. You should also consider the suggestions of MPH and BrewManNH. I think it would be a good idea to make something very simple first, so you can get used to how functions work. What you are attempting to make may be a little advanced for you right now.It's good to see that you are making an effort. Edited April 5, 2012 by czardas operator64 ArrayWorkshop
TheWarLords Posted April 5, 2012 Author Posted April 5, 2012 No problem. You should also consider the suggestions of MPH and BrewManNH. I think it would be a good idea to make something very simple first, so you can get used to how functions work. What you are attempting to make may be a little advanced for you right now.It's good to see that you are making an effort. ok i will
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