undekaeder Posted November 9, 2020 Share Posted November 9, 2020 (edited) I have not been here for a long time and now there is a need you may are interested in? I want to automate the following: Keypress Win+print (Take a screenshot of the whole desktop) wait for n seconds Keypress arrow right wait for n seconds and so on. Any help that let me solve this problem soon is very welcomed. Best wishes Undekaeder my final solution (to be compiled): HotKeySet("{Esc}", "Stop") Func Stop() Exit EndFunc $numberofpages = 0 $numberofscreens = InputBox("How many screenshots should be saved?", "Enter the number of screenshots") $pause = InputBox("Pause", "Enter the time between screenshots and pageturns — depends on the time it takes the browser to present the new content.") While 1 savescreenandturnpage() $numberofpages += 1 If $numberofpages = $numberofscreens Then Send("{Esc}") EndIf WEnd Func savescreenandturnpage() Send("{RIGHT}") Sleep($pause) Send ("#{Printscreen}") Sleep(1500) EndFunc Autoit is really excellent! Edited November 11, 2020 by undekaeder Link to comment Share on other sites More sharing options...
caramen Posted November 9, 2020 Share Posted November 9, 2020 Hello man could I see the code you tried ? My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Nine Posted November 9, 2020 Share Posted November 9, 2020 What is this for ? I do not see any usage for it. Maybe there is a better approach than using key presses to automate the application. Let us know more of what you are after. Thanks. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
JockoDundee Posted November 10, 2020 Share Posted November 10, 2020 14 hours ago, undekaeder said: Keypress Win+print wait for n seconds Keypress arrow right wait for n seconds and so on. and so on? Keypress Ctrl-Alt-Delete wait for n seconds Keypress Ctrl-Alt-Delete Code hard, but don’t hard code... Link to comment Share on other sites More sharing options...
caramen Posted November 10, 2020 Share Posted November 10, 2020 16 hours ago, Nine said: Let us know more of what you are after. Thanks. What application are you trying to automate ? Post your code. My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Developers Jos Posted November 10, 2020 Developers Share Posted November 10, 2020 21 minutes ago, caramen said: What application are you trying to automate ? Post your code. Would be much better to wait for the OP to answer your (already earlier ) asked question, as @Nine is likely unable to answer it. 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...
undekaeder Posted November 10, 2020 Author Share Posted November 10, 2020 (edited) Thank you for your interest. I would like to use such a tool to be able to make screenshots of pages (images) that are available via archive.org. At this moment I have to do this work step by step manually. Maybe the one or other is interested too? A few lines of code that could save time. Thank you and best wishes Undekaeder Supplement: Find my solution in the first post Edited November 11, 2020 by undekaeder caramen 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now