JustinReno Posted August 15, 2007 Posted August 15, 2007 I'm trying to write a line in a file CODE Filewriteline("C:\Blah.au3", "$WIndow = GUICreate("""", @DesktopWidth + 200, @DesktopHeight + 200, -1, -1)""") If you try the code, theres an extra Parenthesis at the end! Does anyone know how to fix? Ive tried to put more/less parenthesis but its not working. Any kind of help is welcome, thx.
Generator Posted August 15, 2007 Posted August 15, 2007 Eh...? Filewriteline("C:\Blah.au3", '$WIndow = GUICreate("""", @DesktopWidth + 200, @DesktopHeight + 200, -1, -1)')
JustinReno Posted August 15, 2007 Author Posted August 15, 2007 i'm writing a code to press a button it will write gui info in a au3 file and compile it. Its confusing, can anyone help?
Generator Posted August 15, 2007 Posted August 15, 2007 i'm writing a code to press a button it will write gui info in a au3 file and compile it. Its confusing, can anyone help?I thought you were writing them in as a string, more code or info needed to be helped...
JustinReno Posted August 15, 2007 Author Posted August 15, 2007 Well, i'm writing a code that will create another script... The code has a gui, a button, and if you click that button it will write: Filewriteline("C:\Blah.au3", "$WIndow = GUICreate("""", @DesktopWidth + 200, @DesktopHeight + 200, -1, -1)""") In an au3 file, BUT: The Quotations in GUICreate( THESE """"" AND THE END """) Cause an error in the newley created Script, it leaves another Quotation and the end of the last ) in the script, which gives an error. The last part of the script looked like this: """)" The Extra Quotation at the end shouldnt be there. Any Idea?
Generator Posted August 15, 2007 Posted August 15, 2007 This works for me?... Filewriteline(@DesktopDir&"\Blah.au3", "$WIndow = GUICreate("""", @DesktopWidth + 200, @DesktopHeight + 200, -1, -1)")
BrettF Posted August 15, 2007 Posted August 15, 2007 Consult the Helpfile much??? Filewriteline('C:\Blah.au3', '$WIndow = GUICreate("", @DesktopWidth + 200, @DesktopHeight + 200, -1, -1)') Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
Generator Posted August 15, 2007 Posted August 15, 2007 I suppose this will work...? Filewriteline("C:\Blah.au3", "$WIndow = GUICreate("""", @DesktopWidth + 200, @DesktopHeight + 200, -1, -1)")
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