babuk Posted March 2, 2009 Share Posted March 2, 2009 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 More sharing options...
mwolfe38 Posted April 29, 2009 Share Posted April 29, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now