Good day,
I'm trying to create a script to post to my favorite article directories, but to make things cleaner and more application like on their submissions pages, many article directories are resorting to using javascript and flash controls.
Now, my question is, what is the cleanest way to access and work with those winrecorder undetectable controls?
I've thought about keystrokes, but that doesn't seem to work. When inputting data with winrecorder pulling form data, it doesn't seem to leave focus on the last control. If it did, it would be a slam dunk. I could send tabs to the page to put the cursor in the correct position.
Also, some pages will present a captcha code. I'd like the script to detect the presence of the captcha and display it in a dialog box for me to give it the code and send that code to the page.
Any ideas for a stuck automator?
Frank
Troubles with javascript and flash
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7391
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Image Recognition:
http://www.mjtnet.com/blog/2007/02/20/h ... cognition/
http://www.mjtnet.com/blog/2007/02/20/h ... cognition/
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- Marcus Tettmar
- Site Admin
- Posts: 7391
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
FindImagePos can be set to return either the top left position or the centre. You know the size of the image since you captured it (Windows Explorer or Paint will tell you the dimensions). So you can easily calculate any desired offset you like. If your image was 10x10 chars and you wanted to click in 9,9 then have FIP return top left and simply add 9 to the X and Y values returned.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Thanks Marcus,mtettmar wrote:FindImagePos can be set to return either the top left position or the centre. You know the size of the image since you captured it (Windows Explorer or Paint will tell you the dimensions). So you can easily calculate any desired offset you like. If your image was 10x10 chars and you wanted to click in 9,9 then have FIP return top left and simply add 9 to the X and Y values returned.
After I get the correct position, would I then do a mouse click to set the cursor and then send the appropiate characters? I'm interested in automating this as a background job, so would this be still possible?
Frank
- Marcus Tettmar
- Site Admin
- Posts: 7391
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Yes, you would use MouseMove and the LClick.
GUI automation cannot ever be done in the background.
GUI automation cannot ever be done in the background.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?