Demon777 Posted February 17, 2008 Share Posted February 17, 2008 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 More sharing options...
Moderators SmOke_N Posted February 17, 2008 Moderators Share Posted February 17, 2008 $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 More sharing options...
Demon777 Posted February 17, 2008 Author Share Posted February 17, 2008 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 More sharing options...
bogQ Posted February 18, 2008 Share Posted February 18, 2008 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 connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now