Search found 38 matches

by tsh73
Sat Feb 09, 2019 5:51 pm
Forum: Showcase
Topic: Crypt-It
Replies: 15
Views: 3897

Re: Crypt-It

Hello Jack Really nice program though you probably need to explain how to use scratchpad - I couldn't figure that out for a while. Really small code for what it does. I was able to dechipher sample code, starting for most common THREE letter word :) (it was not so long ago when I tried "The Gold-Bug...
by tsh73
Thu Feb 07, 2019 7:00 pm
Forum: General Board
Topic: Laser Cut Effect
Replies: 3
Views: 1123

Re: Laser Cut Effect

I'm flattered ;)
by tsh73
Wed Feb 06, 2019 8:55 pm
Forum: General Board
Topic: Laser Cut Effect
Replies: 3
Views: 1123

Re: Laser Cut Effect

(I don't know how to format code anymore)
5th button on a toolbar, after
B I U [ Quote ]

Or you can use [ code ] [ /code ] tags (I just put unbreakable spaces so it didn't run)
by tsh73
Wed Feb 06, 2019 8:52 pm
Forum: BASIC code examples
Topic: Laser cut visual effect
Replies: 2
Views: 1810

Re: Laser cut visual effect

I got inconsistent results under Win10 One machine works as is other leaves picture blank. On examining output of getPixel, it happens that it is always 0. In his case I was able to fix that by either removing first FLUSH (in #gr "fill black; flush" line) or adding FLUSH after printing text ( #gr "\...
by tsh73
Sun Feb 03, 2019 9:09 pm
Forum: Compatibility with LB4
Topic: JB/LB BMPSAVE make 32 bit BMP, LBB 24 bit
Replies: 0
Views: 1644

JB/LB BMPSAVE make 32 bit BMP, LBB 24 bit

When trying to run "Laser cut" program I hit this. Program was initially written for JB so it saved single pixel BMP -read back that BMP - read that pixel data, returned that as color. So JB/LB write 32-bit BMP (or 16-bit, if desktop is set to 16 bit) (may be not always but in my case it was so) But...
by tsh73
Sun Feb 03, 2019 9:02 pm
Forum: BASIC code examples
Topic: Laser cut visual effect
Replies: 2
Views: 1810

Laser cut visual effect

'Laser engraving (look-alike) 'tsh73 'Jan 2019. Feb 2019 - with GetPixelAPI for LB nomainwin open "Laser engraving" for graphics_nsb_nf as #gr #gr "trapclose [quit]" handleg =hwnd( #gr) calldll #user32, "GetDC", handleg as ulong, hDC as ulong #gr "down" #gr "fill black; flush" #gr "backcolor black"...
by tsh73
Fri Sep 14, 2018 8:20 pm
Forum: Compatibility with LB4
Topic: math range errors in EVAL not raised/bogus results
Replies: 1
Views: 1158

math range errors in EVAL not raised/bogus results

(tripped upon while working on chart library viewtopic.php?f=11&p=154#p154 ) I was going to change function evalFuncX(f$,x)) so in case of math range error it returned magic number. So I could omit these ranges. But it seems LBB has problems reporting such errors from EVAL - no errors happens, weird...
by tsh73
Fri Sep 14, 2018 7:55 pm
Forum: Compatibility with LB4
Topic: handle variable with a dot not supported
Replies: 0
Views: 990

handle variable with a dot not supported

(tripped upon while working on chart library viewtopic.php?f=11&p=154#p154 ) LBB as LB allows using (.) in names of variables But it doesn't allow using such variable as handle variable In following example, LB produces 3 circles while LBB errors on 3rd circle, compile-time. some.var$="some variable...
by tsh73
Fri Sep 14, 2018 7:43 pm
Forum: Compatibility with LB4
Topic: difference in USING overfill
Replies: 0
Views: 1000

difference in USING overfill

(tripped upon while working on chart library http://lbbooster.com/forum/viewtopic.php?f=11&p=154#p154 ) LBB reacts on PRINT USING overfill (that is, number too big to fit to allotted space) differently from LB: print using ("#.##", 1/3) print using ("#.##", 100/3) LB: 0.33 %33.33 LBB: 0.33 ????
by tsh73
Tue Sep 11, 2018 12:29 pm
Forum: BASIC code examples
Topic: chart library, kind of
Replies: 1
Views: 1058

chart library, kind of

Chart library started with JB long long time ago made work with LB (today) made work with LBB (kind of) differences encountered: *in LBB, handle variables with a dot ("topName.handle$") not supported *in LBB, overfill of USING produces "???" instead of %123.4 print using ("##.#", 12.3) print using (...