 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Buckie
Joined: 13 Feb 2008 Posts: 15 Location: Denmark
|
Posted: Thu Feb 21, 2008 12:46 pm Post subject: How can i open more files to my edit field ? |
|
|
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
 |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5880
|
Posted: Thu Feb 21, 2008 8:15 pm Post subject: |
|
|
| 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 |
|
 |
Buckie
Joined: 13 Feb 2008 Posts: 15 Location: Denmark
|
Posted: Thu Feb 21, 2008 8:26 pm Post subject: |
|
|
| Thank you |
|
| 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
|