Messages - Gerome [ switch to compact view ]

Pages: prev1 ... 17 18 19 20 21 [22] 23 24 25 26 27 ... 31next
106
Developer's Corner / FBSL - A brand new FBSL code editor
« on: March 09, 2006, 05:59 PM »
Hello!

FBSL v3 has a brand new code editor!

This brand new version is now capable of :
- checking your typos at runtime!
- exporting your script in HTML



Enjoy ;)

107
Hi,

nice! when you combine this with the regular expression support in farr it should let you do some powerful stuff!

In fact one can imagine this :
imagine some datas containing code into the Clipboard...
If you type this with my revisited code :
Calc ClipboardGetText()
then the content will be read and executed directly :)
we can imagine tons of nice code like that... the limitations are just given by your ideas... :)

108
Developer's Corner / Farr's 'Calc' program completely revisited!
« on: March 07, 2006, 05:17 PM »
Hello!

Mouser can now execute this Fbsl script that is a complete replacement of his 'Calc' tool integrated into his nice Farr program!

With this version you can now use Farr like this :

Calc 1+1
and then it'll give '2' as result : ok classical and same like before...

But, one can also type this :
Calc apicall( "MessageBox", "user32", null, "Fbsl & Farr powah!", "Mouser!", MB_OK )

And then the complete expression will be executed and a messagebox will tell you "Fbsl & Farr powah!"
That is to say that this single executable allows you not only to execute common maths tasks, but you can also execute the whole things that Fbsl allows you to do aka : API, COM, REGEX, MATHS and more than 300 inner functions + your own ones at runtime via Farr!

$AppType GUI
' // GEG 07 March 2006
if standalone = false then
fbsl2exe(command(1))
ExitProgram(0)
end if
Dim $cmd = Remove(command(-1), APPEXEPATH & APPEXENAME)
if cmd = "" Then
Msgbox(Null, "You need to specify an expression to evaluate, like 2+2.", "Freestyle Basic Script Langage (FBSL) Calculator:", MB_OK)
ExitProgram(1)
End If
Dim $code = "Dim $result = " & cmd & " : Return result"'
Dim $resulttext = cmd & " = " & Execline(code)
ClipBoardSetText( $resulttext)
Msgbox(Null, $resulttext, "Freestyle Basic Script Langage (FBSL) Calculator / Executor:", MB_OK)

Complete compiled program is located there :
http://gedd123.free.fr/Fbsl/FBSLCalc.zip

And then replace your actual FBSLCalc.exe located into \Program Files\FindAndRunRobot\Scripts
with this brand new one!


Enjoy!
Feedback appreciated ;)

109
Post New Requests Here / Re: IDEA: Run bat files transparently
« on: February 15, 2006, 05:55 PM »
Hi,

In Fbsl you just have to do that :
StrPipe( "CMD.exe /K test.bat", SW_HIDE )

Into the bat file you can do such code :
@echo off
Echo Hello World! > log.txt

Your bat will be executed silently and without any console output thanks to thr SW_HIDE parameter :)

The StrPipe has more extends in Fbsl, you can redirect the piped process to any valuable Handle, that is to say it's very handy to grab a result from something that writes into stdout :)

Enjoy ;)

110
General Software Discussion / Re: PlayWave.exe + Timed ScreenSaver
« on: February 13, 2006, 04:32 PM »
Hi,

See? AHK has SO many options to offer, I didn't even SEE them all yet! ;D

Another taste, but no need to have a specific layer here : just pure plain script that natively handles any DLL call...
#Option Explicit

Const SND_NODEFAULT = &H2
FBSL_GetFileName( "Open WAV", "WAV Files(*.wav)|*.wav", 0 )

If FBSL_GetFileName <> "" Then
  $apptype console
  Color( 2, 14 )
  ? ".........WAVE FORM FILE PLAYER................................"
  Apicall( "sndPlaySound", "winmm", FBSL_GetFileName, SND_NODEFAULT )
  ? ".............................................................."
End If

You can try it into my Fbsl Online Compiler to see the result :)

Pages: prev1 ... 17 18 19 20 21 [22] 23 24 25 26 27 ... 31next
Go to full version