 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
virtigo
Joined: 22 Nov 2009 Posts: 2
|
Posted: Sun Nov 22, 2009 1:26 am Post subject: Gui write to ini |
|
|
Hey there, Iv been readin all the examples and tutorials I could find in getting a GUI to write to an INI file, no such luck. Can someone point me in the right direction?
| Code: |
Gui, Add, DropDownList, vAnimusSelect, F1|F2|F3|F4|F5|F6|F7|F8|F9|F10
Gui, Add, DropDownList, vColorChoice1, Black|White|Red|Green|Blue
Gui, Add, ComboBox, vColorChoice, Red|Green|Blue|Black|White
Gui, Add, Button, default, OK
Gui, Show, w405 h823, New GUI Window
Return
ButtonOK:
Gui, Submit
IniWrite, %vAnimusSelect%, GUI.ini, Animus, select
IniWrite, %vColorChoice%, GUI.ini, Animus, colour
IniWrite, %vColorChoice1%, GUI.ini, Animus, colour1
Return
GuiClose:
ExitApp
|
The output to the INI file is this
| Code: |
[Animus]
select=
colour=
colour1=
|
As you can see none of the selections from the dropown list go into the ini file. Any help would be much appreciated[/code] |
|
| Back to top |
|
 |
rtcvb32
Joined: 17 Feb 2008 Posts: 289
|
Posted: Sun Nov 22, 2009 1:34 am Post subject: Re: Gui write to ini |
|
|
| Code: |
Gui, Show, w405 h823, New GUI Window
IniWrite, %vAnimusSelect%, GUI.ini, Animus, select
IniWrite, %vColorChoice%, GUI.ini, Animus, colour
IniWrite, %vColorChoice1%, GUI.ini, Animus, colour1
|
v for your options merely states it's a variable, the v isn't part of the variable. Remove what's in red, and it will work. |
|
| Back to top |
|
 |
virtigo
Joined: 22 Nov 2009 Posts: 2
|
Posted: Sun Nov 22, 2009 1:35 am Post subject: |
|
|
hahahaha BRILLIANT!!
thanks man I knew it had to be somthing stupid |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|