Jump to content

Recommended Posts

Posted

I tried converting this function into ruby, i stuck up at the step ,

$aRet = DllCall("oleacc.dll", "long", "ObjectFromLresult", "lresult", $lResult, "ptr", DllStructGetPtr($typUUID), _

"wparam", 0, "idispatch*", 0)

Could some one tell me how to create the $typUUID in ruby? and also

If IsObj($aRet[4]) Then

$oIE = $aRet[4] .Script()

; $oIE is now a valid IDispatch object

Return $oIE.document.parentwindow

Else

SetError(1)

Return 0

EndIf

Is script() method is build it ? i tried printing the return value of the function but it is not displaying any value ??

Thanks in advance !

- babuk

  • 1 month later...
Posted

I tried converting this function into ruby, i stuck up at the step ,

$aRet = DllCall("oleacc.dll", "long", "ObjectFromLresult", "lresult", $lResult, "ptr", DllStructGetPtr($typUUID), _

"wparam", 0, "idispatch*", 0)

Could some one tell me how to create the $typUUID in ruby? and also

If IsObj($aRet[4]) Then

$oIE = $aRet[4] .Script()

; $oIE is now a valid IDispatch object

Return $oIE.document.parentwindow

Else

SetError(1)

Return 0

EndIf

Is script() method is build it ? i tried printing the return value of the function but it is not displaying any value ??

Thanks in advance !

- babuk

Hey Babuk, did you ever get this figured out? I'm trying to get the control for use with a watir script in ruby, is that what you are trying to do also? Any luck?

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