Jump to content

FileWrite Problemm


Demon777
 Share

Recommended Posts

I have problemm ppl's.

Today i tryed to write some AutoIt Text into .txt file. I have done this :

$file = FileOpen(@HomeDrive & "\test.txt", 1)

FileWrite($file, "MsgBox(64, "Hi", "Its a Test")" & @CRLF)

FileClose($file)

But as you can see here is a little problemm! I cant write this Autoit Code into .txt File. maybe here is another way ? Thx.

Link to comment
Share on other sites

  • Moderators

$file = FileOpen(@HomeDrive & "\test.txt", 1)
FileWrite($file, 'MsgBox(64, "Hi", "Its a Test")' & @CRLF)
FileClose($file)oÝ÷ ØêÚºÚ"µÍÌÍÙ[HH[SÜ[ÛYQ]H   [È ][ÝÉÌLÝÝ   ][ÝËJB[UÜ]J  ÌÍÙ[K    ][ÝÓÙÐÞ
    ][ÝÉ][ÝÒI][ÝÉ][ÝË   ][ÝÉ][ÝÒ]ÈHÝ  ][ÝÉ][ÝÊI][ÝÈ [ÈÔB[PÛÜÙJ ÌÍÙ[J

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Thank you thats working well!

Btw. another prob with the same comand:

For Exampel i have 1 Checkbox.. When i am clicking on it , it starting ch1 Function. And i have 1 InputBox where i should write message.

Func _ch1()
    $message = $Input1
    FileWrite($file, 'MsgBox(64, "Message", "$message")' & @CRLF) <----- hier how to make scirpt that will show what was wrote in Input1(And it must be wrote in Text. When i open programm, i writing message in InputBox and then programm saving this text to au3! But it showing me $message and not what i wrote in inputBox.) 
EndFunc

Please need help =)

Link to comment
Share on other sites

FileWrite($file, 'MsgBox(64, "Message", "$message")' & @CRLF) <----- hier how to make scirpt that will show what was wrote in Input1(And it must be wrote in Text. When i open programm, i writing message in InputBox and then programm saving this text to au3! But it showing me $message and not what i wrote in inputBox

Please need help =)

it looks like you need this?

FileWrite($file, 'MsgBox(64, "Message", "'&$message&'")' & @CRLF)

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...