[HOWTO] -Set Key Sequence/Shortcut WINDOWS

Hola!

For windows shortcut overrides try WinKey
(http://download.com.com/3000-2344-913626.html?tag=lst-0-1). I use it a
lot with other programs (e.g. winkey-r brings up IRB :).

For language services look at:
http://www.google.com/language_tools
http://www.verbix.com/languages/spanish.shtml (spanish verbs)
http://www.diccionarios.com (english-spanish)
www.dict.org (english-english only)

For a professional commercial solution that you might be interested in,
visit www.babylon.com.

HTH,
Assaph

···

-----Original Message-----
From: Ronnie Bermejo [mailto:xarek@spymac.com]
Sent: Friday, 21 May 2004 7:58 AM
To: ruby-talk ML
Subject: [HOWTO] -Set Key Sequence/Shortcut WINDOWS

/Hello Ruby fans/

I’m working in an small project to create a translation machine (
basically
English<->Spanish )
I’d love to call this program with a ‘Key-Sequence shortcut’ on Window$,
I have found some ways to do it but I am wondering if there’s a ruby way
to set
the shortcut .

THE IDEA IS:
1 - Ctrl-C [ love ]
2 - Key Sequence [Ctrl-Alt Z ]
3 - Ctrl-V [amor]

class TranslateClipBoard

include BabelFish
require “win32/clipboard”

def initialize
paste(translate(copy))
end

def copy
clp = Win32::Clipboard.data
return clp
end

def paste(data)
     Win32::Clipboard.data = data
end

def translate(text)	            
  res = BabelFish.translate("en_es",text)
  return res 
end   

end

class SetShortCut
# ???
end

*could you recommend me a (SOAP/XML) free translation service on the
web to
suck the data from ?

Thanks -> Gracias

---- Msg sent via Spymac Mail - http://www.spymac.com