Search found 46 matches

by Sergey
Thu Aug 28, 2025 1:18 pm
Forum: Coding Questions
Topic: Input of floating point numeric number in a window
Replies: 8
Views: 809

Re: Input of floating point numeric number in a window

Axolotl wrote: Mon Aug 25, 2025 12:42 pm If you are on windows and not afraid of using API maybe this can be a start
Also need a check, only one ',' char may be used :wink:
by Sergey
Mon Aug 25, 2025 11:15 am
Forum: Coding Questions
Topic: Input of floating point numeric number in a window
Replies: 8
Views: 809

Re: Input of floating point numeric number in a window

Code: Select all

input.s = InputRequester("Enter a float number", "Float:", "")
If input
	float.f = ValF(input)	
	Debug "Float is " + StrF(float)
Else
	Debug "Canceled"
EndIf
Without checking of introduced characters
by Sergey
Mon Aug 25, 2025 10:47 am
Forum: Game Programming
Topic: Volumetric clouds [CODE]
Replies: 24
Views: 1530

Re: Volumetric clouds [CODE]

I can't control the camera, it constantly turns to the right. The arrows keys don't fart
Clouds look very beautiful. PureBasic 6.21 (Windows - x64)
by Sergey
Sat Aug 02, 2025 10:02 am
Forum: Coding Questions
Topic: window With no Title And With no taskbar icon?
Replies: 11
Views: 537

Re: window With no Title And With no taskbar icon?

Olli wrote: Tue Jul 29, 2025 4:56 pm No window title, no taskbar.
Ha, ha, ha ... really, no title, no taskbar :D
by Sergey
Sat Jul 12, 2025 10:21 am
Forum: Coding Questions
Topic: Order of JSON items
Replies: 9
Views: 684

Re: Order of JSON items


Hello Sergey,

your example does not work in my case.
I want to get the name in the same order as it is written, but I get Tom, Michel, Peter.

I gave you an idea how to order object members list
See Mijikai's exmaple


Interesting, here is what i came up with.

Hello, Mijikai. Yes, that's ...
by Sergey
Fri Jul 11, 2025 11:29 pm
Forum: The PureBasic Editor
Topic: IDE Tool "Jump to Marker"
Replies: 20
Views: 1997

Re: IDE Tool "Jump to Marker"

Code: Select all

CompilerIf Not #PB_Compiler_DPIAware
	MessageRequester("Warning", "Enable DPIAware", #PB_MessageRequester_Warning)
	End
CompilerEndIf
Simple check for DPIAware :wink:
by Sergey
Fri Jul 11, 2025 5:47 pm
Forum: Coding Questions
Topic: Order of JSON items
Replies: 9
Views: 684

Re: Order of JSON items

Input$ = "{ " + Chr(34) + "x" + Chr(34) + ": 10, " +
Chr(34) + "y" + Chr(34) + ": 20, " +
Chr(34) + "z" + Chr(34) + ": 30 }"

ParseJSON(0, Input$)
ObjectValue = JSONValue(0)

If ExamineJSONMembers(ObjectValue)
While NextJSONMember(ObjectValue)
Debug Str(JSONMemberValue(ObjectValue ...
by Sergey
Thu Jul 10, 2025 7:09 pm
Forum: Coding Questions
Topic: Order of JSON items
Replies: 9
Views: 684

Re: Order of JSON items

I'm used a pointer to json object in memory (from min to max), maybe this help you order json members :wink:
by Sergey
Thu Jul 10, 2025 5:00 am
Forum: The PureBasic Editor
Topic: IDE Tool "Jump to Marker"
Replies: 20
Views: 1997

Re: IDE Tool "Jump to Marker"

Michael Vogel, there 2 versions of source code
Second version starts at line 412 :wink:
Thanks, useful tool
by Sergey
Sat Jun 21, 2025 9:41 pm
Forum: Windows
Topic: WaitThread problem
Replies: 7
Views: 880

Re: WaitThread problem

Mijikai, very very nice! You're a genius! Thank you, now works fine.
I never used PostEvent and didn't know about its existence :)
by Sergey
Sat Jun 21, 2025 7:52 pm
Forum: Windows
Topic: WaitThread problem
Replies: 7
Views: 880

Re: WaitThread problem

Hi, jacdelad
This is a example, not working program

1) start_thread run once
2) how can I change listicon during the thread?
3) this is done specifically to show that the execution of WaitThread
does not allow to change the contents of the ListIconGadget

Procedure thread(param)
Delay(1000 ...
by Sergey
Sat Jun 21, 2025 6:26 pm
Forum: Windows
Topic: WaitThread problem
Replies: 7
Views: 880

WaitThread problem

Hi,
when I want to change listicon text in thread it becomes unlimited
Just comment line 3 and all will be ok, multithreading is enabled
PB6.21 final Win10 x64
Both codes WaitThread or While-Wend are freezing

Procedure thread(thread_param)
Delay(1000)
SetGadgetItemText(0, 0, "Wait")
Delay(1000 ...
by Sergey
Thu Mar 27, 2025 12:58 am
Forum: Coding Questions
Topic: Image not showing in window with ImageGadget
Replies: 5
Views: 270

Re: Image not showing in window with ImageGadget

Hi,
1) UsePNGImageDecoder() at the beginning
2) ImageID(Img_SplashScreen)
And all will be ok ;-)
by Sergey
Tue Mar 11, 2025 5:25 pm
Forum: General Discussion
Topic: Exchange on Face recognition and Face comparison
Replies: 8
Views: 1426

Re: Exchange on Face recognition and Face comparison

dige wrote: Tue Mar 11, 2025 10:04 am Wow, that's fantastic!
Recognizing faces, age, emotion etc. works very well.
I knew that you would like it
It also very simple to use
And it has many face detectors, try each of them

I wish you success in the adaptation of DeepFace on Purebasic 8)
by Sergey
Mon Mar 10, 2025 9:33 pm
Forum: General Discussion
Topic: Exchange on Face recognition and Face comparison
Replies: 8
Views: 1426

Re: Exchange on Face recognition and Face comparison

Yes, you're may run deepface on Python
https://github.com/serengil/deepface
Last released on Aug 17, 2024

Works well, every model about 500 MB (gender, race, age)
And maybe anybody transfer this project to PB once