Search found 82 matches
- Thu Sep 11, 2025 2:01 pm
- Forum: Tricks 'n' Tips
- Topic: Get current UNIX UTC time (Windows)
- Replies: 7
- Views: 310
Re: Get current UNIX UTC time (Windows)
I'm currently using PureBasic 5.73 LTS (Windows - x86), as newer versions of Purebasic are a disaster with some of the software I've developed. I haven't had the opportunity to test out any new functions, such as DateUTC().
- Thu Sep 11, 2025 3:13 am
- Forum: Tricks 'n' Tips
- Topic: Get current UNIX UTC time (Windows)
- Replies: 7
- Views: 310
Get current UNIX UTC time (Windows)
Here is a function to get the current UNIX UTC time in seconds as a quad integer value. This should be year 2038 safe.
Procedure.q GetUnixTime()
; Get the number of seconds since January 1, 1970 12:00am UTC as a 64 bit quad integer.
; Use https://www.unixtimestamp.com/ to test.
; REFERENCE: https ...
Procedure.q GetUnixTime()
; Get the number of seconds since January 1, 1970 12:00am UTC as a 64 bit quad integer.
; Use https://www.unixtimestamp.com/ to test.
; REFERENCE: https ...
- Wed Mar 26, 2025 10:22 am
- Forum: Tricks 'n' Tips
- Topic: OpenB3D 3D DLL framework include file for PureBasic
- Replies: 25
- Views: 16324
Re: OpenB3D 3D DLL framework include file for PureBasic
Here's a HTML documentation file I created for OpenB3D: http://freehandyscripts.com/stuff/OpenB3DHelp.html
You should be able to download the file by right-clicking on it and using the 'Save As', 'Save linked content', etc. option. Or open the HTML source code and save that to a HTML file.
You should be able to download the file by right-clicking on it and using the 'Save As', 'Save linked content', etc. option. Or open the HTML source code and save that to a HTML file.
- Mon Jun 10, 2024 3:39 am
- Forum: The PureBasic Editor
- Topic: SUGGESTION: Add 'Do not save' context menu option for <new> tabs.
- Replies: 0
- Views: 2097
SUGGESTION: Add 'Do not save' context menu option for <new> tabs.
I often use <new> tabs in the editor for temporary testing code, and I tend to keep these open in case I want to redo or utilize the test code. The problem with this is that every time I do a 'Save all' I get pestered to save the temporary tab.
What I would like is if there was a 'Do not save ...
What I would like is if there was a 'Do not save ...
- Thu Apr 20, 2023 12:39 am
- Forum: The PureBasic Editor
- Topic: Suggestion: Add a link to the 'Examples' folder as a 'Help' menu item.
- Replies: 1
- Views: 1323
Suggestion: Add a link to the 'Examples' folder as a 'Help' menu item.
This discussion ~
https://www.purebasic.fr/english/viewtopic.php?p=599510#p599510
~ had me checking for a reliable dedicated link to the 'Examples' folder in the editor and help files. I couldn't find one, which is sub-optimal as browsing those examples provides many good opportunities for ...
https://www.purebasic.fr/english/viewtopic.php?p=599510#p599510
~ had me checking for a reliable dedicated link to the 'Examples' folder in the editor and help files. I couldn't find one, which is sub-optimal as browsing those examples provides many good opportunities for ...
- Fri Jul 15, 2022 1:24 pm
- Forum: Tricks 'n' Tips
- Topic: OpenB3D 3D DLL framework include file for PureBasic
- Replies: 25
- Views: 16324
Re: OpenB3D 3D DLL framework include file for PureBasic
The screen resolution shouldn't be an issue, as you are using windowed mode which doesn't have the limitations that fullscreen has.
Try putting some numbered 'Debug' statements in there to see if you can identify the line that is causing the crash.
Try putting some numbered 'Debug' statements in there to see if you can identify the line that is causing the crash.
- Thu Jun 09, 2022 1:04 am
- Forum: Tricks 'n' Tips
- Topic: OpenB3D 3D DLL framework include file for PureBasic
- Replies: 25
- Views: 16324
Re: OpenB3D 3D DLL framework include file for PureBasic
OpenB3D is based on Blitz3D and uses most of the same commands. You can find Blitz3D along with usage docs and examples at the links below.
https://kippykip.com/b3ddocs/commands/index.htm | https://blitzresearch.itch.io/blitz3d | https://nitrologic.itch.io/blitz3d
https://kippykip.com/b3ddocs/commands/index.htm | https://blitzresearch.itch.io/blitz3d | https://nitrologic.itch.io/blitz3d
- Fri Apr 29, 2022 6:43 am
- Forum: Tricks 'n' Tips
- Topic: Function to create a grayscale version of an image
- Replies: 6
- Views: 1395
Re: Function to create a grayscale version of an image
Thanks for the replies. I've updated the original post with your suggestions.
- Thu Apr 28, 2022 9:45 am
- Forum: Tricks 'n' Tips
- Topic: Function to create a grayscale version of an image
- Replies: 6
- Views: 1395
Function to create a grayscale version of an image
[Edited to fix issues discussed below.]
This function will create a grayscale version of the specified input image and output it via the output image. See the comments in the function for more information.
; Converts the pixels in 'input_image' to grayscale and stores them in 'output_image'. The ...
This function will create a grayscale version of the specified input image and output it via the output image. See the comments in the function for more information.
; Converts the pixels in 'input_image' to grayscale and stores them in 'output_image'. The ...
- Sun Feb 06, 2022 2:11 pm
- Forum: Feature Requests and Wishlists
- Topic: IDE Shortcut to Jump to declaration and Jump to calls
- Replies: 4
- Views: 1215
Re: IDE Shortcut to Jump to declaration and Jump to calls
To add to this suggestion, I'd like to see the F1 key ability to jump to any global identifier declaration (eg. the initial declaration point for global variables, arrays, linked lists, structures, procedures, etc).
Generally, I add comments to the point where a global element is declared to ...
Generally, I add comments to the point where a global element is declared to ...
- Thu Feb 03, 2022 3:27 am
- Forum: Tricks 'n' Tips
- Topic: OpenB3D 3D DLL framework include file for PureBasic
- Replies: 25
- Views: 16324
Re: OpenB3D 3D DLL framework include file for PureBasic
I don't think OpenB3D has a command that supports unpacking a model file from RAM. It has options for building 3D mesh geometry manually though, so you can still write your own command to do this. That's probably not something you may wish to do, but the option still exists if it is useful to you ...
- Sun Jan 30, 2022 2:15 pm
- Forum: Tricks 'n' Tips
- Topic: OpenB3D 3D DLL framework include file for PureBasic
- Replies: 25
- Views: 16324
Re: OpenB3D 3D DLL framework include file for PureBasic
The last update was 15 hours ago, so not really a dead project ( https://sourceforge.net/projects/minib3d/files/ ). It's only intended to be a small framework for hobbyists and indies though, so the dev probably largely considers it a completed project.
- Fri Jan 28, 2022 9:05 am
- Forum: Tricks 'n' Tips
- Topic: OpenB3D 3D DLL framework include file for PureBasic
- Replies: 25
- Views: 16324
Re: OpenB3D 3D DLL framework include file for PureBasic
Question... Why use this library instead of the integrated one (Ogre3D)?
1/ I needed to do some overdraw rendering which involves preventing the renderer from clearing the color buffer. OpenB3d and Blitz3D support this via the CameraClsMode command, and Ogre3D also supports it. The Purebasic ...
1/ I needed to do some overdraw rendering which involves preventing the renderer from clearing the color buffer. OpenB3d and Blitz3D support this via the CameraClsMode command, and Ogre3D also supports it. The Purebasic ...
- Thu Jan 13, 2022 1:06 am
- Forum: Tricks 'n' Tips
- Topic: Functions to get the elapsed millisecond and second times since the start of 2020
- Replies: 6
- Views: 1621
Re: Functions to get the elapsed millisecond and second times since the start of 2020
I don't get why you return a 32-bit value instead of 64 bit. I also don't get why you need this for a random seed. You simply can use CryptRandom() for that purpose. It returns a real random number. :)
There are two functions. One is designed to return millisecond values via a quad integer and ...
- Wed Jan 12, 2022 12:23 pm
- Forum: Tricks 'n' Tips
- Topic: Send keyboard input to Google Chrome browser using SendInput.
- Replies: 6
- Views: 5262
Re: Send keyboard input to Google Chrome browser using SendInput.
Added some new commands:-
; "FIRST-PAGE" - Open a new Chrome browser tab page (CONTROL-1).
; "NEXT-PAGE" - Move to the next Chrome browser tab page (CONTROL-TAB).
; "CLOSE-PAGE" - Close the current Chrome browser tab page (CONTROL-W).
; "TAB-DELAY" - Sets the millisecond delay to use between ...
; "FIRST-PAGE" - Open a new Chrome browser tab page (CONTROL-1).
; "NEXT-PAGE" - Move to the next Chrome browser tab page (CONTROL-TAB).
; "CLOSE-PAGE" - Close the current Chrome browser tab page (CONTROL-W).
; "TAB-DELAY" - Sets the millisecond delay to use between ...