Thank you for catching that Piero.
I added ~ to correct that. Does not fix the graphical issue but I am now sending a Propper quoted path of a working directory to RunProgram now.
GetGadgetItemText(#field, GetGadgetState(#field)) returns a directory name that contains spaces.
I guess I had already ...
Search found 198 matches
- Mon Oct 14, 2024 1:17 am
- Forum: Coding Questions
- Topic: Trouble with runprogram
- Replies: 3
- Views: 575
- Sun Oct 13, 2024 4:01 pm
- Forum: Coding Questions
- Topic: Trouble with runprogram
- Replies: 3
- Views: 575
Trouble with runprogram
When I use this
RunProgram(~"\".\\installs\\" + GetGadgetItemText(#field, selected) + ~"\\Vintagestory.exe\"", ~"--dataPath=\"userData\"", ".\\installs\" + GetGadgetItemText(#field, selected))
The game opens but only renders the top left quarter of the game in the top left quarter of the screen ...
RunProgram(~"\".\\installs\\" + GetGadgetItemText(#field, selected) + ~"\\Vintagestory.exe\"", ~"--dataPath=\"userData\"", ".\\installs\" + GetGadgetItemText(#field, selected))
The game opens but only renders the top left quarter of the game in the top left quarter of the screen ...
- Sun Oct 13, 2024 3:39 am
- Forum: Coding Questions
- Topic: Window position and size just before maximize
- Replies: 7
- Views: 1171
Re: Window position and size just before maximize
oh I am a dummy.
found it.
the following change now works along with the code you gave me. Thank you.
Procedure quiting()
WritePreferenceInteger("wx", wx)
WritePreferenceInteger("wy", wy)
WritePreferenceInteger("ww", ww)
WritePreferenceInteger("wh", wh)
WritePreferenceInteger("wm ...
found it.
the following change now works along with the code you gave me. Thank you.
Procedure quiting()
WritePreferenceInteger("wx", wx)
WritePreferenceInteger("wy", wy)
WritePreferenceInteger("ww", ww)
WritePreferenceInteger("wh", wh)
WritePreferenceInteger("wm ...
- Sun Oct 13, 2024 3:28 am
- Forum: Coding Questions
- Topic: Window position and size just before maximize
- Replies: 7
- Views: 1171
Re: Window position and size just before maximize
Thanks,
I see how that should work for me but then I guess I still am messing things up.
I will post my program before it get much bigger for review if you dare try to follow my insane code style.
maybe you can spot it. It won't run as is due to other files not included. Sorry.
EnableExplicit ...
I see how that should work for me but then I guess I still am messing things up.
I will post my program before it get much bigger for review if you dare try to follow my insane code style.
maybe you can spot it. It won't run as is due to other files not included. Sorry.
EnableExplicit ...
- Sun Oct 13, 2024 12:27 am
- Forum: Coding Questions
- Topic: Window position and size just before maximize
- Replies: 7
- Views: 1171
Window position and size just before maximize
I am trying to save a windows x, y and width, height into integers just before maximization, so the window can be restore capable after application restart if closed while maximized.
I thought there would be an event that could be accessed just before maximize when the maximize gadget is pressed ...
I thought there would be an event that could be accessed just before maximize when the maximize gadget is pressed ...
- Thu Jun 06, 2024 9:17 am
- Forum: Announcement
- Topic: PureBasic 6.11 LTS is out !
- Replies: 70
- Views: 39931
Re: PureBasic 6.11 LTS is out !
Got the PureBasic 6.11 LTS for Linux (Ubuntu 20.04 or 22.04 - x64)
IDE says it is still Beta 3
IDE says it is still Beta 3
- Wed May 22, 2024 9:48 am
- Forum: Coding Questions
- Topic: Minimized window and programrunning
- Replies: 6
- Views: 932
Re: Minimized window and programrunning
The only thing I think I would personally change with your code would be the line -
SetWindowState(#FenetreWindows, #PB_Window_Minimize)
TO -
If FileSize(NomDuJeuSelectionne + ".exe") > 0 : SetWindowState(#FenetreWindows, #PB_Window_Minimize) : EndIf
For the off chance your game EXE doesn't ...
SetWindowState(#FenetreWindows, #PB_Window_Minimize)
TO -
If FileSize(NomDuJeuSelectionne + ".exe") > 0 : SetWindowState(#FenetreWindows, #PB_Window_Minimize) : EndIf
For the off chance your game EXE doesn't ...
- Mon May 20, 2024 10:09 pm
- Forum: Coding Questions
- Topic: Minimized window and programrunning
- Replies: 6
- Views: 932
Re: Minimized window and programrunning
Have you tried the #PB_Program_Wait flag with RunProgram ?
1) launch button gets pressed and calls your procedure with game path and name passed into it
2) DisableWindow(#Window, #True)
3) HideWindow(#Window, #True)
4) Result = RunProgram(Filename$ [, Parameter$, WorkingDirectory$ [, #PB ...
1) launch button gets pressed and calls your procedure with game path and name passed into it
2) DisableWindow(#Window, #True)
3) HideWindow(#Window, #True)
4) Result = RunProgram(Filename$ [, Parameter$, WorkingDirectory$ [, #PB ...
- Sun Apr 07, 2024 1:56 pm
- Forum: Coding Questions
- Topic: Dual Support PB604 and PB610 Identification
- Replies: 14
- Views: 2637
Re: Dual Support PB604 and PB610 Identification
Endless variations are possible... :wink:
[…]
oh yes.
Endless obfuscations too.
But, as i commented above, I’m still in awe of the intellectual contorsions.
It takes a code acrobat to come up with something like this, and I’ve always envied acrobats.
Does being skilled at inserting a foot ...
- Sun Apr 07, 2024 1:27 pm
- Forum: Tricks 'n' Tips
- Topic: [Source] Restore Windows for OpenScreen() [Windows OS]
- Replies: 2
- Views: 978
Re: [Source] Restore Windows for OpenScreen() [Windows OS]
This is great,
The compiler flag for DPI awareness can not be on or strange things happen.
But who needs a full screen app to be dpi aware anyway? (rhetorical)
however if there was a way to switch it off in code one could have a startup dialog dpi aware beforehand? (This ONE does not know)
I was ...
The compiler flag for DPI awareness can not be on or strange things happen.
But who needs a full screen app to be dpi aware anyway? (rhetorical)
however if there was a way to switch it off in code one could have a startup dialog dpi aware beforehand? (This ONE does not know)
I was ...
- Mon Apr 01, 2024 11:51 pm
- Forum: Coding Questions
- Topic: start an app when windows starts
- Replies: 16
- Views: 3339
Re: start an app when windows starts
Thank you HexOR
- Mon Apr 01, 2024 5:51 pm
- Forum: Coding Questions
- Topic: start an app when windows starts
- Replies: 16
- Views: 3339
Re: start an app when windows starts
It seams this does not work with latest PureBasic and windows 10/11 ?
I need an application I am writing for my elderly mother, and need to be able for the app to enable or disable itself auto starting on user login.
via .lnk in GetUserDirectory(#PB_Directory_ProgramData) + "Microsoft\Windows ...
I need an application I am writing for my elderly mother, and need to be able for the app to enable or disable itself auto starting on user login.
via .lnk in GetUserDirectory(#PB_Directory_ProgramData) + "Microsoft\Windows ...
- Fri Mar 15, 2024 2:14 am
- Forum: Tricks 'n' Tips
- Topic: Object Theme Library (for Dark or Light Theme)
- Replies: 72
- Views: 19841
Re: Object Theme Library (for Dark or Light Theme)
Thank you so much for this ChrisR !
- Wed Mar 13, 2024 4:35 pm
- Forum: Announcement
- Topic: PureBasic Portable 1.55 (win)
- Replies: 80
- Views: 29184
Re: PureBasic Portable 1.55 (win)
Small update abandoning ChrisR's "ObjectColor.pbi" in favor of ChrisR's "ObjectTheme.pbi"
- Tue Oct 17, 2023 2:36 pm
- Forum: Coding Questions
- Topic: numeric constants and the Step of for/next
- Replies: 5
- Views: 926
Re: numeric constants and the Step of for/next
I am embarrassing myself once again.
I am pretty sure I can accomplish this with while/wend
I am sorry.
I am pretty sure I can accomplish this with while/wend
I am sorry.