Search found 655 matches

by grindstone
Feb 17, 2020 17:05
Forum: Windows
Topic: Windows dock app launcher
Replies: 3
Views: 269

Re: Windows dock app launcher

AFAIK there's no direct way to get a window handle from the process name or -ID, you can only go the other direction. If you have a list of all processes, you can browse through all window(handle)s and look for a matching process name. I modified my snippet to set the notepad (if already running) to...
by grindstone
Jan 23, 2020 14:33
Forum: Windows
Topic: Windows dock app launcher
Replies: 3
Views: 269

Re: Windows dock app launcher

Hello geminis4941! This little snippet prints a list of all processes and the corresponding windows. #Include "windows.bi" #include "win/tlhelp32.bi" Const As Integer black = 0, blue = 1, green = 2, cyan = 3, red = 4, magenta = 5, _ brown = 6, ltgrey = 7, grey = 8, ltblue = 9, lt...
by grindstone
Jan 17, 2020 13:39
Forum: Community Discussion
Topic: Unable to access fb.net forums
Replies: 86
Views: 3527

Re: Unable to access fb.net forums

coderJeff wrote:As mentioned before, I will gladly accept suggestions for better question & answer.
What about a simple automatically generated mental arithmetic, maybe expressed in words instead of numbers, e.g. "Please enter the sum of fourty-five and twelve" ?
by grindstone
Dec 26, 2019 13:48
Forum: Community Discussion
Topic: Dry Christmas.
Replies: 14
Views: 611

Re: Dry Christmas.

@dodicat: Nice work!

Merry Christmas and a happy new year to all active and passive users of the forum!
by grindstone
Dec 23, 2019 18:43
Forum: General
Topic: Cant make FB Help start from FBEdit
Replies: 5
Views: 187

Re: Cant make FB Help start from FBEdit

"Win32" is the WinAPI reference.
PS: 1.05 is the last version of the Help?
I don't know. Personally, I'm using an ancient version of the german help, just as a reminder. If I need actual information, I call the Wiki.
by grindstone
Dec 23, 2019 17:45
Forum: General
Topic: iteration, recursion
Replies: 2
Views: 150

Re: iteration, recursion

The classic solution is a recursive calling Sub. I don't know what exactly you're intending to do, but up to a depth of 3 levels it works. Rem Calcul combinaisons de 3 elements dans un ensemble de nbe elements Dim k As Integer Dim k0 As Integer Dim k1 As Integer Dim k2 As Integer Dim k3 As Integer R...
by grindstone
Dec 23, 2019 15:25
Forum: General
Topic: Cant make FB Help start from FBEdit
Replies: 5
Views: 187

Re: Cant make FB Help start from FBEdit

Click "Options > Help Menu > Insert". Then determine a name for the help menu item and write the name of the help file including the full path into the "Command" - box.
by grindstone
Dec 11, 2019 22:39
Forum: General
Topic: How to let user define parameters <filename>.dat?
Replies: 2
Views: 151

Re: How to let user define parameters <filename>.dat?

For submitting command line options there's the COMMAND statement.
by grindstone
Dec 07, 2019 17:41
Forum: General
Topic: Preprocessor question
Replies: 17
Views: 584

Re: Preprocessor question

Very strange.

Code: Select all

#Define INC_LIB "..\_code_lib_new_

#Include Once INC_LIB\graphics_v02.bi"
works, while

Code: Select all

#Define INC_LIB "..\_code_lib_new_\

#Include Once INC_LIBgraphics_v02.bi"
throws an error.
by grindstone
Dec 06, 2019 14:55
Forum: General
Topic: Preprocessor question
Replies: 17
Views: 584

Re: Preprocessor question

There's indeed a trick to do so. First you have to rename your include directory to "_ code_lib_new_" with a space between the leading underscore and the rest of the name. Then you can code #Define INC_LIB "..\_ '#Define INC_LIB "_ #Include Once INC_LIB code_lib_new_\graphics_v02...
by grindstone
Nov 15, 2019 15:18
Forum: Game Dev
Topic: Controlling two characters at once
Replies: 3
Views: 235

Re: Controlling two characters at once

If using a multi-core-processor, it could help to do every calculation in an own thread.
by grindstone
Nov 08, 2019 13:26
Forum: Beginners
Topic: Why UBound doesnt take into account 0 reporting array size?
Replies: 6
Views: 299

Re: Why UBound doesnt take into account 0 reporting array size?

UBound notifies the upper bound (the uppermost index) of an array, not the total number of indices. E.g. array(20 to 22) will report a UBound value of 22, although there are only three indices (20, 21 and 22) available.
by grindstone
Oct 23, 2019 11:14
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 77
Views: 13515

Re: Audio library for FreeBasic - Features

Your thoughts make sense, I agree. Here some routines for amplification and normalizing with a little example, at the moment 32bit float only: Declare Function db (x As Single) As Single Declare Function ra (x As Single) As Single Declare Sub ampfloat (buffer As Single Ptr, bufsize As ULong, amplifi...
by grindstone
Oct 22, 2019 22:33
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 77
Views: 13515

Re: Audio library for FreeBasic - Features

I don't know what happened, but today the Wordpad trick works. Very strange... internally, in my library, WAV data are stored at 8 or 16 bit formats, mono or stereo, pcm uncompressed, with a fixed size header. As internal format I would strongly recommend 32bit float, just because this format provid...
by grindstone
Oct 21, 2019 18:25
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 77
Views: 13515

Re: Audio library for FreeBasic - Features

You're right, I'm using Windows. I know that Wordpad trick, but it doesn't work if there aren't any line breaks at all (no Chr(10), not even a space). Maybe I could contribute some routines for amplifying, normalizing and converting .WAVs (pcm and float, 16 and 32 bit), but I'd have to recode them u...

Go to advanced search