Jump to content

Just some little help..


Recommended Posts

Hi i need some help on my script, im working on a "code generator" which just has 4 choices, Blackjack code, its chat client code, its chat server code, media player code. i have 2 boxes, the codes are on the left, and when the user clicks the > button it will move to the right, and when the user clicks generate, it will generate that code in an edit box.

i also need to add the code to "each word" (like adding client code onto the word "client code"). can anyone help, or do this for me?

thanks

#include <GUIConstants.au3>
$Form3 = GUICreate("Code Generator", 354, 257, 274, 212)
$ListBox1 = GUICtrlCreateList("", 8, 8, 137, 201, -1, $WS_EX_CLIENTEDGE)
GUICtrlSetData(-1, "Server Code|Client Code|Media Player Code|BJ Code")
$Button1 = GUICtrlCreateButton(">", 156, 15, 30, 25)
$Button2 = GUICtrlCreateButton(">>", 156, 48, 31, 25)
$Button3 = GUICtrlCreateButton("<", 157, 81, 31, 25)
$Button4 = GUICtrlCreateButton("<<", 157, 114, 32, 25)
$ListBox2 = GUICtrlCreateList("", 200, 8, 137, 201, -1, $WS_EX_CLIENTEDGE)
$generate = GUICtrlCreateButton("Generate", 104, 225, 75, 25)
$cancel = GUICtrlCreateButton("&Cancel", 184, 225, 75, 25)
$help = GUICtrlCreateButton("&Help", 264, 225, 75, 25)
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
   ;;;;;;;
    EndSelect
WEnd
Exit

i added the 2 pieces of code needing to add, the chat and server code is in "ITS CHAT" thread in scripts and scraps forum.

Blackjack_1.2.au3New_AutoIt_v3_Script__2_.au3

Edited by NegativeNrG

[size=20]My File Upload[/size]Register at my site and upload.

Link to comment
Share on other sites

this may help get you started

#include <GUIConstants.au3>
$Form3 = GUICreate("Code Generator", 354, 257, 274, 212)
$ListBox1 = GUICtrlCreateList("", 8, 8, 137, 201, -1, $WS_EX_CLIENTEDGE)
GUICtrlSetData(-1, "Server Code|Client Code|Media Player Code|BJ Code")
$Button1 = GUICtrlCreateButton(">", 156, 15, 30, 25)
$Button2 = GUICtrlCreateButton(">>", 156, 48, 31, 25)
$Button3 = GUICtrlCreateButton("<", 157, 81, 31, 25)
$Button4 = GUICtrlCreateButton("<<", 157, 114, 32, 25)
$ListBox2 = GUICtrlCreateList("", 200, 8, 137, 201, -1, $WS_EX_CLIENTEDGE)
$generate = GUICtrlCreateButton("Generate", 104, 225, 75, 25)
$cancel = GUICtrlCreateButton("&Cancel", 184, 225, 75, 25)
$help = GUICtrlCreateButton("&Help", 264, 225, 75, 25)
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $Button1
        $B1_move = GUICtrlRead($ListBox1)
        GUICtrlSetData($ListBox2, $B1_move, "")
    Case Else
  ;;;;;;;
    EndSelect
WEnd
Exit

8)

NEWHeader1.png

Link to comment
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
 Share

  • Recently Browsing   0 members

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