Sign in to follow this  
Followers 0
blackmarket

Beginner programmer, but long time web designer. (Questions on help)

3 posts in this topic

#1 ·  Posted (edited)

I am trying to create a popup that shows all of the items below in the script to show up as checkboxes that allow the user to check one of them, or to be able to select all. Below is part of my script. I am also looking for help in regards to creating it to also show tabs with different parts of the script on each tab. such as sets on first tab which includes the script below. another tab price adjustments, etc. I do not want the popup to disappear after the person chooses but instead run it. It is a beginning of a bot for a game I play, and creating it to initiate trades for the program.

 Func Sets()
   ; create a gui with multiple controls.
   Local $hGUI = GUICreate("Sets", 300, 200)

   ; Create a checkbox control.
Local $idCheckbox1 = GUICtrlCreateCheckbox("5DN", 10, 10, 185, 25)
Local $idCheckbox2 = GUICtrlCreateCheckbox("7E", 10, 10, 185, 25)
Local $idCheckbox3 = GUICtrlCreateCheckbox("8ED", 10, 10, 185, 25)
Local $idCheckbox4 = GUICtrlCreateCheckbox("9ED", 10, 10, 185, 25)
Local $idCheckbox5 = GUICtrlCreateCheckbox("BOK", 10, 10, 185, 25)
Local $idCheckbox6 = GUICtrlCreateCheckbox("AP", 10, 10, 185, 25)
Local $idCheckbox7 = GUICtrlCreateCheckbox("IN", 10, 10, 185, 25)
Local $idCheckbox8 = GUICtrlCreateCheckbox("PS", 10, 10, 185, 25)
Local $idCheckbox9 = GUICtrlCreateCheckbox("OD", 10, 10, 185, 25)
Local $idCheckbox10 = GUICtrlCreateCheckbox("TOR", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("JUD", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("ONS", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("LGN", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("SCG", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("MRD", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("DST", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("CHK", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("SOK", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("RAV", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("GPT", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("DIS", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("ICE", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("CSP", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("TSB", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("TSP", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("PLC", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("PRM", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("MI", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("VI", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("WL", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("ST", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("UZ", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("BOO", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("FUT", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("10E", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("MED", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("LRW", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("EVG", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("MOR", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("VAN", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("SMH", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("EVE", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("ME2", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("ALA", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("TE", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("CON", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("DDC", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("ARB", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("M10", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("ME3", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("TDO", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("ZEN", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("V09", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("EX", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("WWK", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("ROE", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("DDE", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("H09", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("UL", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("M11", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("V10", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("DDF", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("SOM", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("ME4", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("PD2", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("MBS", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("UD", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("NPH", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("CMD", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("DDG", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("M12", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("DDH", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("TD2", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("ISD", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("V11", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("MM", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("NE", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("PR", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("DKA", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("DDI", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("AVR", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("PD3", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("M13", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("V12", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("PC1", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("PC2", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("RTR", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("DDJ", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("GTC", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("DDK", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("DGM", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("MMA", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("M14", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("THS", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("V13", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("DDL", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("C13", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("BNG", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("JOU", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("DDM", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("VMA", 10, 10, 185, 25)
Local $idCheckbox = GUICtrlCreateCheckbox("M15", 10, 10, 185, 25)
 

 

example

set a [] set b [] set c[]

and so on and so on but not to close the application.

Edited by Melba23
Added code tags

Share this post


Link to post
Share on other sites



You didn't read the rules, No Game Automation. You posted in the wrong section too.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

blackmarket,

Triple fail I am afraid: :(

 

- 1. somdcomputerguy is quite right - please read the Forum rules (the link is also at bottom right of each page) - particularly the bit about not discussing game automation - before you post again.

- 2. Please pay attention to where you post - the "Examples" section where you started this thread is clearly marked: "This is NOT a general support forum!". I have moved it for you, but would ask you to be more careful in future.

- 3. When you post code please use Code tags - see here how to do it. Then you get a scrolling box and syntax colouring as you can see above now I have added the tags.

So it will not be a surprise that the thread is now locked. But welcome to the AutoIt forum - and see you soon with a legitimate question I hope. :)

M23

1 person likes this

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0