AutoHotkey Community

It is currently May 27th, 2012, 12:12 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: May 2nd, 2011, 6:09 am 
I'm having a hard time with Dropdown Lists

What I'm trying to do is to be able to select any letter on the list
Ex: A|B|C|D
Save the letter chosen to an Ini File,
Then, next time I open the program have it choose as well as show the previously chosen letter.
Can somebody show me how its done in code?
It will be greatly appreciated.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 2nd, 2011, 6:43 am 
Offline

Joined: May 12th, 2005, 8:20 am
Posts: 331
Location: Münster, Germany
Hi, Rusty,
here some hints for your request.
Here it goes: Initialize your DDL (drop down list)
Code:
Gui, Add, DDL, vmyDDL, A|B|C

Now make your choice by clicking onto a value of your DDL
At programme's ende write the currently chosen value to an .INI-file
Code:
Gui, Submit, Nohide
; IniWrite, Value, Filename, Section, Key ; look for it in the manual

At next programme start read the value from your .INI-file
Code:
;IniRead, OutputVar, Filename, Section, Key ; look for it in the manual

and put your DDL to the read value
Code:
GuiControl, Choose, myDDL, %variableFilledFromInifile%

That's it!
Regards,
Klaus


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 2nd, 2011, 6:05 pm 
Thank you! It worked well. I appreciate the help! :D


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, Yahoo [Bot] and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group