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

5 replies [Last post]
josef
josef's picture
User offline. Last seen 2 years 4 weeks ago. Offline
Joined: 11/28/2009
Posts: 2

Having just purchased WinAutomation I am impressed by its power and I am looking forward to the numerous ways this software can increase my productivity. Presently I am working on a way to automate the putting up of bookmarks. My approach is as follows:

There are two Excel files: One which holds the data of Social Bookmark websites like URL, user name, and password. The other file consists of 30 rows each holding the data for the submission of one bookmark like target URL, title, and tags.

As I do not want to submit the same 30 URLs to every Social Bookmark websites I am looking for a way to randomize the number of submitted bookmarks as well as which URL to submit.

Therefore I would like to create a job where at the beginning I am asked for the number of URLs to be submitted. I assume that this can be down with a message box although I haven’t figured out a way how to do this.

After entering a number of bookmarks to be created the job should select the given number of URLs, in other words, rows, in the Excel spreadsheet. The rows should be selected randomly without choosing one row twice in one submission job.

Essentially it’s about establishing a kind of randomization mechanism which chooses rows in the spreadsheet but I wasn’t able to find a way how to achieve this with WinAutomation.

Creating the job which submits the data to the Social Bookmark websites is easy using the “Move Mouse to Image” and the “Tab” button. However, how to create a loop which restarts the submission process until there is no further URL to be submitted is presently also beyond my abilities.

To sum up:

1)    How do I create a message box which allows me to choose the number of bookmarks to be submitted?

2)    How do I create a mechanism which randomly selects a specified number of rows in an Excel spreadsheet?

3)    How do I create a loop which submits one bookmark after the other and stops after the last URL to be submitted?

I would be grateful if somebody could point me in the right direction. Many thanks!

 

codex
codex's picture
User offline. Last seen 18 weeks 4 days ago. Offline
Joined: 11/12/2009
Posts: 161
Re: Bookmarking, randomization, and loops

1) "Display Input Dialog" action under "Message Boxes" category. Remember to use the the "Convert Text to Number" action to convert the text that the user will enter into a number.

2) Check this link.

3) The most common action that can be used to do this is the "For Each" action. I'm not sure if anyone has posted a sample job about this in the past, but I could create a sample job that will read all the URLs one by one.

__________________

Error is not blindness, error is cowardice

__________________

Error is not blindness, error is cowardice

peter-
peter-'s picture
User offline. Last seen 18 hours 44 min ago. Offline
Joined: 11/20/2009
Posts: 54
Re: Bookmarking, randomization, and loops

(but I could create a sample job that will read all the URLs one by one.)

Would it possible not only to loop a list of URLs but also check the URL is available before writing to a file example http://somedomain/signup.php

__________________

ourarticles

__________________

ourarticles

codex
codex's picture
User offline. Last seen 18 weeks 4 days ago. Offline
Joined: 11/12/2009
Posts: 161
Re: Bookmarking, randomization, and loops

If the URL is not available the "Download from Web" action will generate an error (i.e. "Failed to Download from Web") and you won't be able to write to the file anyway. You can set the exception handling tab of the action though and skip the rest of the actions inside the loop.

__________________

Error is not blindness, error is cowardice

__________________

Error is not blindness, error is cowardice

josef
josef's picture
User offline. Last seen 2 years 4 weeks ago. Offline
Joined: 11/28/2009
Posts: 2
Re: Bookmarking, randomization, and loops

Dear Codex,

many thanks for your many helpful explanations and sorry for getting back to you this late. I have been out of office during the last three weeks due to some private business.

All the best to you,

Josef

codex
codex's picture
User offline. Last seen 18 weeks 4 days ago. Offline
Joined: 11/12/2009
Posts: 161
Re: Bookmarking, randomization, and loops

No problem! Glad to hear that I could help :-)

Have a good one!

__________________

Error is not blindness, error is cowardice

__________________

Error is not blindness, error is cowardice