Klark67 Posted February 26, 2012 Share Posted February 26, 2012 Local $mycomobj = ObjCreate("ExampleMyComObj.Script") $mycomobj.exampleExport("line1`nline2`nline3") Can I make it with dont use the `n command ? like: line1 line2 line3 and I think it could be looks like : $mycomobj.exampleExport("Function or list") thanks... Link to comment Share on other sites More sharing options...
jaberwacky Posted February 26, 2012 Share Posted February 26, 2012 What is `n? Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Klark67 Posted February 26, 2012 Author Share Posted February 26, 2012 `n mean go next line .. like pressing enter in notepad Link to comment Share on other sites More sharing options...
jaberwacky Posted February 26, 2012 Share Posted February 26, 2012 (edited) StringStripCRNo, nevermind. Edited February 26, 2012 by LaCastiglione Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Klark67 Posted February 26, 2012 Author Share Posted February 26, 2012 Excuse me buddy I'm newbie .. so I need generated code Link to comment Share on other sites More sharing options...
ProgAndy Posted February 26, 2012 Share Posted February 26, 2012 AutoIt uses @LF (n), @CR ®, @CRLF (rn) for line feed: "line1" & @LF & "line2" *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
Klark67 Posted February 26, 2012 Author Share Posted February 26, 2012 but if my comobject uses that string ? Link to comment Share on other sites More sharing options...
water Posted February 27, 2012 Share Posted February 27, 2012 What program do you try to automate? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Klark67 Posted February 27, 2012 Author Share Posted February 27, 2012 for my own com object .. i see it is not possible thing .. {problem is solved} Link to comment Share on other sites More sharing options...
water Posted February 27, 2012 Share Posted February 27, 2012 If it is your own COM object you know what you expect. If method exampleExport needs a string with embedded `n you could try something like this: Local $mycomobj = ObjCreate("ExampleMyComObj.Script") $mycomobj.exampleExport("line1" & @NL & "line2" & @NL & "line3") My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki 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