Jump to content

Recommended Posts

Posted

I think that GetParameters may not have an overall return value, but instead returns into each of the variable names you specify.

I agree with you.

$oSC.eval("oTask.GetParameters TaskType, TaskOptions, TaskFlags, Source, Destination, Comment, CompressLvl, CryptoLvl")

Unfortunately no change, still fails with error 80020009, so the other statements are not processed.

Posted

See if more COM error info is available...

Try adding

#include <IE.au3>

_IEErrorHandlerRegister()

to the top of your script -- COM error details will be output to the SciTe Console.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Posted

See if more COM error info is available...

Try adding

#include <IE.au3>

_IEErrorHandlerRegister()

to the top of your script -- COM error details will be output to the SciTe Console.

Dale

You're right, it does

--> COM Error Encountered in ShowJobs2_vbs.au3
----> $IEComErrorScriptline = 32
----> $IEComErrorNumberHex = 80020009
----> $IEComErrorNumber = -2147352567
----> $IEComErrorWinDescription = 
----> $IEComErrorDescription = Syntax error
----> $IEComErrorSource = Microsoft VBScript compilation error
----> $IEComErrorHelpFile = 
----> $IEComErrorHelpContext = 0
----> $IEComErrorLastDllError = 0
Posted

This works

$oSC.eval("oTask.GetParameters (TaskType, TaskOptions, TaskFlags, Source, Destination, Comment, CompressLvl, CryptoLvl)")
$TaskType = $oSC.eval("TaskType")
$Comment = $oSC.eval("Comment")
ConsoleWrite("TaskType: " & $TaskType & @CRLF & "Comment: " & $Comment & @CRLF)

@Dale - Thanks again, I have learnt a few things through this exercise.

I will play around with native AutoIt and see if I can get that to work as well.

Cheers

VW

Posted

On the basis of the last post I would have thought this should work

$oTask.GetParameters($TaskType, $TaskOptions, $TaskFlags, $Source, $Destination, $Comment, $CompressLvl, $CryptoLvl)
ConsoleWrite("TaskType: " & $TaskType & @CRLF & "Comment: " & $Comment & @CRLF)

Perhaps this is a bug

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
×
×
  • Create New...