Jump to content
Sign in to follow this  
davidzmx6637

A little Help please :]

Recommended Posts

davidzmx6637

Hi there (who ever thats reading)

i am completely new to scripting in general, my first time trying to script xD.

im trying to use Autoit to type in an order.. idk how to explain like:

waiting1

waiting2

waiting3

waiting4

etc....

waiting400

End.

can anyone tell me which Function to use and how to use it?

Please and thnx.

Share this post


Link to post
Share on other sites
water

Welcome to AutoIt and the forum!

Where do you want to "type in" the data? A GUI written by you, the GUI of an application you didn't write yourself, a web page?


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
davidzmx6637

type into a website

i kinda figure out how to make it type with, "Send" but idk how to make the numbers increase by 1 repeatedly.

Edited by davidzmx6637

Share this post


Link to post
Share on other sites
water

If you use the Internet Explorer as browser then the IE UDF is the way to go. There are a lot of functions to handle forms starting with _IEForm.

BTW: Please use meaningful thread titles. Everyone needs help on the General help and Support forum ;)


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
davidzmx6637

i read that to make the numbers increase by 1 i should use Enum, but i dont understand how to use it. D:

Share this post


Link to post
Share on other sites
water

Can you post what you have coded so far?


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
davidzmx6637

WinActivate("Mozilla Firefox")

Send("s_lava1")

[scope] Enum [step <stepval>] <constantlist>

Send("{tab}")

Send("upghigh")

Send("{tab}")

Send("left")

Send("{tab}")

Send("s_lava1")

[scope] Enum [step <stepval>] <constantlist>

Send("{tab}")

trying to get the numbers to increase

Share this post


Link to post
Share on other sites
water

Which application do you want to automate?

You need a variable where you store the number. You concatenate the string part "s_lava" and the number and then send it. Sending and increasing must be done in a loop.


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
davidzmx6637

Loop meaning While 0=0 and WEnd, right?

so it would be like:

Send("s_lava" "1")?

how do i add in variable? using Const?

example please? im getting confused D:

Share this post


Link to post
Share on other sites
water

Something like:

For $iIndex = 1 to 400
    Send("s_lava" & $iIndex)
Next

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

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  

×