From: Dick Davies Date: 2008-02-18T19:52:10+09:00 Subject: Re: Send keystrokes to Firefox or Safari? On Feb 17, 2008 11:20 PM, 7stud -- wrote: > Philip Brocoum wrote: > > Is there a way to send keystrokes to Firefox or Safari on Mac OS X > > Leopard using Ruby? I don't want to remote control the web using watir > > or anything, I just want to send keystrokes (ie. I want to be able to > > type into a text box really fast hehe). > > > > Anyone know how to do this? Thanks! > > You have to realize that Safari is a software program on your computer. > What you want to do involves mucking around in the internals of that > software program. No, you just need to feed events into it via AppleScript or somesuch. > Watir is a completely different story. Watir merely mimics what Safari > does. Watir sends the same requests as Safari does out over the > internet and then receives the same responses as Safari. No it doesn't - it scripts actions and drives Safari (or Internet Explorer, or firefox). See: http://safariwatir.rubyforge.org/safariwatir_script_0.2.0.mov -- Rasputnik :: Jack of All Trades - Master of Nuns http://number9.hellooperator.net/