Jump to content
Sign in to follow this  
Lemures

Classes

Recommended Posts

Lemures

i posted this as a reply for what i think autoit needs, but i feel it got drowned out a bit by the other stuff going on. anyone have any ideas on this?

how about custom classes/methods/whatever...? (havent done much other programming lately, forgot what you call em) Example... for a daoc bot i made (which i will NOT share, so dont even bother asking) i have to have seperate arrays for $Spell_Button, $Spell_Delay, $Spell_Timer, $Spell_Mana, etc. instead, id rather do something like Spell[k].Delay, Spell[k].Button, etc. Have a class.thingy return whatever... example pseudocode:

(note, i lapsed into java type programming, lol. i guess you could either do { and }'s, or method, and endmethod or something..

Class Spell

$delay = 900000 ;900 second buff in daoc

$castdelay = 4000 ;4 second cast delay

$button = "2" ;press button 2 to cast it

method Delay() {return $delay}

method CastDelay() {return $castdelay}

method Button() {return $button }

method LastCast() {return TimerStop($timer) }

method CastSpell()

Send($button)

Sleep($castdelay)

$timer = TimerStart()

endMethod

EndClass

Share this post


Link to post
Share on other sites
Valik

AutoIt is a type-less language. It would surprise me greatly if Jon would do something like this as it introduces types into AutoIt.

Share this post


Link to post
Share on other sites
Lemures

that was it, types. well, if he does, it would be awesome. lol.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.