send keypress to firefox

B

billmoroz

I spent the last few days trying to figure this out.. but am at a dead
end.

What I want to do is interact with a website that uses javascript.
Specifically it uses document.onkeypress to wait for key presses. My
goal is to first send a "T", five seconds later send a "U", then loop
it 2 times.

I am using Firefox as the browser, and this is on Ubuntu linux. I
looked at doing a javascript for this via greasemonkey.mozdev.org, but
could not find a way for js to send keypresses. Also tried to code
something via glade/gtk on gnome, but came a bit complex too quickly.

I am wondering if this is doable with Perl, and if so how should I go
about doing this? If anyone can steer me in the right direction, I'd
be most appreciative!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,048
Members
47,647
Latest member
NelleMacy9

Latest Threads

Top