Zohar Posted May 1, 2014 Share Posted May 1, 2014 (edited) 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 May 1, 2014 by Zohar Link to comment Share on other sites More sharing options...
trancexx Posted May 1, 2014 Share Posted May 1, 2014 Because it's object type. If you need pointer representation then use Ptr() on it. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Zohar Posted May 1, 2014 Author Share Posted May 1, 2014 Hi trancexx I tried it, and what I got now instead of an empty MsgBox, is a MsgBox with "0x00000000".. Link to comment Share on other sites More sharing options...
trancexx Posted May 1, 2014 Share Posted May 1, 2014 And what version of AutoIt you run? ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Zohar Posted May 1, 2014 Author Share Posted May 1, 2014 (edited) 3.3.6.1 It is a bug that was fixed? Edited May 1, 2014 by Zohar Link to comment Share on other sites More sharing options...
trancexx Posted May 1, 2014 Share Posted May 1, 2014 Yes, something like that. I'd have to check logs to say when exactly, but newer versions would get you pointer. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Zohar Posted May 1, 2014 Author Share Posted May 1, 2014 (edited) 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 May 1, 2014 by Zohar Link to comment Share on other sites More sharing options...
JohnOne Posted May 1, 2014 Share Posted May 1, 2014 IsObj() AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Zohar Posted May 1, 2014 Author Share Posted May 1, 2014 Thank you JohnOne 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