Search found 342 matches

by Fig
Sat Nov 18, 2023 6:37 pm
Forum: Game Programming
Topic: Draw image to screen with transparency
Replies: 9
Views: 867

Re: Draw image to screen with transparency

You juste have one monitor, but do you happen to have more than one windows desktop ?
by Fig
Tue Nov 14, 2023 9:22 pm
Forum: Tricks 'n' Tips
Topic: Openai (ChatGPT) from PB
Replies: 20
Views: 2359

Re: Openai (ChatGPT) from PB

Hi,
I tried it...
How long does it take to get an answer ?

It very very slow... more than 10 minutes !!
Can we get the answer letter by letter like in chatgpt instead of the whole long one ?
by Fig
Mon Sep 06, 2021 6:40 pm
Forum: Coding Questions
Topic: ISO weeknumber
Replies: 10
Views: 2301

Re: ISO weeknumber

Sorry, Mickael, your code is wrong, I just discovered it today (I was using your snipet in a software ^^)
Today we are in the 35 week and your snipet gives 36...

Too bad, your solution was pretty elegant... :wink:
by Fig
Sat Jun 05, 2021 11:03 pm
Forum: Coding Questions
Topic: [Resolved] Enlarge image without distorting it
Replies: 14
Views: 1770

Re: Enlarge image without distorting it

If you want to decode a QRCode from a picture (scan, photo...), I suggest you use ZBAR in command line for that purpose...
by Fig
Thu Apr 29, 2021 5:19 pm
Forum: Coding Questions
Topic: my new robot BASIC COMPILER keyboard problem ...
Replies: 4
Views: 996

Re: my new robot BASIC COMPILER keyboard problem ...

It may help you https://www.purebasic.fr/french/viewtop ... er#p194979
You can use a keyboardhook cf Zorro post.
by Fig
Fri Apr 09, 2021 7:39 pm
Forum: Game Programming
Topic: Raycasting engine help
Replies: 5
Views: 5119

Re: Raycasting engine help

First video: (2d raycasting)
https://www.youtube.com/watch?v=TOEi6T2mtHo
second one: (3d raycasting following the previous video)
https://www.youtube.com/watch?v=vYgIKn7iDH8

He is very easy to understand and it's very easy to convert in Pb.
I like this channel.
by Fig
Sun Mar 21, 2021 8:37 am
Forum: Coding Questions
Topic: Resize Windows and make scrollbar appear ? [Solved]
Replies: 21
Views: 2254

Re: Resize Windows and make scrollbar appear ?

Rashad, you basically answered. I struggle all the time explaining my problem in english, my apologies... :oops:

Exactly what I was looking for Danilo, thank you !
by Fig
Sat Mar 20, 2021 8:24 pm
Forum: Coding Questions
Topic: Resize Windows and make scrollbar appear ? [Solved]
Replies: 21
Views: 2254

Resize Windows and make scrollbar appear ? [Solved]

Hi, I would like to make scroll bars from scrollareagadget() appear when I make the window smaller. (manual resizing) How do I get this effect ? If OpenWindow(0, 0, 0, 1920, 1080, "test", #PB_Window_Maximize | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_BorderLess | ...
by Fig
Thu Feb 18, 2021 7:20 pm
Forum: Coding Questions
Topic: App executed from network on multiple computers
Replies: 2
Views: 980

App executed from network on multiple computers

Hi, I have many questions... My app (executable) run on mutliple computers from a local network. It actually access a database. 1/How can I update the current program ? I need to erase it to change it. Should I poll every x minute a specific table in data to close each program if needed ? ie When I ...
by Fig
Mon Feb 15, 2021 9:06 pm
Forum: Game Programming
Topic: Conway's game of life in music
Replies: 2
Views: 6771

Re: Conway's game of life in music

Here is the code... I lost the music's sample and padlock sprite I am sorry. :cry: https://i58.servimg.com/u/f58/18/23/59/70/conway10.jpg Sx.i=800:Sy.i=600 If InitSound()=0 Or InitSprite() = 0 Or InitKeyboard() = 0 Or InitMouse() = 0 Or OpenWindow(0, 0, 0, Sx,Sy, "Conway's music right Clic to n...
by Fig
Thu Jan 21, 2021 7:31 pm
Forum: Coding Questions
Topic: InputRequester() 2 lines text ?
Replies: 9
Views: 1540

Re: InputRequester() 2 lines text ?

Thank you all for your answers !
It's always a pleasure to see how nice you are.

It really helped me out. :idea:
by Fig
Sun Jan 17, 2021 6:35 pm
Forum: Coding Questions
Topic: InputRequester() 2 lines text ?
Replies: 9
Views: 1540

InputRequester() 2 lines text ?

Is there a trick to make InputRequester() display 2 lines of text ?

Code: Select all

InputRequester("test","THIS IS A LONG TEXT."+Chr(10)+"IS THERE ANY WAY YOU CAN SEE IT IN FULL ???","")
by Fig
Thu Dec 03, 2020 5:59 pm
Forum: Coding Questions
Topic: Sqlite using LIKE % with SetDatabaseString
Replies: 4
Views: 1212

Re: Sqlite using LIKE % with SetDatabaseString

Nice tips !

Thank you all, it's clearer for me now ! :D
by Fig
Wed Dec 02, 2020 9:32 pm
Forum: Coding Questions
Topic: Sqlite using LIKE % with SetDatabaseString
Replies: 4
Views: 1212

Sqlite using LIKE % with SetDatabaseString

Hi, I would like to use the LIKE %? with SetDatabaseString() Is it possible ? UseSQLiteDatabase() Procedure CheckDatabaseUpdate(Database, Query$) Result = DatabaseUpdate(Database, Query$) If Result = 0 Debug DatabaseError() EndIf ProcedureReturn Result EndProcedure DatabaseFile$ = GetTemporaryDirect...
by Fig
Mon Nov 30, 2020 6:33 pm
Forum: Announcement
Topic: PureBasic 5.73 LTS is available
Replies: 103
Views: 65839

Re: PureBasic 5.73 LTS is available

Thank you so much for tabs instead of spaces !! :D