Search found 849 matches

by grindstone
Jul 12, 2021 10:21
Forum: General
Topic: Read and write clipboard (Linux and Windows)
Replies: 30
Views: 3495

Re: Read and write clipboard (Linux and Windows)

adeyblue wrote:You now have a third party library in your project that you don't understand
Do you consider the WIN API a third party library? And hey, is anybody here who really understands that API ?
by grindstone
Jul 08, 2021 10:12
Forum: Windows
Topic: How to EDIT the value of an existing string
Replies: 7
Views: 1855

Re: How to EDIT the value of an existing string

Maybe this snippet fits your needs. I once wrote it to edit predefined strings. Through the years it grew and grew, so meanwhile, for the purpose you requested, it's got some overhead, but it can still simply edit an existing string. Just ignore the several modes and the callback option if you don't...
by grindstone
Jun 25, 2021 13:00
Forum: Hardware Interfaces / Communication
Topic: BCD Conversion #Define(s)
Replies: 14
Views: 7224

Re: BCD Conversion #Define(s)

In the file "tool.htm" of the link you posted you can find an explaination of the data format. So here, quick and dirty, without having a closer look at the C programs (and without guarantee), a first attempt of a conversion program: Dim As String g Dim As Integer gi Dim As String _bobS = ...
by grindstone
Jun 24, 2021 12:26
Forum: Hardware Interfaces / Communication
Topic: BCD Conversion #Define(s)
Replies: 14
Views: 7224

Re: BCD Conversion #Define(s)

Hello Flyzone. The conversion shouldn't be rocket science, as soon as I know the destination format. From a first glance I suppose the data of the file has to be converted to IBM's punched card format, but that's only a guess. So could you post a link to (at least) one of the C translation programs ...
by grindstone
Jun 23, 2021 10:02
Forum: Projects
Topic: Collisions simulator
Replies: 5
Views: 1533

Re: Collisions simulator

badidea wrote:The total energy (Etot) should always be the same, but it is fluctuating a bit. Maybe an error (error due to wall collisions?).
Rather due to rounding errors caused by the "float"-type variables.
by grindstone
May 26, 2021 14:40
Forum: Beginners
Topic: Return information from a Shell
Replies: 17
Views: 2131

Re: Return information from a Shell

jj2007 wrote:It works, Grindstone, but I suspect OP wants to do more with the returned stuff. Like e.g.

Code: Select all

MyString=ShellString("ProcessMyData.exe /quickly")
In this case I would recommend to use "OPEN PIPE" like speedfixer suggested.
by grindstone
May 26, 2021 8:26
Forum: Beginners
Topic: Return information from a Shell
Replies: 17
Views: 2131

Re: Return information from a Shell

Redirecting the console's output is quite simple: As an example, first compile this by the name of "TestShell" : Print "Hello World" Then, as the calling program, compile and run this in the same directory: Print "Shell response: "; Shell "TestShell.exe 2>&1&qu...
by grindstone
May 05, 2021 8:02
Forum: Community Discussion
Topic: There is no reason anyone would want a computer in their home.
Replies: 11
Views: 1639

Re: There is no reason anyone would want a computer in their home.

Very strange. My old-fashioned analogue scale has exactly the same issue. Maybe not only the global average temperature is rising, but also the gravity...
by grindstone
May 03, 2021 14:16
Forum: Community Discussion
Topic: There is no reason anyone would want a computer in their home.
Replies: 11
Views: 1639

Re: There is no reason anyone would want a computer in their home.

counting_pine wrote:...there are some cases where 1024 chickens would be preferable.
Rice fields are usually plowed by a flock of ducks.
by grindstone
May 03, 2021 8:51
Forum: Community Discussion
Topic: There is no reason anyone would want a computer in their home.
Replies: 11
Views: 1639

Re: There is no reason anyone would want a computer in their home.

badidea wrote:I fotgot the comuter in my washing machine and weight measuring scale, but that last one seems broken anyway.
Due to overload? *grin*
by grindstone
Apr 09, 2021 7:26
Forum: Beginners
Topic: Exiting from ASM
Replies: 7
Views: 1193

Re: Exiting from ASM

Jumping to an empty line seems inelegant, if not illogical. Then just use the NOP (=No Operation) statement: Dim bytvar As Byte Dim bstatus As Byte Do Input "Enter a byte value (0 to quit): ", bytvar If bytvar = 0 Then Exit Do End If ' If bytvar = 1, then Status = 1, else Status = 0 ASM c...
by grindstone
Apr 05, 2021 17:24
Forum: Beginners
Topic: Controlling transistors via usb
Replies: 10
Views: 1859

Re: Controlling transistors via usb

On the other hand: The capability of accessing USB by FB -analogue to GetMouse or GetJoystick would be a nice feature.
by grindstone
Mar 30, 2021 15:40
Forum: General
Topic: Inkey issue in console on rmb
Replies: 17
Views: 1707

Re: Inkey issue in console on rmb

Works also on XP.
by grindstone
Mar 30, 2021 10:53
Forum: General
Topic: Inkey issue in console on rmb
Replies: 17
Views: 1707

Re: Inkey issue in console on rmb

Same behaviour on WinXP if "Quick Edit" is on (switched off by default here). Very funny!
by grindstone
Mar 30, 2021 9:07
Forum: General
Topic: Inkey issue in console on rmb
Replies: 17
Views: 1707

Re: Inkey issue in console on rmb

I can't reproduce that. Performing any mouse action, nothing happens (just as it ought to be). What OS are you using and what version of FB?