Jump to content

Xiengsaephan

Members
  • Posts

    5
  • Joined

  • Last visited

Xiengsaephan's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I have a combobox that reads to an .ini files that loads 3 values to the GUI, you can edit these values and save them. I want to add a button to the interface that users can then click on to add a new item to that combobox directly from the GUI which would add a new section in the .ini file as well. What command would work best for this? My .ini would look like this [ComboList Item 1] val1 = 1111 val2 = 2222 val3 = 3333 [ComboList Item 2] val1 = 4444 val2 = 5555 val3 = 6666
  2. You're correct, the 4 lines were intermixed with the other code. I added another short delay and it works now, thanks!
  3. Hi, I have a script that presses the keys A, then S, then D, then F. I want to then send a SPACE after one of those letters depending on which item on my combobox is selected. here is how my code looks like Func Example() Local $idComboBox = GUICtrlCreateCombo("After A", 20, 20, 150, 20) GUICtrlSetData($idComboBox, "After S|After D|After F", "After A") ; Display the GUI. GUISetState(@SW_SHOW, $hGUI) ControlSend("NotePad","","","A") Sleep (150) ControlSend("NotePad","","","S") Sleep (150) ControlSend("NotePad","","","D") Sleep (150) ControlSend("NotePad","","","F") Sleep (150) I tried to a line like this after each of the other command but it didnt work. If $idComboBox = "After A" Then ControlSend("NotePad","","","{SPACE}") If $idComboBox = "After S" Then ControlSend("NotePad","","","{SPACE}") If $idComboBox = "After D" Then ControlSend("NotePad","","","{SPACE}") If $idComboBox = "After F" Then ControlSend("NotePad","","","{SPACE}") What would be the best way?
  4. -snip- That's what I have so far. Not sure what to write after activating the Update button. The .ini file will look something like this -snip-
  5. Hi, beginner here. I have searched for a couple of hours and I'm stumped. I have a Combobox list with 5 different item, 5 input boxes and an "Update" button. I want the numbers on the input boxes to changed when I press Update. The numbers will be dependant on what is currently being being selected on the combolist. The data will be taken from an .ini file. Can someone point me in the right directions? Thanks
×
×
  • Create New...