AutoHotkey Community

It is currently May 27th, 2012, 9:17 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: December 2nd, 2011, 4:58 pm 
I need help i always wanted to do this :\
Code:
FileAppend,%Save%,%A_ScriptDir%/Test.txt ;<< dont works obviously...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2011, 5:06 pm 
Offline
User avatar

Joined: April 4th, 2009, 8:19 pm
Posts: 1143
Location: Croatia
Code:
FileAppend,%Save%,%A_ScriptDir%\Test.txt
:wink: (replace / with \)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2011, 5:09 pm 
Learning one wrote:
Code:
FileAppend,%Save%,%A_ScriptDir%\Test.txt
:wink:

is what i did...
it saves all variables as blank :(


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2011, 5:09 pm 
Learning one wrote:
Code:
FileAppend,%Save%,%A_ScriptDir%\Test.txt
:wink: (replace / with \)

oh i need to replace that! THANKS =)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2011, 5:14 pm 
Offline

Joined: June 14th, 2009, 7:48 pm
Posts: 331
Check what's in Save var (empty or not) :
Code:
Save=Is my var empty ? ? ?
FileAppend,%Save%,%A_ScriptDir%\Test.txt
msgbox, save is : %Save%

_________________
AHK No BlanK AHK No Comments and more


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2011, 5:17 pm 
awannaknow wrote:
Check if your var is empty or not :
Code:
Save=Is my var empty ? ? ?
FileAppend,%Save%,%A_ScriptDir%\Test.txt
msgbox, save is : %Save%

I do that always... :P i have "solved" the problem but i find a new problem >.< if i use FileSelectFile to save as, it dont generates it :\ any help?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2011, 5:27 pm 
Offline

Joined: December 18th, 2010, 3:26 pm
Posts: 35
iBobMKW wrote:
>.< if i use FileSelectFile to save as, it dont generates it :\ any help?



Try this. It selects an existing file and overwrites the file with the variable saved to it.

Code:
Save = I like root beer.
FileSelectFile, FileSelected, S
FileDelete, %FileSelected%
FileAppend, %Save%, %FileSelected%


Or to make a new file, write out your own save and use this (FileDelete not necessary):

Code:
Save = I like root beer.
FileSelectFile, FileSelected, S
FileAppend, %Save%, %FileSelected%


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2011, 9:33 pm 
Frozenthia wrote:
iBobMKW wrote:
>.< if i use FileSelectFile to save as, it dont generates it :\ any help?



Try this. It selects an existing file and overwrites the file with the variable saved to it.

Code:
Save = I like root beer.
FileSelectFile, FileSelected, S
FileDelete, %FileSelected%
FileAppend, %Save%, %FileSelected%


Or to make a new file, write out your own save and use this (FileDelete not necessary):

Code:
Save = I like root beer.
FileSelectFile, FileSelected, S
FileAppend, %Save%, %FileSelected%

LoL i did it before reading this... but anyway THX :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2011, 9:33 am 
Offline

Joined: June 14th, 2009, 7:48 pm
Posts: 331
iBobMKW wrote:
if i use FileSelectFile to save as, it dont generates it :\

Please take a few seconds and a few more keystrokes to explain the problem in a more detailed manner.

_________________
AHK No BlanK AHK No Comments and more


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Google Feedfetcher, migz99 and 68 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