Jump to content

Automate screenshots: keypress1 pause keypress2 pause keypress1 ... and so on


Recommended Posts

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 by undekaeder
Link to comment
Share on other sites

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 - 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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 - 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

 

Link to comment
Share on other sites

  • Developers
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

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 by undekaeder
Link to comment
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
 Share

  • Recently Browsing   0 members

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