Jump to content
Sign in to follow this  

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"


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

while 1


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")


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


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

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