Jump to content

Regarding __IEControlGetObjFromHWND()


Recommended Posts

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

Link to comment
Share on other sites

  • 1 month later...

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?

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