Jump to content



Photo

Com Object Question


  • Please log in to reply
9 replies to this topic

#1 Klark67

Klark67

    Seeker

  • Active Members
  • 7 posts

Posted 26 February 2012 - 10:58 PM

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







#2 jaberwocky6669

jaberwocky6669

    Dull light.

  • Active Members
  • PipPipPipPipPipPip
  • 2,080 posts

Posted 26 February 2012 - 11:21 PM

What is `n?

#3 Klark67

Klark67

    Seeker

  • Active Members
  • 7 posts

Posted 26 February 2012 - 11:24 PM

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

#4 jaberwocky6669

jaberwocky6669

    Dull light.

  • Active Members
  • PipPipPipPipPipPip
  • 2,080 posts

Posted 26 February 2012 - 11:27 PM

StringStripCR

No, nevermind.

Edited by LaCastiglione, 26 February 2012 - 11:30 PM.


#5 Klark67

Klark67

    Seeker

  • Active Members
  • 7 posts

Posted 26 February 2012 - 11:28 PM

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

#6 ProgAndy

ProgAndy

    You need AutoItObject

  • MVPs
  • 2,508 posts

Posted 26 February 2012 - 11:33 PM

AutoIt uses @LF (n), @CR ®, @CRLF (rn) for line feed: "line1" & @LF & "line2"
*GERMAN* Posted Image [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

#7 Klark67

Klark67

    Seeker

  • Active Members
  • 7 posts

Posted 26 February 2012 - 11:38 PM

but if my comobject uses that string ? :oops:

#8 water

water

    ?

  • MVPs
  • 10,695 posts

Posted 27 February 2012 - 01:20 AM

What program do you try to automate?

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download


#9 Klark67

Klark67

    Seeker

  • Active Members
  • 7 posts

Posted 27 February 2012 - 01:56 AM

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

#10 water

water

    ?

  • MVPs
  • 10,695 posts

Posted 27 February 2012 - 08:39 AM

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")

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users