Jump to content

[Solved] How to Display the Handle(As a Number) That I Get From ObjCreate()?


Recommended Posts

Hi

 

If I create a variable that contains a handle, for example to a Window, then I can successfully dislpay it with a MsgBox.

Like this for example:

Local   $H  =WinGetHandle("")
MsgBox(0,"",$H)

 It works, and I get a MsgBox with "0x000605A8".

 

But If I create a variable that contains a handle that was created with ObjCreate(),

then trying to display it, gives an empty MsgBox, and not some Hex number like before..

 

Please note that the variable does contain an object, because I can run methods from this object..

Like, doing $V.SomeMethod(param1,param2) works great.

So the variable does contain an object..

So why can't I display its handle?

 

Thank you

Edited by Zohar
Link to comment
Share on other sites

I get it..

OK Thank you very much..

 

For the meantime, while I use this AutoIt Version, Is there a way for me to check if the Variable does contain an object?

Edited by Zohar
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...