Sign in to follow this  
Followers 0
TheWarLords

i Need help here

11 posts in this topic

#1 ·  Posted (edited)

i wen't that work

Code =

#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()
EndFunc

And i need add that in Code and work when i open script

C:UsersTestDesktopMu.mp4

Posted Image

i went in The second rectangle it

if 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
Thnks

in end Thanks you All

;)

Edited by TheWarLords

Share this post


Link to post
Share on other sites



go back to reding

;)


Share this post


Link to post
Share on other sites

i can help you with the color of your gui if you can color my php


Share this post


Link to post
Share on other sites

TheWarLords, you need to write some code where it says Func for anything to happen.

#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

Share this post


Link to post
Share on other sites

TheWarLords, you need to write some code where it says Func for anything to happen.

#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.

#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 ;)

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by czardas

Share this post


Link to post
Share on other sites

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 Gude
How 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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Thanks Bro

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. ;)

Edited by czardas

Share this post


Link to post
Share on other sites

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

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