You are not logged in.

#1 2009-07-02 13:15:39

9mqk$fhn
Member
Registered: 2009-06-25
Posts: 10

Program that types something in X.

Hi,

I don't like having to type "http://www.google.com/search?q=" everytime I want to search for something in google, or "http://en.wikipedia.org/wiki/Special:Search?search=" every time I want to search wikipedia, so is there a program that can type stuff in X? So I could bind the program to a keyboard shortcut and press the shortcut every time I want to search google or wikipedia etc before typing the search query.

Thanks.

Offline

#2 2009-07-02 13:50:19

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: Program that types something in X.

Well, if you press Alt+F2 a dialog search box will pop up; there you type what you are looking for (say an http address) and it will open up your browser and direct it to it.

R.

Offline

#3 2009-07-02 13:53:40

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: Program that types something in X.

Vimperator has such a function. I use it all the time.

map <C-g> :open http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=search&db=gene&term=homo+sapiens+

In my ~/.vimperratorrc causes that entire line to appear in the command bar when I type Ctrl-G. It's a prefix for searching for human genes.


Cthulhu For President!

Offline

#4 2009-07-02 14:08:18

9mqk$fhn
Member
Registered: 2009-06-25
Posts: 10

Re: Program that types something in X.

I found a way: xautomation. Thanks.

Last edited by 9mqk$fhn (2009-07-02 14:10:22)

Offline

#5 2009-07-02 14:14:47

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Program that types something in X.

/me scratches head at this thread yikes

I don't think I've ever typed http://www.google.com/search?q=.. I mean, ever. Does your browser not have a google/whoever search thinger?

Also - ralvez, you can't say "press Alt+F2 and foo will happen" without knowing how everyone has their keybinds setup e.g. my Alt+F2 opens my run dialog.

Offline

#6 2009-07-02 14:28:06

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,928
Website

Offline

#7 2009-07-02 14:54:05

Pi
Member
From: Texas
Registered: 2009-03-20
Posts: 15

Re: Program that types something in X.

I haven't tried it so I'm not sure exactly what it does, but this is from the second issue of Arch User Magazine pg. 10

WEB SEARCHING SIMPLIFIED

Have you ever needed to search for
something, but by the time you got to
google you couldn't remember what it was?

Or how to spell it? Well here's a simple
script to make searching easier.

#!/bin/bash
firefox "http://google.com/search?q=
`xsel -p -o`&ie=UTF-8&oe=UTF-8"

Just save the above snippet, make it
executable (chmod +x) and bind it to a
keychain. Whenever you execute it, it will
search for whatever you have highlighted.

Last edited by Pi (2009-07-02 14:58:12)

Offline

#8 2009-07-02 15:56:57

2_Thumbs_Up
Member
Registered: 2009-05-09
Posts: 22

Re: Program that types something in X.

You can always try out the omnibar addon for firefox. It makes the adress bar into a combined adress and search bar. You can then assign keyboard shortcuts for all your firefox search engines.

If I type "g word" then I search for "word" on google. If I type "y word" then I make a search on youtube instead. I even have the arch wiki shortcutted to "aw ".


https://addons.mozilla.org/firefox/addon/8823

Offline

#9 2009-07-02 16:06:55

Revolt
Member
From: Portugal
Registered: 2009-06-11
Posts: 71
Website

Re: Program that types something in X.

2_Thumbs_Up wrote:

You can always try out the omnibar addon for firefox. It makes the adress bar into a combined adress and search bar. You can then assign keyboard shortcuts for all your firefox search engines.

If I type "g word" then I search for "word" on google. If I type "y word" then I make a search on youtube instead. I even have the arch wiki shortcutted to "aw ".


https://addons.mozilla.org/firefox/addon/8823

This behavior exists in vanilla FF. Just set the keyword of a certain search engine registered in the search box to, for example, g and when you type g 'something' FF uses that search engine to search for 'something'

Offline

#10 2009-07-02 18:09:11

loudtiger
Member
Registered: 2009-01-08
Posts: 68

Re: Program that types something in X.

ubiquity?

Offline

#11 2009-07-03 06:57:51

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Program that types something in X.

xdotool
snippits


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

Board footer

Powered by FluxBB