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
Beginner help with writing script
Moderator: DosItHelp
Re: Beginner help with writing script
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.
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: Beginner help with writing script
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.
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.