Liberty BASIC Community Forum
« Search Results »

Welcome Guest. Please Login or Register.
Mar 26th, 2017, 11:49am


Rules|Home|Help|Search|Recent Posts|Notification

--Liberty BASIC Resources--
Liberty BASIC Community WikiSpace
Frequently Asked Questions
Bay Six Software Forum
Liberty BASIC Home Page
Carl Gundel's Blog
Official Liberty BASIC Support
Liberty BASIC Programmer's Encyclopedia
Liberty BASIC on Rosetta Code

Search Results

Total results: 10


 1   General Board / Re: File size/ encryption  on: Today at 10:39am
Started by tommarch | Post by tommarch
Thankyou. Sorry about my poor posting etiquette 😊.
 
  Reply Quote Notify of replies

 2   General Board / Re: File size/ encryption  on: Today at 10:14am
Started by tommarch | Post by Rod
Click on new thread rather than poll question. Discussions about code are called threads on Conforums.

If you simply print each character to the file Liberty will be adding a CRLF pair, that is Carriage Return Line Feed. They are control characters that cause the system printing or displaying your file to move down a line and back to the left edge. Its a standard Windows thing.

To suppress these extra characters put a ; after your print line. So print #file, a$; The ; stops Liberty adding the CRLF pair.

But then you will have never ending text, you might want to let the CRLF pair be added at the end of a word or sentence.

So you are storing three characters for every encrypted character. You can cut that down with ;

Even as you have it set up now it will have little impact on your PC. Hard discs are huge these days.
 
  Reply Quote Notify of replies

 3   General Board / File size/ encryption  on: Today at 06:43am
Started by tommarch | Post by tommarch
So i have managed to create liberty basic code that will get the asc number for each character in a word, sentence, or paragraph, perform operations on that number and print them to a file. My program will then, read the file, reverse the operations, and print them to the mainwin, in the text form that they originally were entered as. This can stop people from simply opening a file in notepad, that you might want to keep private. However each character is stored in the file, one asc character number per line. Does this take up more memory than if many asc numbers were stored per line. And is there anything about this code that. could negatively affect my computer or what have you? Also, whats a poll question?
 
  Reply Quote Notify of replies

 4   Novice / Re: Get Keypress Without Focus  on: Mar 24th, 2017, 4:42pm
Started by Tasp2 | Post by tsh73
Oh. It really works. I never knew GetAsyncKeyState catches keys system-wide.
 
  Reply Quote Notify of replies

 5   General Board / Re: How to run liberty with wine?  on: Mar 24th, 2017, 4:07pm
Started by Charley | Post by Charley
Thanks Tenochtitlanuk. I got it to run. Kind of a round-about way, but it works. My main project will be communicating with an arduino via usb. A few years ago I wrote a LB program to control a CNC router via the parallel printer port. But with its demise, I will try to use an arduino on a usb to work the stepper controllers. Thanks again for the help.
Charley
 
  Reply Quote Notify of replies

 6   Liberty BASIC Code / Re: 'Why I like LB coding..."  on: Mar 24th, 2017, 3:55pm
Started by tenochtitlanuk | Post by tsh73
That's a contest, mind you wink
 
  Reply Quote Notify of replies

 7   Liberty BASIC Code / 'Why I like LB coding..."  on: Mar 24th, 2017, 2:40pm
Started by tenochtitlanuk | Post by tenochtitlanuk
It is so easy to use LB that I can get triggered into a kind of coding frenzy by something which catches my eye.

I recently visited Chester, and as the photo shows, was struck by the clock apparently, at fisrt glance, having only one hand.

User Image

After walking round the old City walls, I returned the same way and the clock again seemed to have just a single hand, but moved forward a bit

Of course I quickly realized it was just that the hands were simple bars, and happened to be aligned.

My thought? EXACTLY what times of day does this happen? For instance ROUGHLY 02:40. But the minute hand hits 40 minutes at a time when the hour hand has moved well on the way towards 03 hours....

I quickly cobbled a program to print the hands-parallel and hands anti-parallel times, and added a GUI front end with real hands- but runnable at programmable speed and not in slow, real-time.

User Image

Probably two hours of fun. No real usefulness. But no other language I use would have allowed such rapid open-ended experimentation. I've greyed-out the calculated times so you can have fun coding it yourself- will put a page on my site after a while.
 
  Reply Quote Notify of replies

 8   General Board / Re: How to run liberty with wine?  on: Mar 24th, 2017, 2:25pm
Started by Charley | Post by tenochtitlanuk
I run LB and JB on Linux under Wine, have done for several years, and don't touch Windows for months on end. The LB installer should 'just run' and the only thing to watch for is that Ubuntu has different fonts to those expected as standard in Windows.
Click the LB installer and let us know if it didn't install!
 
  Reply Quote Notify of replies

 9   General Board / How to run liberty with wine?  on: Mar 24th, 2017, 2:12pm
Started by Charley | Post by Charley
Just made the move from Windows to Ubuntu 16.10 64 bit, but haven't yet figured out how to run LB on the new system. Still pretty new to linux. There was an included version of wine with the installed software, but either it won't play nice with LB or, more likely, I'm just not doing something right. Any advice on which wine to use and how to do it would be much appreciated.
Charley
 
  Reply Quote Notify of replies

 10   Novice / Re: Get Keypress Without Focus  on: Mar 24th, 2017, 07:42am
Started by Tasp2 | Post by Rod
When I say state, I mean history, you will get a negative value if the key has been pressed since you last asked, a positive value if it is currently down. and a smaller negative value if it has been pressed in the past and is currently down. Simplest thing is to look for non zero.
 
  Reply Quote Notify of replies


Rules|Home|Help|Search|Recent Posts|Notification



Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls