Search found 1509 matches

by Marc56us
Thu Jun 05, 2025 9:49 am
Forum: Announcement
Topic: PureBasic 6.21 is out !
Replies: 169
Views: 35935

Re: PureBasic 6.21 beta 10 is out !



...
PS. For the next version, please change the help background color to white (like the help of SB): that pale old yellow (and Courrier font for sample) ...
Please don't change background to white!
I like this warm color and it's better for your (and my) eyes.

...
makes the help look like an ...
by Marc56us
Thu Jun 05, 2025 8:30 am
Forum: Announcement
Topic: PureBasic 6.21 is out !
Replies: 169
Views: 35935

Re: PureBasic 6.21 beta 10 is out !

I can not install the software (Win 11 64bit).
Message "security protection" occurs as usual.
But now, can not be clicked away (further information... -> run anyway) anymore.
Anyone else having this problem?
No problem installing it on Windows 11. The usual Windows Defender message, but the rest ...
by Marc56us
Thu Jun 05, 2025 8:09 am
Forum: Coding Questions
Topic: how to make a mp3 file from the output of my morse code program?
Replies: 8
Views: 1252

Re: how to make a mp3 file from the output of my morse code program?


I made a program that make morse code sounds... and sends an certain text to the loudspeaker of the computer.
i like to put this signals into a mp3 file , so i can send it by mail to other persons ( who likes to learn morse code)

PB can play mp3 files (with LoadMovies lib) , but cannot create ...
by Marc56us
Thu Jun 05, 2025 8:04 am
Forum: Coding Questions
Topic: coding with sound for morse program
Replies: 11
Views: 1088

Re: coding with sound for morse program


How can i put < SOLVED> in the title ??

You can edit your articles (and their titles) by clicking on the “pencil” icon in the top right-hand corner.
If you are unable to do so, click on the exclamation mark (still top right) and this will alert the moderators who will make the change.
You can ...
by Marc56us
Wed Jun 04, 2025 2:47 pm
Forum: Coding Questions
Topic: coding with sound for morse program
Replies: 11
Views: 1088

Re: coding with sound for morse program

Hi,

If you just want to make Morse code and use Windows, use the Beep_ command: it's faster and lighter than loading a sound file.

This is the classic Beep or Sound command that exists in many languages, but not natively in PB (why?), so we use the system API. Beep_ (A command suffixed with an ...
by Marc56us
Tue Jun 03, 2025 8:47 am
Forum: Linux
Topic: Debugging question
Replies: 14
Views: 2320

Re: Debugging question

Hi,

I want to create debugging symbols in the binary, so I can debug with gdb. This is a server , so I want it to crash and then automatically restart while running under systemd (I can have it generate a core file).

That's fine for research, but a server application shouldn't rely on its own ...
by Marc56us
Wed May 21, 2025 12:30 pm
Forum: Coding Questions
Topic: Adding text and signature on down of PDF document [Resolved]
Replies: 11
Views: 661

Re: Adding text and signature on down of PDF document

I'm surprised a freeware not exist about this subject :shock:
Xpdf command line tools
pdftopng.exe
NAME
pdftopng - Portable Document Format (PDF) to Portable Network Graphics
(PNG) converter (version 4.05)

SYNOPSIS
pdftopng [options] PDF-file PNG-root

DESCRIPTION
Pdftopng converts ...
by Marc56us
Mon May 05, 2025 3:20 pm
Forum: Coding Questions
Topic: EditorGadget() clears the clipboard when the program ends
Replies: 23
Views: 1342

Re: EditorGadget() clears the clipboard when the program ends

Windows 10 x64 with Windows clipboard : Same a RalfP and only with Notepad
breeze4me +1
by Marc56us
Mon May 05, 2025 3:00 pm
Forum: The PureBasic Editor
Topic: Previous & Next buttons
Replies: 3
Views: 2401

Re: Previous & Next buttons

I wish there was a shortcut or anyway to add 2 buttons to the IDE, which can take you to the Previous Edited Code & Last one, same as in many IDs.
Better than many IDE, this exist in PB, this is the Session history

https://www.purebasic.com/documentation/reference/images/ide_sessionhistory.png ...
by Marc56us
Fri May 02, 2025 9:27 am
Forum: Coding Questions
Topic: ListView : how to identify line that is RIGHT-clicked ?
Replies: 9
Views: 843

Re: ListView : how to identify line that is RIGHT-clicked ?

Code: Select all

mouse_event_(#MOUSEEVENTF_...
Thank you!
I'm putting this in my notes, it will come in handy for other projects.
:wink:
by Marc56us
Fri May 02, 2025 8:37 am
Forum: Coding Questions
Topic: ListView : how to identify line that is RIGHT-clicked ?
Replies: 9
Views: 843

Re: ListView : how to identify line that is RIGHT-clicked ?

Hi,
And I just can't figure out how to determine the line number on which the user RIGHT-clicks.
You can't do that with Listview (as far as I know)
Use ListIconGadget() instead.
; Blue April 2025 - code snippet courtesy of PB Help file, modified
EnableExplicit
If 0 = OpenWindow(0, 0, 0, 270, 140 ...
by Marc56us
Sat Apr 26, 2025 7:31 am
Forum: Coding Questions
Topic: RunProgramm cmd.exe Example
Replies: 9
Views: 1410

Re: RunProgramm cmd.exe Example


I believe you also could call the command directly like this:

RunProgram("copy", "C:\text.txt D:\text.txt", "")


(I dont know about windows though, but i'm pretty sure i've called terminal commands like that with Linux.)


If parameters contains spaces, you need to use quotes

In Linux (all ...
by Marc56us
Fri Apr 25, 2025 5:09 pm
Forum: Coding Questions
Topic: RunProgramm cmd.exe Example
Replies: 9
Views: 1410

Re: RunProgramm cmd.exe Example


; needs admin mode
RunProgram("cmd.exe","/C copy "+~"\""+"C:\my text.txt"+~"\" \""+"C:\my text2.txt"+~"\"","",#PB_Program_Wait|#PB_Program_Hide)


With ~ " " you can simplify (A single tild is enough)
Debug "/C copy "+~"\""+"C:\my text.txt"+~"\" \""+"C:\my text2.txt"+~"\""
Debug ~"/C copy \"C ...
by Marc56us
Fri Apr 25, 2025 2:48 pm
Forum: Linux
Topic: Console program does not end after terminal is closed!
Replies: 8
Views: 2988

Re: Console program does not end after terminal is closed!

It also depends on how the PB program was launched.
If it was launched from an already open shell and you want to close it too, send the shell command un*x “ exit ” (or Ctrl+D).
by Marc56us
Fri Apr 25, 2025 2:41 pm
Forum: Coding Questions
Topic: RunProgramm cmd.exe Example
Replies: 9
Views: 1410

Re: RunProgramm cmd.exe Example


it mostly depends on what you are planning to do...
In this case you posted i would use CopyFile instead of opening a console ;)

RunProgram("cmd.exe", Parameter$, WorkDir$) is the minimum... the example in the docs are ok with it.

ups....

RunProgram("cmd.exe", "copy C:\text.txt D:\text.txt ...