Beginner help with writing script

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
veganmeat
Posts: 1
Joined: 18 May 2016 10:43

Beginner help with writing script

#1 Post by veganmeat » 18 May 2016 11:06

Greetings,

It has been 30 years and 3 different lifetimes since my last dos script. I was hoping for a example or two of coding as a refresher to get me started.

The task : I have a web site that I want to search for specific innovatory. This innovatory randomly comes up through the day so the script will run constantly . If the item is available (Need to search for word "select") simply want to click on the box and make a alerting tone on computer that item has been found.

Script will have to look for certain keywords on screen and enter in data in designated boxes when keywords are found. It will also have to have to make the browser pages "go back" pages and search for data each page (not sure is that can be done).

Any help in sample scripts searching windows 7 screens would be helpful to get back into it. Thanks Much for your time in advance! Mike

Squashman
Expert
Posts: 4487
Joined: 23 Dec 2011 13:59

Re: Beginner help with writing script

#2 Post by Squashman » 18 May 2016 12:49

This cannot be done in a batch file. You will need to use a program like AutoIt or AutoHotkey. They have their own forums that can help you.

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Beginner help with writing script

#3 Post by ShadowThief » 18 May 2016 13:23

This project as you have described it absolutely cannot be completed in pure batch.

If you didn't need to enter data in certain boxes, you could simply wget the current page and then use findstr to search for whatever you were looking for.

Because you are trying to manipulate the browser, I am going to recommend that you try and do something in Javascript instead.

If you could give more information about exactly what it is you are trying to do (especially a link to the page and what values you are searching for), we could possibly be more helpful.

Post Reply