Jump to content
Sign in to follow this  
NewChild

Brand new and need help running AutoIt in background

Recommended Posts

NewChild

Hey, so I need help. I want to run an autoit script in the background with internet explorer or any other browser, it's just going to click and type a bit maybe, can someone help me with doing so? I just want to know how it will work in the background while I play other games

Share this post


Link to post
Share on other sites
water

Welcome to AutoIt and the forum!

To automate Internet Explorer please have a look at the IE UDF in the help file that comes with AutoIt.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
NewChild

Wow, this is really confusing, and I only started to using autoit yesterday  :ermm:

I've honestly only gotten my code from other topics, so I dont understand a single word

Share this post


Link to post
Share on other sites
water

Every journey starts with the first step :)

You need to give us more information what you try to do, what you already tried and the problems you face.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
NewChild

How can I pm you?

Share this post


Link to post
Share on other sites
water

You can't.

Post your questions here (that's what the forum is for) and you will get answers not just from me but from others too :)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
NewChild

Okay, since I have a limit of posts I'll try to get everything before it's done

What I'm trying to do is run a script in the background with internet explorer, I know you have to have controlmouseclick or controlsend replacing the normal ones. 

It will be typing every while and then for a random test.

I still want internet explorer to show on the task, so I can check up and see if it's doing fine

Share this post


Link to post
Share on other sites
water

You can't automate IE with control* commands. That's what the IE UDF is for. It doesn't use the GUI but the COM interface. Try some of the examples in the help file and you will understand.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
NewChild

can i still run a script on it while being on the background?

without control commands

Edited by NewChild

Share this post


Link to post
Share on other sites
water

Sure.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
NewChild

How will I be able to run it in the background then? Could you give me the script? Or will I waste some time not understanding

Share this post


Link to post
Share on other sites
water

Taken from the example script number 5 for _IECreate from the help file:

#include <IE.au3>

; Create an invisible browser window, navigate to a website,
; retrieve some information and Quit
$oIE = _IECreate("http://sourceforge.net", 0, 0)
; Display the innerText on an element on the page with a name of "sfmarquee"
Local $oMarquee = _IEGetObjByName($oIE, "sfmarquee")
MsgBox(0, "SourceForge Information", $oMarquee.innerText)
_IEQuit($oIE)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
corgano

Seriously mate, look at the help file. In SciTE type _IE and a thing pops up with posible functions. look for the one that looks like it does what you want. If you want to know how to use a command, highlight it and hit F1  and the help window pops up. Almost every function in autoit has an example in the help file. Experiment!

About running in program, _IECreate() has a parameter for visible. Leave it visible when you're testing and making your program, and then set it to 0 when you are finished and it will be in the background

And if you have any questions, search google with 'Site:AutoitScript.com whateveryouwanttosearchhere' and it will search the forum. Good luck

Edited by corgano

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Share this post


Link to post
Share on other sites
NewChild

I think I'm going to give up with this, it's too confusing :sweating:

Share this post


Link to post
Share on other sites
water

Why do you want to give up? What have you tried so far? What doesn't work?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
NewChild

I just dont understand a single thing from what you posted, so.. I dont think i'll get the hang of it

and i get an error of something not being an object

Edited by NewChild

Share this post


Link to post
Share on other sites
michaelslamet

If you're serious to learn AutoIT, you will make it finally, dont quit early.

I'm just like you 3 years ago, with trial and error, asking a lot of questions in this forum (and get so many helps, thank you so much guys!), trial and error, finally I can create my own small script

to make my life easier o:)

Share this post


Link to post
Share on other sites
water

I couldn't have said it better :)

I started the same way. I had a goal (a problem that needed to be solved) - started to code - the script didn't work - started to search the forum, read the help file, found some tutorials - finally got it working.

The next script got better in every respect.

So, just start!


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
corgano

@michaelslamet

Love your profile picture :D

@OP

To do stuff with web pages, you should first make sure you have a good understanding of HTML and how HTML works

It would also be a good idea to read up on Com objects and javascript. While most of the time you won't have to deal with these directly, it will help you to know how it works and why one thing is better than another

@anyone else lost and looking for help

If you post questions, it helps to also post the code you have problems with, what you're trying to do, what is actually happening, and any other information that might be helpful. The better you ask the question, the more helpful responses you will get


0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Share this post


Link to post
Share on other sites
michaelslamet

I couldn't have said it better :)

I started the same way. I had a goal (a problem that needed to be solved) - started to code - the script didn't work - started to search the forum, read the help file, found some tutorials - finally got it working.

The next script got better in every respect.

So, just start!

 

I follow the same path, plus I'm asking a lot of stupid questions here :sweating:

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  

×