|
lanux128
|
 |
« on: October 13, 2005, 12:49:45 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
|
|
|
|
|
Logged
|
|
|
|
|
rbeeger
|
 |
« Reply #1 on: October 13, 2005, 11:32:18 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.
|
|
|
|
|
Logged
|
|
|
|
|
nontroppo
|
 |
« Reply #2 on: October 13, 2005, 12:27:23 PM » |
|
+1, though if there is a command line calculator around we could simply use the aliases without mouser having to code anything particular...
|
|
|
|
|
Logged
|
|
|
|
|
|
lanux128
|
 |
« Reply #3 on: October 13, 2005, 08:12:59 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
|
|
|
|
|
Logged
|
|
|
|
|
nontroppo
|
 |
« Reply #4 on: October 14, 2005, 03:03:31 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]+)
|
|
|
|
« Last Edit: October 14, 2005, 03:05:03 AM by nontroppo »
|
Logged
|
|
|
|
|
lanux128
|
 |
« Reply #5 on: October 17, 2005, 12:51:00 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
|
|
|
|
|
Logged
|
|
|
|
|
mouser
|
 |
« Reply #6 on: October 17, 2005, 03:46:26 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.
|
|
|
|
|
Logged
|
|
|
|
|
nontroppo
|
 |
« Reply #7 on: October 17, 2005, 03:43:03 PM » |
|
In XP I simply duplicated the _default.pif, renamed it and changed its settings.
I'm with mouser, plugins seem perfect for this.
|
|
|
|
|
Logged
|
|
|
|
|
lanux128
|
 |
« Reply #8 on: October 17, 2005, 09:00:53 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
|
|
|
|
|
Logged
|
|
|
|
|
mouser
|
 |
« Reply #9 on: October 17, 2005, 09:16:32 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.
|
|
|
|
|
Logged
|
|
|
|
|
lanux128
|
 |
« Reply #10 on: October 17, 2005, 09:37:48 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... [ copy or print] 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 FAQbest regards, lanux
|
|
|
|
|
Logged
|
|
|
|
|
mouser
|
 |
« Reply #11 on: February 10, 2006, 05:33:57 AM » |
|
|
|
|
|
|
Logged
|
|
|
|
|
Gerome
|
 |
« Reply #12 on: February 10, 2006, 07:08:18 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  [ copy or print] 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 ? 
|
|
|
|
|
Logged
|
Yours, (¯`·._.FBSL Help file] (¯`·._.Â
|
|
|
|