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 

How can i open more files to my edit field ?

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



Joined: 13 Feb 2008
Posts: 15
Location: Denmark

PostPosted: Thu Feb 21, 2008 12:46 pm    Post subject: How can i open more files to my edit field ? Reply with quote

Hi guys i am currently writing a script to a online community, the friend list cannot be larger then 25...this is a shame, so i am making a script to fight the problem...how ever...I ran into a problem :

Code:

ButtonOpen:
   FileSelectFile, FriendFile, 1, , Open a File, Txt Files(*.txt)
   FileRead, FriendsInList, %FriendFile%
   Gui, Submit, Nohide
   GuiControl,,Edit,%FriendsInList%
 Return


Pretty normal function that opens a file and loads it into my edit field, the problem is - that I can only load 1 file (pr time i run the program)

If I press the "open button" again, and pick a new file - it wont read it into the edit field.

Any suggestions or ideas ? I have been sitting with the problem for about 2 hours and its getting really boring

Rolling Eyes
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
SKAN



Joined: 26 Dec 2005
Posts: 5880

PostPosted: Thu Feb 21, 2008 8:15 pm    Post subject: Reply with quote

Code:
Gui, Add, Button, gButtonOpen, Open
Gui, Add, Edit, w640 h480 vEdit
Gui, Show
Return

ButtonOpen:
   FileSelectFile, FriendFile, 1, , Open a File, Txt Files(*.txt)
   FileRead, FriendsInList, %FriendFile%
   GuiControlGet, Edit
   GuiControl,,Edit, %Edit%`n%FriendsInList%
Return
Back to top
View user's profile Send private message
Buckie



Joined: 13 Feb 2008
Posts: 15
Location: Denmark

PostPosted: Thu Feb 21, 2008 8:26 pm    Post subject: Reply with quote

Thank you
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   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