You have to login in order to post a reply to this topic.

2 replies [Last post]
Argos
Argos's picture
User offline. Last seen 35 weeks 5 days ago. Offline
Joined: 11/23/2009
Posts: 1

 Hi,

I've checked for some ideas on the following but haven't seen them. I need to do the following: 

1. log into a web page (google analytics)

2. screen shoot various traffic pages (i figured this out)

3. Resize the image (reduce down) and save to a folder and email. 

 

Any direction or script help on this would be appreciated. 

Thanks!

Andrew

 

 

baz
User offline. Last seen 37 weeks 5 days ago. Offline
Joined: 11/12/2009
Posts: 47
Re: New User: Sorry if already posted - Login/Screen ...

Hi Argos

To log into a webpage, you need to open your browser under STSTEM - RUN APPLICATION in the job designer. Then, input the URL for the Google analytics login screen in teh command line.

Once you've done that, you can use the image recognition to move the mouse to the login area and send a mouse click to the login box. The use keystrokes (or variables) to enter your user name, enter a TAB to go to the password field and use keystrtokes to enter your password, then enter an ENTER and this should log you in. (It's a good idea to keep these simple type of macros as snippets so you can reuse them over and over again with different sites by simply changing a couple of things).

You know how to take the screenshots, so now you want to save them to a folder. You can elect to save the screenshots to a file of your choosing when you take them by selecting FILE in the "save screenshot to" drop down box.

When the macro has run and the screenshots have been taken and put into the desired folder,  you can zip and email the folder using the "zip file" and "email" functions in Winauto...which will need a litle customisation first for your specific job. 

As for resizing the images, I think you would need winauto to work with your image editor which could be tricky...but no doubt is doable...if someone else wants to chime in here.

All the best

 

Baz

 

Jag Foo
User offline. Last seen 1 year 43 weeks ago. Offline
Joined: 07/03/2009
Posts: 31
Re: New User: Sorry if already posted - Login/Screen ...

Thanks Baz.

 

You pretty much sum it up.

 

Automating via keystrokes (e.g. using TAB) and image recognition ("Wait for Image, Move Mouse To Image") will get the job done for you quite accurately.

 

WinAutomation has an in-built "email" function so you should be able to email the images as attachments without any problem.

As for file sizing, that's not a feature that WA have. But you can always download a free image resizer software here:

http://www.vso-software.fr/products/image_resizer/

 

And then use WinAutomation to launch the software and automate the clicking/keystrokes to get the image resized. Definitely possible to automate this process you described.

 

Let us know if this works for you.

 

Cheers,

Jag