Anyway, here it is: I'm writing a Perl script that uses the Expect module to open Firefox, and then I want to send Firefox a "CTRL+RightArro w" command, like so:
Expand|Select|Wrap|Line Numbers
- use Expect;
- my $command = 'firefox';
- my $URL = 'http://some_url';
- my $key = 'i have no earthly idea';
- my $exp = Expect->spawn($command, $URL) or die "Cannot spawn command: $!\n";
- # do some stuff here, and then...
- $exp->send($key);
Dumb, right? Sorry. Just pretend I'm in nursery school. : )
P.S. just reading the answers to other people's questions on this site has helped me a lot -- this is the first time I've ever had to post!