Search found 31 matches

by rory-games
Sun Nov 27, 2022 7:18 am
Forum: Coding Questions
Topic: huge memory leak in my game dll
Replies: 9
Views: 490

Re: huge memory leak in my game dll

hmm, the leak still seems to occur. The most insane things about this is it's not like it's a minimal leak. It's maybe from 20 to 100 mb per second, or sometimes more. I have never seen something like this in my 3 years with pb.
by rory-games
Sat Nov 26, 2022 11:26 pm
Forum: Coding Questions
Topic: huge memory leak in my game dll
Replies: 9
Views: 490

Re: huge memory leak in my game dll

Aha, I see now. Much thanks! :D
by rory-games
Sat Nov 26, 2022 10:42 am
Forum: Coding Questions
Topic: huge memory leak in my game dll
Replies: 9
Views: 490

huge memory leak in my game dll

Hello, I have made a game dll in PureBasic, to have menus, edit boxes, and a few other things. If it looks strange, it is just for audiogames. I would like to use this dll in python. In PureBasic, all the functions work fine, with no problem, however in python, a huge memory leak occurs. Here is my ...
by rory-games
Fri Jul 10, 2020 11:25 am
Forum: Coding Questions
Topic: my programs have been decompiled!
Replies: 5
Views: 1161

my programs have been decompiled!

hi,
a malicious hacker recently got into my servers and withdrew an EXE file of an extremely private network program that leads to our remote console.
He then proceeded to decompile it, extracting pure basic sourcecode.
How can I protect future code from this?
by rory-games
Fri Jul 10, 2020 6:56 am
Forum: Game Programming
Topic: sound3d appears to be reversed
Replies: 4
Views: 2213

Re: sound3d appears to be reversed

ok now I'm just confused; maybe I'll provide code later when I remember how to use sound3d, xd
by rory-games
Thu Jul 09, 2020 9:33 am
Forum: Game Programming
Topic: sound3d appears to be reversed
Replies: 4
Views: 2213

sound3d appears to be reversed

hi all
from what I can tell, making x increase causes sounds to go to the left, rather than to the right. This is a little irritating; any way to reverse it?
by rory-games
Tue Jul 07, 2020 8:48 am
Forum: The PureBasic Editor
Topic: case correction inside quotes
Replies: 10
Views: 6815

case correction inside quotes

This has been a pressing concern for a while now, and it's getting really annoying, so I figured I may as well post about it here. Let's say I have a string for a button that is called "back to main screen" Well, pure basic randomly capitalized the To, but sometimes it did and sometimes no...
by rory-games
Fri Jun 12, 2020 12:02 pm
Forum: Coding Questions
Topic: Using PushKey() in webgadget how to select all, cut paste?
Replies: 3
Views: 1103

Re: Using PushKey() in webgadget how to select all, cut past

sorry, that last post didn't work properly

Code: Select all

keybd_event_(#VK_LCONTROL,0,0,0)
keybd_event_(#VK_A,0,0,0)
keybd_event_(#VK_LCONTROL,0,#KEYEVENTF_KEYUP,0)
keybd_event_(#VK_A,0,#KEYEVENTF_KEYUP,0)
by rory-games
Fri Jun 12, 2020 11:59 am
Forum: Coding Questions
Topic: Using PushKey() in webgadget how to select all, cut paste?
Replies: 3
Views: 1103

Re: Using PushKey() in webgadget how to select all, cut past

oh, and I forgot to say, just replace the #vk_a with #vk_c for copy, #vk_x for cut, and #vk_v for paste, #vk_z for undo if you need that too.
by rory-games
Fri Jun 12, 2020 11:58 am
Forum: Coding Questions
Topic: Using PushKey() in webgadget how to select all, cut paste?
Replies: 3
Views: 1103

Re: Using PushKey() in webgadget how to select all, cut past

try this, win API only, sorry

Code: Select all

keybd_event_(#vk_a,0,#keyeventf_keyup,0)
by rory-games
Fri Jun 12, 2020 11:52 am
Forum: Tricks 'n' Tips
Topic: shuffle string with optional shuffledness parameter
Replies: 1
Views: 922

shuffle string with optional shuffledness parameter

you can shuffle a string! And the shuffledness parameter will make it more or less shuffled. ;------- ;shuffle string procedure with optional shuffledness parameter by rb studios Procedure.s shufflestring(string.s,shuffledness=50) finalstring.s="" Dim chars.s(Len(string)-1) For i = 0 To Le...
by rory-games
Thu Jun 11, 2020 10:45 am
Forum: Coding Questions
Topic: accept user input into macro?
Replies: 1
Views: 654

accept user input into macro?

hi, I want to for example write a macro that pastes in something like
If variable1 {whatuserentered} variable2
;some random stuff
EndIf
by rory-games
Tue May 26, 2020 6:51 am
Forum: Coding Questions
Topic: safely including the compiler
Replies: 5
Views: 1339

Re: safely including the compiler

I suppose that makes sense; however would there be a way to stream strings of code into the currently running program, perhaps with an optional line number?
by rory-games
Tue May 26, 2020 5:38 am
Forum: Coding Questions
Topic: safely including the compiler
Replies: 5
Views: 1339

Re: safely including the compiler

but basically what I'm saying is this if I wrote a script that changed code into pb code, and used the compiler to compile it, would that be allowed?
by rory-games
Tue May 26, 2020 3:13 am
Forum: Coding Questions
Topic: safely including the compiler
Replies: 5
Views: 1339

safely including the compiler

hi, Is there any way I could do something like this? CreateFile(0,"helloworld.pb") WriteStringN(0,"MessageRequester("+#dquote$+"hello"+#dquote$+","+#dquore$+"world"+#dquote$+")") CloseFile(0) ReplaceExecutableWithCodeFromFile("/hellowo...