mIRC Home    About    Download    Register    News    Help

Print Thread
#134078 28/10/05 03:51 PM
Joined: Oct 2003
Posts: 1
T
Mostly harmless
OP Offline
Mostly harmless
T
Joined: Oct 2003
Posts: 1
I'd like to see the ability to highlight a word or words within a chat window and then launch a google search of those terms.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
There is a google search script at http://www.mircscripts.org/ though I doubt it works by highlighting.


Invision Support
#Invision on irc.irchighway.net
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
You could create an f key alias, that does something like
Code:
/run http://www.google.com.au/search?hl=en&q=clipboard+contents+with+space+replaced+with+pluses+and+punctuation+removed

You can use $cb / $cb(n) to reference the clipboard contents.. from help file.

Code:
$cb
Returns the first 256 characters of the clipboard contents.

$cb(N)
Returns $crlf delimited lines from text currently in the clipboard.

Properties: len

$cb(0)		returns the number of lines in the clipboard
$cb(0).len	return the total length of all lines in the clipboard
$cb(1)		returns line 1 from the clipboard
$cb(1).len	returns the length of line 1


Then you would just highlight something, and press the f key you assigned.

Last edited by Om3n; 29/10/05 05:04 PM.

"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
nice idea , that would work smile but dont you mean highlight/ctrl+c/f-key ?


$maybe
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
mIRC's windows copy whatever's highlighted regardless of pressing Ctrl+C.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
cool smile wasnt aware of that.


$maybe
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Indeed, mIRC uses auto-copy, which is why the selection is lost as soon as the mouse button is depressed.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby

Link Copied to Clipboard