Search found 267 matches

by THCM
Tue Jan 03, 2023 2:18 pm
Forum: Feature Requests and Wishlists
Topic: Spline Lib without Engine3D
Replies: 3
Views: 382

Re: Spline Lib without Engine3D

Thx, I've already seen your thread. It's still the same code? I had to remove the Vector3 structure, since it throwed an error that the structure is already defined.
by THCM
Tue Jan 03, 2023 9:16 am
Forum: Feature Requests and Wishlists
Topic: Spline Lib without Engine3D
Replies: 3
Views: 382

Spline Lib without Engine3D

I'm using the spline lib for a small path generating tool and would like to ask, if it's possible to make the lib work as standalone and remove the need for InitEngine3D()?
by THCM
Sun Dec 27, 2020 6:37 pm
Forum: Tricks 'n' Tips
Topic: Handle an external program via stdin/out/error
Replies: 46
Views: 13178

Re: Handle an external program via stdin/out/error

Thx a lot for your help! Using your various code examples and hints I got my java tool running from a hidden cmd console now. Here's an excerpt: DOS = RunProgram(ComSpec.s,"","",#PB_Program_Open | #PB_Program_Read | #PB_Program_Write | #PB_Program_Error ) If DOS Repeat Delay(10) ...
by THCM
Fri Dec 25, 2020 9:14 pm
Forum: Tricks 'n' Tips
Topic: Handle an external program via stdin/out/error
Replies: 46
Views: 13178

Re: Handle an external program via stdin/out/error

Hi infratec,

nice code example, but how can I check in the window event loop if a program called from cmd has ended and exited with error code: 0?
by THCM
Sat Oct 03, 2020 1:18 pm
Forum: Coding Questions
Topic: RunProgram Java tool multiple times in the same instance
Replies: 13
Views: 2401

Re: RunProgram Java tool multiple times in the same instance

@ZX80 Both of your examples seem to work. Is it possible to open a hidden console window? Does it close automatically after exiting the purebasic app?
by THCM
Sat Oct 03, 2020 1:05 pm
Forum: Coding Questions
Topic: RunProgram Java tool multiple times in the same instance
Replies: 13
Views: 2401

Re: RunProgram Java tool multiple times in the same instance

I tried your example and it works if the execution time is short enough for the selected delay, but how can I check if the called program is finished? The exectution time ist more than a few seconds and differs a lot from PC to PC and the selected conversion data I called. You made one big mistake: ...
by THCM
Tue Sep 15, 2020 3:49 pm
Forum: Coding Questions
Topic: RunProgram Java tool multiple times in the same instance
Replies: 13
Views: 2401

Re: RunProgram Java tool multiple times in the same instance

I did some tests and can't get it work as I wanted: If OpenWindow(0, 320, 320, 422, 250, "DOS-Output", #PB_Window_SystemMenu) EditorGadget(0, 8, 8, 406, 233) DOS = RunProgram(GetEnvironmentVariable("comspec"), "/k", "", #PB_Program_Open | #PB_Program_Read | #P...
by THCM
Sat Sep 05, 2020 9:45 pm
Forum: Coding Questions
Topic: RunProgram Java tool multiple times in the same instance
Replies: 13
Views: 2401

Re: RunProgram Java tool multiple times in the same instance

Nice to see THCM using PB! And kinda hoping this is C64 related ;) MDG forever! <3 *tips hat* Yes, I‘m using Purebasic for more than 17 years now, but only from time to time and mainly for small tools generating c64 demostuff. Still WIP is my THCMod Protracker Converter written in Purebasic and I‘v...
by THCM
Sat Sep 05, 2020 6:35 pm
Forum: Coding Questions
Topic: RunProgram Java tool multiple times in the same instance
Replies: 13
Views: 2401

Re: RunProgram Java tool multiple times in the same instance

The program is open the whole time.
by THCM
Sat Sep 05, 2020 6:16 pm
Forum: Coding Questions
Topic: RunProgram Java tool multiple times in the same instance
Replies: 13
Views: 2401

Re: RunProgram Java tool multiple times in the same instance

I thought about using OpenConsole, but I wasn't sure if this works from a windows gui app. Your suggestion would be using RunProgram with cmd.exe and sending my commands using WriteProgramStringN?
by THCM
Sat Sep 05, 2020 6:02 pm
Forum: Coding Questions
Topic: RunProgram Java tool multiple times in the same instance
Replies: 13
Views: 2401

RunProgram Java tool multiple times in the same instance

Hi, I'm running a Java tool to convert data multiple times from my Purebasic app. When I run the Java tool from the windows shell only the first run is quite slow (more than 10 seconds). All following runs in the same shell window are a lot faster, running nearly instant. Running the Java tool from ...
by THCM
Fri Feb 07, 2014 12:01 pm
Forum: Announcement
Topic: Programming 2D Scrolling Games Book - Free Now
Replies: 12
Views: 15527

Re: Programming 2D Scrolling Games Book - Free Now

Thx a lot! By the way G Data Antivirus says there's a virus in your k2dmapmaker.zip.
by THCM
Tue Oct 01, 2013 1:42 pm
Forum: Tricks 'n' Tips
Topic: 3D Blending Mode Tester
Replies: 1
Views: 1844

Re: 3D Blending Mode Tester

Nice ;)
by THCM
Tue Sep 17, 2013 3:22 pm
Forum: Announcement
Topic: PureBasic 5.20 LTS is out (Rockstar release)
Replies: 78
Views: 32671

Re: PureBasic 5.20 LTS is out (Rockstar release)

Thx for Your great work! Just sent a small donation... more will follow later!