Jump to content

mitchito

Members
  • Posts

    7
  • Joined

  • Last visited

mitchito's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Ok, I solved my problem but thank you anyway. I am writing you here the solution I used: Global $items, $msg, $comb, $bot1, $bot2 GUICreate("GUI combo", 180, 110) $items = "|item1|item2|item3" $comb = GUICtrlCreateCombo("", 10, 10, 160) GUICtrlSetData(-1, $items, "item3") $bot1 = GuiCtrlCreateButton('Selecciona "item1"', 10, 40) $bot2 = GuiCtrlCreateButton("Selecciona segundo elemento", 10, 70) GUISetState() While 1 $msg = GUIGetMsg() Switch $msg case $GUI_EVENT_CLOSE ExitLoop case $bot1 ;GUICtrlSetData($comb, $items, "item1") GUICtrlSendMsg($comb, $CB_SELECTSTRING, -1, "item1") ; Selecciona por texto case $bot2 GUICtrlSendMsg($comb, $CB_SETCURSEL, 1, 0) ; Selecciona por posición (0 = primer elemento) EndSwitch WEnd
  2. Good morning, I've been checking the help file and many forums but I haven't found the command to do what I need. I have a Combobox in my own GUI and once a function begins I need it select another option in my own Combobox. All options are already set in the Combobox. Thank you very much for helping me
  3. OK!! Perfect that's it! GUICtrlSetState($idButton_Test, $GUI_DISABLE) I thought it was unenable sorry
  4. Sorry for my English, I would like to unenable a button (you know, when it turns grey and you can't push it anymore) wich is in my GUI after pushing it
  5. Hi!! How ca I unable a button after pushing it? I have looked for it but I can't find it. Is it possible with AutoIt?? Thanks!!
  6. Thank you very much!! $f= StringReplace($f,'.',',')
  7. Hi!! AutoIt use points instead of commas when working with decimal numbers. I need to make some operations and send the result but I need to send it with a comma. What do you suggest me?? Should I make a casting each time?? If that`s what I have to do, how can I do it with AutoIt? Thank you!!
×
×
  • Create New...