AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Gui write to ini

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
virtigo



Joined: 22 Nov 2009
Posts: 2

PostPosted: Sun Nov 22, 2009 1:26 am    Post subject: Gui write to ini Reply with quote

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
View user's profile Send private message
rtcvb32



Joined: 17 Feb 2008
Posts: 289

PostPosted: Sun Nov 22, 2009 1:34 am    Post subject: Re: Gui write to ini Reply with quote

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
View user's profile Send private message Yahoo Messenger
virtigo



Joined: 22 Nov 2009
Posts: 2

PostPosted: Sun Nov 22, 2009 1:35 am    Post subject: Reply with quote

hahahaha BRILLIANT!!

thanks man I knew it had to be somthing stupid
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group