Travb

Help needed for a script.

14 posts in this topic

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.

Share this post


Link to post
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.

Share this post


Link to post
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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

@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 ;)


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
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}")

Share this post


Link to post
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...

Share this post


Link to post
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 :)

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
4 hours ago, Travb said:

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

Not for a serious programm, but may be for game automation.

Share this post


Link to post
Share on other sites
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.

 


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.