Welcome, Guest. Please login or register.
Did you miss your activation email?


Recent news:

March 10, 2010 - Keybreeze is now a 100% free, open source application. The new version includes everything that was previously in the Professional Edition. Update now.


   Home   Help Search Login Register  
 

Pages: [1]
  Print  
Author Topic: How to write a plug-in?  (Read 2156 times)
wsw70
New member

Posts: 1


View Profile
« on: October 05, 2007, 05:24:54 AM »

Greetings,

I gave a try to KeyBreeze and it is a winner Smiley I was a Launchy fan before but will eventually switch if everything goes fine.
So thanks for this masterpiece.

I would like to extend the functionality to currency converters. I usually use the xe.com web page to convert currencies -- it would be a great time saver if it would be possible to just type something along the lines of 'currency 10 eur usd' and get 10 EUR converted in USD.

Is there a template for plug-ins located somewhere so that I can try to build something?

Thanks,
Wojtek
Logged
jammie056
Power User

Posts: 13


View Profile
« Reply #1 on: December 22, 2007, 05:09:54 AM »

To begin with it wouldn't make sense to me to have this as a plug-in as there are many sites on the net dedicated to this already.   So here is a working macro that goes to one of these sites  and automatically does Euro to Dollar conversion based on the users input.
before you do any thing else make sure you have created a comand "ie" that opens your browser. This can be done easily by going to the location where internet explorer is on your computer. Highlite the executable and right click your mouse. Then chose add keyword to kebreeze. Name the keyword ie. then open the macro editor and  cut and past the folling code into the big text field.

<inputbox Enter Euro amount to be converted to US Dollars:,var1><keybreeze ie,http://www.xe.com/ucc/><delay 9000><leftarrow><delete><delete><type var1><tab><tab><tab><enter>

I hope this helps . I also have the inverse of this command to do a quick dollar to Euro conversion if you are interested. btw I named this one "euro to dollar"   and the inverse as "dollar to euro" as a keybreeze comand. Try writing the dollar to euro macro yourself but if you get stuck  I'll be happy to help you.

<Jim>  Grin
Logged
jammie056
Power User

Posts: 13


View Profile
« Reply #2 on: December 23, 2007, 05:30:24 PM »

Here is the inverse to the above command. This macro converts US Dollars to Euros.

<inputbox Enter US Dollar amount to be converted to Euro:,var1><keybreeze ie,http://www.xe.com/ucc/><delay 9000><leftarrow><delete><delete><type var1><tab><downarrow><tab><downarrow><tab><enter>

Cut and past the above macro to the macro editor big text field. then go to file/save as... and save the macro as dollar to euro you then hit the hot key and type command add.  Make the key word  dollar to euro  and the target is macro

By changing the number of <down arrow> keys and adjusting the input text   you can use this macro as a templet to convert any currency to another currency
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!