Jump to content
Sign in to follow this  
WHICKED

Creating an object in Autoit

Recommended Posts

WHICKED

Hello everyone,

I have not used Autoit in awhile and forgot how to create an object in Autoit.

When I talk about an Object I mean a data structure that contains information that can be extracted through the use of getters and setters.

Such as:

Object blah = new Object(var1, var2, etc...)

func createObject($var1, $var2, $var3, ....)

$var1 = var1

$var2 = var2

$var3 = var3

EndFunc

func getvar1()

MsgBox(0,"",$var1)

EndFunc

Share this post


Link to post
Share on other sites
muzle6074

Are you sure AutoIt is an object orientated scripting language? I never seen these functions >_

Share this post


Link to post
Share on other sites
WolfWorld

He's just telling us that he knows how to use object.

This is what most noob do. Right?

When I talk about an Object I mean a data structure that contains information that can be extracted through the use of getters and setters.

May I ask? You are creating an object from a Method(function), is object suppose to be create from a class, dude you fail.

And for others. There is no object in Autoit.

*language

Edited by athiwatc

Share this post


Link to post
Share on other sites
Juvigy

Check out the help file for ObjCreate() functions.

This is an excel object creation:

$oExcel = ObjCreate("Excel.Application")

Share this post


Link to post
Share on other sites
Juvigy

Ah , i see. I dont think you can define objects in AutoIT. You can however use and reference already defined objects like the excel example above.

Share this post


Link to post
Share on other sites
WHICKED

@athiwatc: Jeez man, it was a simple question. Since I now know that AutoIt can not perform the intended operation. Then my question is void. And further more, get a life other than being ignorant and rude to people that are asking a question. Since this is a OPEN SOURCE OPEN COMMUNITY forum and software distribution, anyone has the right to ask a question, even if you deem it ridiculous, your opinion is one of the MANY members that actually SUPPORT this community. Do yourself a favor, read the EULA again.

@Everyone else: Thanks for the responses.

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  

×