Travb Posted August 15, 2016 Share Posted August 15, 2016 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 More sharing options...
AutoBert Posted August 15, 2016 Share Posted August 15, 2016 Everybody posting in this forum need's help, so please use a better title next time. This is not a forum, where you can order a script, so read about Send, TimerInit, TimerDiff, Loop Statements in the help. 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 More sharing options...
water Posted August 15, 2016 Share Posted August 15, 2016 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 2024-07-28 - Version 1.6.3.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 (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 More sharing options...
Travb Posted August 15, 2016 Author Share Posted August 15, 2016 9 hours ago, AutoBert said: Everybody posting in this forum need's help, so please use a better title next time. This is not a forum, where you can order a script, so read about Send, TimerInit, TimerDiff, Loop Statements in the help. 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 More sharing options...
Moderators JLogan3o13 Posted August 15, 2016 Moderators Share Posted August 15, 2016 @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 More sharing options...
water Posted August 16, 2016 Share Posted August 16, 2016 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 2024-07-28 - Version 1.6.3.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 (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 More sharing options...
Travb Posted August 16, 2016 Author Share Posted August 16, 2016 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 More sharing options...
l3ill Posted August 16, 2016 Share Posted August 16, 2016 Yes, I can see this not working in Excel My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
Travb Posted August 16, 2016 Author Share Posted August 16, 2016 37 minutes ago, l3ill said: Yes, I can see this not working in Excel 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 More sharing options...
l3ill Posted August 16, 2016 Share Posted August 16, 2016 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 My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
l3ill Posted August 16, 2016 Share Posted August 16, 2016 Also, Very important ! Don't forget to have a look at the Forum rules before posting. My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
232showtime Posted August 16, 2016 Share Posted August 16, 2016 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 Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
AutoBert Posted August 16, 2016 Share Posted August 16, 2016 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 16, 2016 Developers Share Posted August 16, 2016 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 More sharing options...
Recommended Posts