PandiPanda Posted May 22, 2012 Share Posted May 22, 2012 (edited) Hi guys,Can i do something like that in autoit ?msdn Point$hPoint = ObjCreate("System.Windows.point") $Point_1 = $hPoint.Point(1.2,1.1) ; call Constructor, can i ? $Point_2 = $hPoint.Point(1.1,4.5) Local $x = $Point_1.X ; so there $x = 1.2 Local $isEquals=$Point_1.Equals($Point_2) ; there falseThanks. Edited May 22, 2012 by PandiPanda Link to comment Share on other sites More sharing options...
JohnOne Posted May 22, 2012 Share Posted May 22, 2012 No, that seems to be .net type which autoit has no access to. However you can include StuctureConstants.au3 and use $tagPOINT Which ends up something like. Global Const $tagPOINT = "struct;long X;long Y;endstruct" $MyPoint = DllStructCreate($tagPOINT) $x = $MyPoint[1] $y = $MyPoint[2] That's only if you need a point for use with external dll. 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...
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