Jump to content

Tabledata into clipboard - I am very new user.


Recommended Posts

I am working myself into the Samples in order to understand what it does.

I mixed 2 Samples.

1. write tabel into array

2. Stringsplit to get it into the clipboard

I would like wo have e.g. row 2 col 4 on may Clip

But nothing works - what is wrong with my script ???

#include <Array.au3>

$oIE = _IE_Example ("table")

$oTable = _IETableGetCollection ($oIE, 0)

$aTableData = _IETableWriteToArray ($oTable, True)

_ArrayDisplay($aTableData)

$pageArray = StringSplit($aTableData, @CRLF)

ClipPut($pageArray & " additional text")

MsgBox(0, "Clipboard contains:", ClipGet())

Thanks for Help

P.S. This is my 1st Question and i hope it is not against any Rule

If so let me know how to do it.

By the way:My english is miserable

Link to comment
Share on other sites

flabes,

Try this...see the comments in the code

#include <Array.au3>
#include <ie.au3>                                    ; <------- you also need this include

$oIE = _IE_Example("table")
$oTable = _IETableGetCollection($oIE, 0)
local $aTableData = _IETableWriteToArray($oTable, True)
_ArrayDisplay($aTableData)

;$pageArray = StringSplit($aTableData, @CRLF)          ; <-----  this is not possible, what are you intending???
;ClipPut($pageArray & "  additional text")            ; <-----  because of previous line
ClipPut($atabledata[1][3] & "  additional text")     ; <----- row 2 (offset[1]) column 4 (offset[3])  arrays are zero based
MsgBox(0, "Clipboard contains:", ClipGet())

Good Luck,

kylomas

edit: You will find a good tutorial about arrays on WIKI and you may want to spend some time reading the Help file.

Edited by kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...