I want to get a screenshot, save the image with a date-stamp and get the file path on the clipboard ready to use

Problem:

I want to get a screenshot, save the image with a datestamp and get the file path on the clipboard ready to use

Solution:

Discussion:

We start by getting the current date and time and convert it to a format that we can use to name a file and a folder after using the “Convert Date to Text” action.
We set the folder in which we want to save all our screenshots, as well as create a folder for each day we are taking screenshots.

We make sure we hide the Notification Windows, since we would not want that to ruin our print screen (this is only targeted for the event one is getting a screenshot of the screen and not a window alone), and make sure we make the notification windows visible again so that we can keep track of the jobs running.

I want to get a Screenshot of a webpage every hour

Problem:

I want to get a Screenshot of a webpage every hour

Solution:

Discussion:

We get the current date and time, and use them to create a folder within our specified folder to save the screenshots we will be taking. We convert the date time variable to a format that can be used to name a file or folder action, and then using the “Run Application” action we define that we want to run Internet Explorer and visit the www.yahoo.com.

Because actions in WinAutomation may execute too fast, we insert a “Wait for Window” action to make sure that the actions that follow will be sent to the correct window.

I want task scheduler to run a job every day, every one hour, but not run on specific days, at specific hours

Problem:

I want to schedule a job to run every day, every one hour, but not run on specific days, at specific hours via the task scheduler.

Solution:

We add a Recurring Trigger that will run every one hour, and then within our job, we enter the following actions to specify during which hours of which days we do not want our job to run.

Discussion:

In our example we have specified that we do not want our job to run during weekends from 09.00 till 17.00, so if the day of the week starts with an “S” (Saturday, Sunday), then it should then check what the current time is and according to the result it should either continue with the job’s flow or end the job successfully if the current time is appropriate for the job to run.

My Keyboard and Mouse actions are executed too fast

Problem:

My Keyboard and Mouse actions are executed too fast, while the window I want to send them to, has not yet opened

Solution:

In order to always send keystrokes and mouse clicks to the correct window, (if using multiple windows in your job, you need to add a “Wait for Window” action to wait for the window to appear before continuing with the rest of the Job’s execution.

Discussion:

Minimum WinAutomation version required: 3.1…

I want to display the last 10 lines of a text file in command prompt

Problem:

I want to display the last 10 lines of a text file in command prompt

Solution:

We can use the job displayed above, in order to display the last ten lines of the text file we have typed in command prompt.

Discussion:

In order for any job to run in command prompt, we need to have created an executable file of it. When compiling it we must make sure we select the Compile as a “Command Line” Application option.

By typing the full path of the executable file (eg. “C:get 10 last lines of my text file.exe” test.txt) we can display the 10 last rows of our text file.

Copyright 2016 - Softomotive Ltd