Sign in to follow this  
Followers 0
Zap

Help please

22 posts in this topic

Hi, i am new here and was wondering how to do a couple of things with autoit.

What i am currently trying to do is simple, just open Firefox(i got this part) then go to a site and do some clicking in a loop.

Any help is welcome :o

Share this post


Link to post
Share on other sites



Welcome to the forums...

If you are willing to surf with Firefox as a human and script with IE, then your life might be easier.

Take a look at this post:

http://www.autoitscript.com/forum/index.php?showtopic=14395

It mentions ways to get around within IE.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

It would also help to state the site you're going to (likely a game), because there are scripts already written that could help.

Share this post


Link to post
Share on other sites

Ok I am stuck at the moment, after copying the link that i want to click on what command should i use?

Share this post


Link to post
Share on other sites

Do you have a helpfile? It's listed under mouseclick.

Share this post


Link to post
Share on other sites

Another quesiton, Can I instead of tabbing to the link i want to click on, search for it and then click it?

Share this post


Link to post
Share on other sites

Welcome to the forums...

If you are willing to surf with Firefox as a human and script with IE, then your life might be easier.

Take a look at this post:

http://www.autoitscript.com/forum/index.php?showtopic=14395

It mentions ways to get around within IE.

Does Firefox have COM objects like (but maybe not the same as) IE? If so, shouldn't it be even easier to script for (or write include files for), since it is open source and much better documented?

I am just begining to learn COM object stuff myself, and was just curious.


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Firefox does not have COM, but there is something external that can be used to automate Firefox. I forget what it was.. that's why I'm being vague here.

Share this post


Link to post
Share on other sites

Another quesiton, Can I instead of tabbing to the link i want to click on, search for it and then click it?

Yes. A couple of ways. But it is harder to click on a link that might move around. Since you have not told us what you are doing on the website you are clicking on, then it is hard to suggest that best way to go about writing your script. For instance, if you are just wanting to "click" one link over and over - then you may not need Firefox at all... just inetget()

Some scripters have tried to gain points in a game by having a script "click" on a recruiting link only to find out that they also needed to change thier IP address between each "click".... so, what are you attempting to do with your script?


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

There is a Firefox ActiveX control... http://www.autoitscript.com/forum/index.ph...topic=20450&hl=

But the interface is the same as IE, so It is not going to be any easier than IE. Probably more difficult infact.


“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites

Ah that's what it is. I knew it was something (and just not COM).

Keep in mind that an ActiveX control is just another term for an "OLE Object" or "Component Object Model (COM) Object."

http://support.microsoft.com/kb/159621/en-us

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Why don't they just use 1 term then? Microsoft is making it hard for me....

But anyway, I had said external in the first place. I meant it wasn't naturally included with Firefox (and therefore viewable with my OLE/COM Viewer).

Share this post


Link to post
Share on other sites

Why don't they just use 1 term then? Microsoft is making it hard for me....

Because OLE sounds wimpy, ActiveX sounds sexy for VBers and COM sound technical for the C++ers!


“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites

Because OLE sounds wimpy, ActiveX sounds sexy for VBers and COM sound technical for the C++ers!

Or maybe because they are 3 distinct subjects which are all related and actually just built on top of each other. First comes OLE, then COM (Which are virtually interchangeable anymore) and lastly ActiveX.

Share this post


Link to post
Share on other sites

http://www.herorpg.net/herorpg.php is the site i am trying to bot

its just a random game i found kinda interesting and thought this could be a good site to learn how to bot using IE

Once you log in, i just want to click on the travel tab, i want to do this by way of searching the site for "Travel" then clicking on it with enter?? maybe

Thanks

Share this post


Link to post
Share on other sites

Or maybe because they are 3 distinct subjects which are all related and actually just built on top of each other. First comes OLE, then COM (Which are virtually interchangeable anymore) and lastly ActiveX.

I saw the terms ActiveX and COM being used and remembered that Knowledge? Base article entitled

INFO: Difference Between OLE Controls and ActiveX Controls

http://support.microsoft.com/kb/159621/en-us

In that article MS states:

Keep in mind that an ActiveX control is just another term for an "OLE Object" or "Component Object Model (COM) Object."

So, ActiveX = "OLE Object" = "Component Object Model (COM) Object"

The next sentence:

A "COM Object" must support the IUnknown interface.

So, maybe COM is not so equal to ActiveX and OLE?

The next sentence:

In addition, all ActiveX controls must be self-registering; as a result, an in-process control must implement and export DllRegisterServer and DllUnregisterServer.

Okay. So, ActiveX = "OLE Object" = "Component Object Model (COM) Object" is either a generalization or OLE and COM must behave the same way... but then why say "In addition"????

But, to answer the question posed in the title of the article MS offers this:

1. Q. What is the difference between an OLE control and an ActiveX control?

A. No difference. "ActiveX control" renames and restructures the OLE controls technology. For marketing reasons, the term OLE has come full circle and once again refers to the OLE technologies that apply to object linking and embedding only. The term "OLE control" has been replaced with the "ActiveX control" to distance the name from the older Object Linking and Embedding technology with which controls have very little in common. No one should use the term "OLE control" anymore.

"For marketing reasons..." - that explains the lack of clarity :-)

My conclusion: Don't rely on MS KB summary docs for education on this topic.

@Zap,

Thanks for the additional info - I'm sure that others can now be of help to you.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

For all intents and purposes, it's a generalization. The original term is OLE but it became COM. The term "OLE Control" became "ActiveX Control". An ActiveX Control is based on a COM object - it has to implement an IUnknown interface which is all that is required for a COM interface. However, an ActiveX Control must also implement one or more other interfaces required by ActiveX Control containers, otherwise it isn't an ActiveX control. ActiveX isn't too far from things like "DCOM" and "COM+" which are just fancy (and confusing) names for a COM object that implements one or more interfaces in addition to IUnknown.

You can safely say that all ActiveX controls are COM objects but you can not say that all COM objects are ActiveX controls - the two terms are not bi-directionally interchangeable. It's best to just think of OLE as being synonymous with COM. In colloquial use, that's close enough to being true.

Share this post


Link to post
Share on other sites

#19 ·  Posted (edited)

Thanks Valik.

@Zap,

We now return this thread to you :-)

Maybe another gamer will help you along.

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

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  
Followers 0