Klark67 Posted February 26, 2012 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...
jaberwacky Posted February 26, 2012 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?
Klark67 Posted February 26, 2012 Author Posted February 26, 2012 `n mean go next line .. like pressing enter in notepad
jaberwacky Posted February 26, 2012 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?
Klark67 Posted February 26, 2012 Author Posted February 26, 2012 Excuse me buddy I'm newbie .. so I need generated code
ProgAndy Posted February 26, 2012 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
Klark67 Posted February 26, 2012 Author Posted February 26, 2012 but if my comobject uses that string ?
water Posted February 27, 2012 Posted February 27, 2012 What program do you try to automate? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Klark67 Posted February 27, 2012 Author Posted February 27, 2012 for my own com object .. i see it is not possible thing .. {problem is solved}
water Posted February 27, 2012 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
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