Sign in to follow this  
Followers 0
babuk

Regarding __IEControlGetObjFromHWND()

2 posts in this topic

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

Share this post


Link to post
Share on other sites



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?

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