Jump to content

ComboBox


 Share

Recommended Posts

15 hours ago, SkysLastChance said:

What is your question exactly? 

        Local $sSelectFolder = FileSelectFolder("Select Folder", "")        
        If @error Then continueloop
        GUICtrlSetData($Input, $sSelectFolder)
         ; Add files
        _GUICtrlComboBox_BeginUpdate($idCombo)
        _GUICtrlComboBox_AddDir($idCombo, $sSelectFolder & "\*.*")
        _GUICtrlComboBox_EndUpdate($idCombo)

with this code I can only read all the files in a folder but I can't read the files contained in the subfolders and I can't choose which one to display the files I want

_GUICtrlComboBox_AddDir($idCombo, $sSelectFolder & "\*.exe+*.cmd+*.bat")

ecc....

in a nutshell I am trying to reconstruct my old program in VB NET, but I have only been using autoit for 11 days and I am in the grass

 

 

Edited by AlMax3000
Link to comment
Share on other sites

3 hours ago, AlMax3000 said:

 

_GUICtrlComboBox_AddDir($idCombo, $sFileSelectFolder & "\*.exe")

 

I guess your $sFileSelectFolder comes from an 

FileSelectFolder ("","")

If so then delete the backslash

_GUICtrlComboBox_AddDir($idCombo, $sFileSelectFolder & "*.exe")

For subfolders you have to use

_GUICtrlComboBoxEx_AddDir

with $iAttribute = $DDL_Directory ( like helpfile says )

 

EDIT: I just tried the comboboxEx but it seems like it doesn't work for any reason, i couldn't localize. so you have to code around like @FrancescoDiMuro said

Edited by Aelc

why do i get garbage when i buy garbage bags? <_<

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