Jump to content
Sign in to follow this  
fraudh8er

How to use a combo box in GUI

Recommended Posts

fraudh8er

I have an intereting problem: I want to have a combo box in my script that will appear in the GUI window. and depending in what the person chooses certain programs will install. I already have the program installation part done.

Basically, the code is below, the optiosn are states, and depending on what state you choose a certain program will install. The othe problem is that one of the programs have to install no matter what state you are in. Essentially 2 programs will install no matter what state you choose, one of then being the same.

Dim $NibrsST = GUISetControl("combo", "my combo", 155, 252, 80, 100)
    GUISetControlData($agencyST,"IA|MN|WI|MO|TX|MN")

--------------

Also when I compile my script to a exe, it is rather large, like 100mb, because I am using FileInstall to compress other files with it. Is there another way I can do this so it is not that large.

Thank you

Share this post


Link to post
Share on other sites
Jos

I have an intereting problem:  I want to have a combo box in my script that will appear in the GUI window.  and depending in what the person chooses certain programs will install.  I already have the program installation part done. 

Basically, the code is below, the optiosn are states, and depending on what state you choose a certain program will install.  The othe problem is that one of the programs have to install no matter what state you are in.  Essentially 2 programs will install no matter what state you choose, one of then being the same.

Dim $NibrsST = GUISetControl("combo", "my combo", 155, 252, 80, 100)
    GUISetControlData($agencyST,"IA|MN|WI|MO|TX|MN")

<{POST_SNAPBACK}>

Not sure what you are really asking here but shouldn't the code be:

Dim $NibrsST = GUISetControl("combo", "my combo", 155, 252, 80, 100)
    GUISetControlData($NibrsST,"IA|MN|WI|MO|TX|MN")

Also when I compile my script to a exe, it is rather large, like 100mb, because I am using FileInstall to compress other files with it.  Is there another way I can do this so it is not that large.

<{POST_SNAPBACK}>

Your only other option is to not FileInstall it but to just run it ...

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
fraudh8er

How is this done?

I have used the cabinet to compress hundreds of files and then a script that runs the cabinet from DOS in a hidden window to decompress the files. that might work for you

<{POST_SNAPBACK}>

Share this post


Link to post
Share on other sites
fraudh8er

I am new to this, I do not follow. Can you be more specific. Is that a function built into Autoil or something? I am still confused on what you are saying.

How is this done?

<{POST_SNAPBACK}>

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  

×