Jump to content

Help needed for a script.


Travb
 Share

Recommended Posts

I've been using AutoIt for less than a few hours and I still can't seem to get the hang of it.

I am trying to make a script that does the following:

Hold spacebar for 30 seconds

Arrow Key down

Hold spacebar for 30 seconds

Arrow key left

If you could also explain your script that would be very helpful.

I am also looking to combine this with pixel detection later on but I can't even get the basics so until then I think I'll need a bit of babysitting for the first few stages.

Link to comment
Share on other sites

  1. Everybody posting in this forum need's help, so please use a better title next time.
  2. This is not a forum, where you can order a script, so read about Send, TimerInit, TimerDiff, Loop Statements in the help.
  3. the way you wan't to go for app application isn't the best, so please name the app.
Link to comment
Share on other sites

Welcome to AutoIt and the forum!

If you could tell us which application you try to automate we might be able to provide a reliable solution.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

9 hours ago, AutoBert said:
  1. Everybody posting in this forum need's help, so please use a better title next time.
  2. This is not a forum, where you can order a script, so read about Send, TimerInit, TimerDiff, Loop Statements in the help.
  3. the way you wan't to go for app application isn't the best, so please name the app.

-My bad

-I've read most of it but I have no previous knowledge of scripting so...

-My bad

9 hours ago, water said:

Welcome to AutoIt and the forum!

If you could tell us which application you try to automate we might be able to provide a reliable solution.

Thanks,

I was just messing around in excel

 

I can post my code if it would help?

Link to comment
Share on other sites

  • Moderators

@Travb welcome to the forum. As an FYI, it always helps to post your code, even if it is not working the way you would like it. It helps us help you ;)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

To work with Excel I suggest you have a look at the Excel UDF that comes with AutoIt.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

1 hour ago, water said:

To work with Excel I suggest you have a look at the Excel UDF that comes with AutoIt.

Definitely will.

 

Alright here is my script that wasn't working

Send ("{BS down}")
Sleep (30000)
Send ("{BS up}")
Sleep (250)
Send ("{DOWN}")
Sleep (250)
Send ("{BS down}")
Sleep (30000)
Send ("{BS up}")
sleep (250)
Send ("{LEFT}")

Link to comment
Share on other sites

37 minutes ago, l3ill said:

Yes, I can see this not working in Excel :P

Is there a way I can use this in other programs?

I really just want to emulate keyboard strokes anywhere, not neccesarily Excel...

Link to comment
Share on other sites

Looks like you are missing some of the basics.

 I suggest using some of the excellent tools already provided to get started.

Click on WIKI at the top of the page and meander through the myriads of information especially the introduction & tutorials.

Try stuff that interests you and when you get stuck come back here with what you tried and ask for help.

Good Luck :)

Link to comment
Share on other sites

2 hours ago, Travb said:

Is there a way I can use this in other programs?

I really just want to emulate keyboard strokes anywhere, not neccesarily Excel...

what program do you want to automate?

ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

Link to comment
Share on other sites

  • Jos locked this topic
  • Developers
3 minutes ago, AutoBert said:

game automation

*AUTO Click*

 

As indicated:

3 hours ago, l3ill said:

Also, Very important !

Don't forget to have a look at the Forum rules before posting.

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...