Jump to content

Troubles with objget


Recommended Posts

Hi, I have an odd problem with ObjGet

The following VBscript will do the job, but the convertet Autoit do not and I am wondering why.

dim wincubeobj

on error resume next

set wincubeobj = getobject("", "wincube.application")

on error goto 0

if wincubeobj is nothing Then

MsgBox "Please start wincube"

Else

MsgBox "Object hooked on GUID: " & winCubeObj.System.Guid

while 1

wend

end If

if the wincube runs this script gets the object and I can handle with it.

Now the Autoit version which do not work:

$wincubeobj = ObjGet("", "wincube.application")

if @error Then

MsgBox (0,"","Please start wincube")

Else

MsgBox (0,"","Object hooked on GUID: " & $winCubeObj.System.Guid)

endIf

Also if the wincube runs AutoIt does not get the object and returns @error = 1

Any Ideas?

Many thanks in advance for your help and ideas.

Heinrich Haltmeyer

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