topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday March 28, 2024, 12:03 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: F&RR does mathematics...  (Read 13261 times)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
F&RR does mathematics...
« on: October 13, 2005, 12:49 AM »
hi there mouser,

i was just wondering... why not use F&RR to do calculations?
i mean the edit box would come in handy in evaluating mathematical expressions like google's calculator...

just a thought... ;-)

best regards,
lanux

rbeeger

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 72
    • View Profile
    • Donate to Member
Re: F&RR does mathematics...
« Reply #1 on: October 13, 2005, 11:32 AM »
Good idea. I sometimes use calc to do some simple calculations.
If I could do them in FRR, it would be just cool. I don't need the buttons. Just the possibility to type in a term (with parenthesis) and have it evaluated would be pretty cool.

nontroppo

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 649
  • spinning top
    • View Profile
    • nontroppo.org
    • Donate to Member
Re: F&RR does mathematics...
« Reply #2 on: October 13, 2005, 12:27 PM »
+1, though if there is a command line calculator around we could simply use the aliases without mouser having to code anything particular...
FARR Wishes: Performance TweaksTask ControlAdaptive History
[url=http://opera.com/]

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: F&RR does mathematics...
« Reply #3 on: October 13, 2005, 08:12 PM »
+1, though if there is a command line calculator around we could simply use the aliases without mouser having to code anything particular...

hi there nontroppo,

i didn't know that aliases could do the trick & there are plenty of cmd-line calculators but i was hoping that the answers would appear in F&RR's edit box instead of a console window...
anyway, here is one such program: EVAL v1.35 if you would kindly code the aliases..  ;-)


best regards,
lanux

nontroppo

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 649
  • spinning top
    • View Profile
    • nontroppo.org
    • Donate to Member
Re: F&RR does mathematics...
« Reply #4 on: October 14, 2005, 03:03 AM »
Is there not a windows rather than dos program that will open up a requestor with the result? Here is the alias for this dos program. You need to make a .pif and change the path to suit your needs. I don't like the left over console window either so either another program or some magic by mouser is needed...

1000>>>eval>->Evaluate $$1 | c:\windows\eval.pif $$1>+>^([\d\.\+\-\*%=<>&\|\^\$\(\)/\s]+)
FARR Wishes: Performance TweaksTask ControlAdaptive History
[url=http://opera.com/]
« Last Edit: October 14, 2005, 03:05 AM by nontroppo »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: F&RR does mathematics...
« Reply #5 on: October 17, 2005, 12:51 AM »
Here is the alias for this dos program. You need to make a .pif and change the path to suit your needs. I don't like the left over console window either so either another program or some magic by mouser is needed...

hi there nontroppo,

aah, the pif file - remnants of Win3.x.. ;-) sorry, i can't recall anymore but how do i create the pif file? anyway, thanks a lot for the alias...

actually i'm trying to emulate SlickRun's inline calculator, which is very handy... it used to be my favourite launcher until F&RR came along... ;-)

best regards,
lanux

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: F&RR does mathematics...
« Reply #6 on: October 17, 2005, 03:46 AM »
i could add a calculator to F+R but let me suggest that instead i concentrate on the plugin system (after i add multiple keywords and other stuff planned), since this would be a perfect first application for a plugin.

in other words, yes let's add this, but let's add it as a plugin.

nontroppo

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 649
  • spinning top
    • View Profile
    • nontroppo.org
    • Donate to Member
Re: F&RR does mathematics...
« Reply #7 on: October 17, 2005, 03:43 PM »
In XP I simply duplicated the _default.pif, renamed it and changed its settings.

I'm with mouser, plugins seem perfect for this.
FARR Wishes: Performance TweaksTask ControlAdaptive History
[url=http://opera.com/]

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: F&RR does mathematics...
« Reply #8 on: October 17, 2005, 09:00 PM »
in other words, yes let's add this, but let's add it as a plugin.
that's no problem, i'll just wait for it then. tks mouser... ;-)

In XP I simply duplicated the _default.pif, renamed it and changed its settings.
in the meantime, nontroppo's alias is a fine replacement...

best regards,
lanux

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: F&RR does mathematics...
« Reply #9 on: October 17, 2005, 09:16 PM »
maybe the first plugin will simply be a plugin that can shell a command to a commandline app, capture the output, and display it nicely in the results window - seems like that would be useful for lots of things like this.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: F&RR does mathematics...
« Reply #10 on: October 17, 2005, 09:37 PM »
maybe the first plugin will simply be a plugin that can shell a command to a commandline app, capture the output, and display it nicely in the results window - seems like that would be useful for lots of things like this.

aye, mouser. maybe this would be helpful...

How can the output of a command line operation be retrieved?

A small freeware utility cb.zip (4 KB) captures up to 512 KB of output from a command or program.
The text is captured to the clipboard, which a script can access via the clipboard variable. For example:
RunWait %comspec% /c dir | cb.exe
MsgBox %clipboard%
Source: AutoHotkey FAQ

best regards,
lanux

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: F&RR does mathematics...
« Reply #11 on: February 10, 2006, 05:33 AM »
see this thread for a solution to lanux's request:
https://www.donation...index.php?topic=2344

Gerome

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 154
    • View Profile
    • Get my Freestyle Basic Script Language + compiler!
    • Donate to Member
Re: F&RR does mathematics...
« Reply #12 on: February 10, 2006, 07:08 AM »
Hello,

maybe the first plugin will simply be a plugin that can shell a command to a commandline app, capture the output, and display it nicely in the results window - seems like that would be useful for lots of things like this.

With this simple Fbsl's GUI script, you'll grab the stdoutput of any executable that produces output :)

Dim %hEdit = Fbsl_control("edit", Me, "", 1, 0, 0, 320, 200, 0x50310084, 0)
  Dim $buf = StrPipe("CMD /C DIR C:\*.txt /o/b/n" )
  Fbsl_SetText( hEdit, buf )
  Resize(Me, 0, 0, 324, 204 )
  Center(Me): Show(me)
Begin Events
End Events

The result is a GUI winform sized to 320x200 with a TextBox containing the result of the following shelled command line :
CMD /C DIR C:\*.txt /o/b/n

As you've seen, it does not require any extra EXEcutable to do the job since StrPipe does the whole job for you ;)
Any comments ?  :Thmbsup:
Yours,
(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
http://www.fbsl.net [FBSL Author]
http://gedd123.free.fr/FBSLv3.zip [FBSL Help file]
(¯`·._.·[If you need help... just ask]·._.·´¯)