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 

program specific file

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



Joined: 23 Jun 2007
Posts: 136

PostPosted: Tue Jul 22, 2008 4:12 am    Post subject: program specific file Reply with quote

Just wondering how you can make a program specific file. Save files for most programs can only be viewed with the program that created them. If you try to open them with notepad you get rubbish. How are these files generated and can I do it with AHK?
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Tue Jul 22, 2008 5:37 am    Post subject: Reply with quote

the files are just some binary format. many programs save in some kind of text format, or text with binary components. You can write binary files with ahk, but it is rarely needed. What kind of file do you want to save? what kind of info is in the file?
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
viciouskinid



Joined: 23 Jun 2007
Posts: 136

PostPosted: Tue Jul 22, 2008 5:45 am    Post subject: Reply with quote

Just a string of numbers when the license key is saved.

I have been using ini files to save the settings, using a file that could not be read would be better.
Back to top
View user's profile Send private message
Krogdor



Joined: 18 Apr 2008
Posts: 1145
Location: The Interwebs

PostPosted: Tue Jul 22, 2008 5:56 am    Post subject: Reply with quote

Look here:
http://www.autohotkey.com/forum/viewtopic.php?t=32558
for some info on writing binary files..
Back to top
View user's profile Send private message AIM Address
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