image
image

Go Back   macosx.com > Scripts > Automator Scripts

Reply
 
LinkBack Thread Tools
  #1  
Old March 18th, 2009, 03:12 AM
KBug's Avatar
Registered User
 
Join Date: Nov 2008
Posts: 37
Thanks: 4
Thanked 0 Times in 0 Posts
KBug is on a distinguished road
Watch Me Do doesn't take keyboard input

I want to create a Watch me do app that will open safari and log into my router config file. Every thing is good when recording the action but when I run the workflow, Automator opens safari, clicks on the 192.168.1.1 button that I dragged on the bookmarks bar but doesn't input the pass.
I have enabled access for assistive devices from the Universal Access Prefs.

I think Watch Me Do is only taking mouse actions and not recording keyboard input. How can I correct this ?
Reply With Quote
  #2  
Old March 18th, 2009, 11:35 AM
#1 Rhapsody's Avatar
Mac Guru
 
Join Date: May 2008
Posts: 326
Thanks: 5
Thanked 11 Times in 11 Posts
#1 Rhapsody is on a distinguished road
Are you using Leopard? It is supposed to automatically record keyboard input.
__________________
RhapsodyOS.tk Rhapsody OS Support/Development Site
Reply With Quote
  #3  
Old March 18th, 2009, 01:40 PM
KBug's Avatar
Registered User
 
Join Date: Nov 2008
Posts: 37
Thanks: 4
Thanked 0 Times in 0 Posts
KBug is on a distinguished road
Yes I am using Leopard 10.5.6 but unfortunately Automator doesn't record keyboard input. Any help ??
Reply With Quote
  #4  
Old March 18th, 2009, 01:47 PM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,678
Thanks: 7
Thanked 388 Times in 370 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
Could it be that Automator is indeed passing the keyboard (password) input, but the page simply hasn't loaded yet in your browser?

If I recall correctly, "Watch Me Do" takes what you do as input, but does not (for the most part) retain the pauses between your actions. So, if the mouse correctly clicks the proper bookmark, perhaps a delay of a second or two between that action and the "type the password" action should exist?

Just a shot in the dark... we use screen automation here at work, and have to account for pauses in the automation process while pages load for some of our automated actions.
__________________
Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
  #5  
Old March 18th, 2009, 02:03 PM
KBug's Avatar
Registered User
 
Join Date: Nov 2008
Posts: 37
Thanks: 4
Thanked 0 Times in 0 Posts
KBug is on a distinguished road
Here is what is happening : Automator starts, double clicks Safari alias on my desktop, Safari loads, Automator clicks on 192.168.1.1 button on bookmark bar, config page loads, Automator clicks in the pass field and nothing happens from there and after some time the workflow ends. So I guess if it records keyboard input I should see dots (....) in the pass field!! What do you think ??
Reply With Quote
  #6  
Old March 18th, 2009, 02:36 PM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,678
Thanks: 7
Thanked 388 Times in 370 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
I'm thinking so... can you post your script here (removing the router's password, of course, and replacing it with something like "PASSWORD") so that we can test it?
__________________
Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
  #7  
Old March 18th, 2009, 02:53 PM
KBug's Avatar
Registered User
 
Join Date: Nov 2008
Posts: 37
Thanks: 4
Thanked 0 Times in 0 Posts
KBug is on a distinguished road
I've attached my workflow
Attached Files
File Type: zip router.zip (57.8 KB, 2 views)
Reply With Quote
  #8  
Old March 18th, 2009, 04:15 PM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,678
Thanks: 7
Thanked 388 Times in 370 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
Try this:

Record your script again, but after "Click the 'Super G' button" and before "Type password", actually click on the password text field on the router's web page.

I recorded a similar app (open Safari, open a page, click on password field with the mouse, type password, press "login" button) and it works flawlessly. The only thing I can think of is that you don't instruct Automator where to type the password -- I realize that when your router's webpage opens that the password field is already highlighted and ready for typing, but perhaps being run under Automator somehow fuggles this up.

When I recorded my script (actually clicking on the password field before typing), there is now an action in the script called "Click the text field" after the "Click 'Super G'" and before the "Type password." This may be what you're missing.

My script looks like this:

Click Safari in the Dock (different, I know)
Click the "D-Link" button
Click the text field.
Type ******* (password)
Click the "Log In" button
__________________
Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com

Last edited by ElDiabloConCaca; March 18th, 2009 at 04:52 PM.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump


All times are GMT -5. The time now is 03:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.