Made a simple unit converter. As of now you have conversions for grams to Pounds and vice versa; Inches to Centimeters and vice versa; Fahrenheit to Celsius and vice versa; and Euros to Dollars and vice versa. Last one uses Google finance.
I will add more later. Let me know if anything obvious should be added.
Here it is:Unzip the .xys file into XY's script folder and launch from catalog or elsewhere using ::load UnitConverter;
Unit converter
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Unit converter
To see the attached files, you need to log into the forum.
-
admin
- Site Admin
- Posts: 66254
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Unit converter
What I like about this: XY scripting is taking over the freeware "market". 
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66254
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Unit converter
And of course getting the exchange rates from the web is a slick thing!admin wrote:What I like about this: XY scripting is taking over the freeware "market".
FAQ | XY News RSS | XY X
-
JustinF
- Posts: 358
- Joined: 28 Jun 2005 23:47
- Location: Omaha, Nebraska, USA
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Unit converter
Yes, with html function around, lots of stuff can be accomplished. You know I travel a lot everyday and have these crazy ideas for scripts. For example:admin wrote:What I like about this: XY scripting is taking over the freeware "market".
1. A full html calendar which will show files used on each day. One can go to any date or month etc and see what files were accessed. I know one can do this with search, but having it with GUI would be fun.
2. A disk management tool. Show absolute sizes (bytes) and relative (to the current folder) sizes (percentage) in form of colored bars would be cool. You can click through directories to further break down sizes. Somewhat similar to JDiskReport but all within XY.
Ofcourse, these are only ideas which I guess will only stay in my imagination. I wish I had the skill and time to do such things. But you never know.
-
admin
- Site Admin
- Posts: 66254
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Unit converter
I guess this will even be more fun once we have If/Then and Loops. I hope it won't be too long...serendipity wrote:Yes, with html function around, lots of stuff can be accomplished. You know I travel a lot everyday and have these crazy ideas for scripts. For example:admin wrote:What I like about this: XY scripting is taking over the freeware "market".
1. A full html calendar which will show files used on each day. One can go to any date or month etc and see what files were accessed. I know one can do this with search, but having it with GUI would be fun.
2. A disk management tool. Show absolute sizes (bytes) and relative (to the current folder) sizes (percentage) in form of colored bars would be cool. You can click through directories to further break down sizes. Somewhat similar to JDiskReport but all within XY.
Ofcourse, these are only ideas which I guess will only stay in my imagination. I wish I had the skill and time to do such things. But you never know.
Maybe you can also write a file manager using html()...
I also had an idea for html() but no time to try it: A keyword tagger for images. Would show a shrinked preview of the selected image file, and present a predefined set of checkboxes for the keywords. Then you check the boxes matching the image and submit the <form>. Then the script would construct a string of the keywords and set the comment field of the file to that string. Okay, this needs the tag() command -- will come soon...
FAQ | XY News RSS | XY X
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Unit converter
Yeah, and then release it as freeware (dependencies: XYplorer)admin wrote:Maybe you can also write a file manager using html()...![]()
Oh yes, that would be useful even for a non-photographer like me.admin wrote:I also had an idea for html() but no time to try it: A keyword tagger for images. Would show a shrinked preview of the selected image file, and present a predefined set of checkboxes for the keywords. Then you check the boxes matching the image and submit the <form>. Then the script would construct a string of the keywords and set the comment field of the file to that string. Okay, this needs the tag() command -- will come soon...Later you would use VFOs to list images matching keywords... should be interesting for photographers!
-
admin
- Site Admin
- Posts: 66254
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Unit converter
serendipity wrote:Yeah, and then release it as freeware (dependencies: XYplorer)admin wrote:Maybe you can also write a file manager using html()...![]()
![]()
FAQ | XY News RSS | XY X
XYplorer Beta Club