MarkRobbins Posted July 19, 2013 Share Posted July 19, 2013 What the heck. I'm working on a generic base class called FlagSet, whose derived class will have a bunch of boolean properties such as "Left", and will provide a BitOr value for its state, or an AsString() which will return a comma separated list of all its properties that are True: Left,Bottom,etc. Global $bs=NewButtonStyle('Left') $bs.Bottom=True; Msg($bs.Value); would show BitOr($BS_BOTTOM,$BS_LEFT) Msg($bs.AsString()); should show "Left,Bottom" but shows "Left,Center,Bottom" because BitAnd($BS_RIGHT,$BS_CENTER)<>0 Ugh. ;Is it me or is this perverse? Msg($BS_LEFT);256 Msg($BS_RIGHT);512 Msg($BS_CENTER);768 ;should it not be... Msg($BS_LEFT);256 Msg($BS_RIGHT);512 Msg($BS_CENTER);0 Damn you Microsoft! **shakes fist at a dark sky** Link to comment Share on other sites More sharing options...
JohnOne Posted July 19, 2013 Share Posted July 19, 2013 (edited) I think you should know that AutoIt does not support classes, and is not object oriented. Edited July 19, 2013 by JohnOne 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...
jaberwacky Posted July 19, 2013 Share Posted July 19, 2013 I think he is using AutoItObject. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
jaberwacky Posted July 19, 2013 Share Posted July 19, 2013 Could you just not work with it the way it is? Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? 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