Jump to content
Sign in to follow this  
Klark67

Com Object Question

Recommended Posts

Klark67

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...

Share this post


Link to post
Share on other sites
Klark67

`n mean go next line .. like pressing enter in notepad :oops:

Share this post


Link to post
Share on other sites
Klark67

Excuse me buddy I'm newbie .. so I need generated code :oops:

Share this post


Link to post
Share on other sites
ProgAndy

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

Share this post


Link to post
Share on other sites
Klark67

but if my comobject uses that string ? :oops:

Share this post


Link to post
Share on other sites
water

What program do you try to automate?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Klark67

for my own com object .. i see it is not possible thing :oops: .. {problem is solved}

Share this post


Link to post
Share on other sites
water

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 (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
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
Sign in to follow this  

×