Sign in to follow this  
Followers 0
flabes

Tabledata into clipboard - I am very new user.

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Thank you very much. It works!

I have already spend a lot of time-but like to learn, but there was i point i could not get further.

regards

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  
Followers 0