Search found 267 matches

by Hi-Toro
Fri Sep 12, 2025 5:53 am
Forum: Tricks 'n' Tips
Topic: Re: Get gpu temperature - Updated July 2011
Replies: 11
Views: 9412

Re: Get gpu temperature - Updated July 2011

Hi all, thanks to Doctorized in particular, but all others for their contributions here.

I was struggling to get any joy with NVAPI, but this has really helped.

The first post seems to include all of the fixes from when this was posted, but in PB 6.21 I had to make a couple of changes.



Used ...
by Hi-Toro
Sat Jul 12, 2025 7:35 pm
Forum: General Discussion
Topic: Windows 11 'Efficiency Mode'
Replies: 6
Views: 573

Re: Windows 11 'Efficiency Mode'

Updated to allow enabling/disabling, see first post with * UPDATED * notes.

You can pass a process ID (PID in Task Manager) to amend other programs' states (may be admin/user-dependent) or use GetCurrentProcessId_ () to set your own program's state.

The function is now:

SetEfficiencyMode ...
by Hi-Toro
Sat Jul 12, 2025 5:06 pm
Forum: General Discussion
Topic: Windows 11 'Efficiency Mode'
Replies: 6
Views: 573

Re: Windows 11 'Efficiency Mode'

Also, whoa... never seen this!

Code: Select all

Import ""
  SetProcessInformation.l(hProcess.l, ProcessInformationClass.l, *ProcessInformation, ProcessInformationSize.l)
EndImport
Interesting, will need to look into this option, thank you.
by Hi-Toro
Sat Jul 12, 2025 5:00 pm
Forum: General Discussion
Topic: Windows 11 'Efficiency Mode'
Replies: 6
Views: 573

Re: Windows 11 'Efficiency Mode'

Thanks for posting that -- I had to open the DLL as my version doesn't seem to include SetProcessInformation_, so sounds like it's been added in an update. I'll update mine soon!
by Hi-Toro
Sat Jul 12, 2025 3:00 am
Forum: General Discussion
Topic: Windows 11 'Efficiency Mode'
Replies: 6
Views: 573

Windows 11 'Efficiency Mode'

Hi all,

Just a quick test here, but seems to work for placing an application into what the Task Manager calls 'Efficiency mode' -- you can right-click a task, choose 'Efficiency mode' and it goes into a special low-resource usage state.

I wanted this as it seems to make a huge difference to ...
by Hi-Toro
Fri Mar 24, 2023 11:05 am
Forum: General Discussion
Topic: AddSysTrayIcon - ImageID always invalid
Replies: 3
Views: 715

Re: AddSysTrayIcon - ImageID always invalid

Aaaarrgghhhh! Thanks, PeDe! I knew it would be me -- I thought I was meant to pass the image handle, but I get it now, thank you.
by Hi-Toro
Fri Mar 24, 2023 5:10 am
Forum: General Discussion
Topic: AddSysTrayIcon - ImageID always invalid
Replies: 3
Views: 715

AddSysTrayIcon - ImageID always invalid

Hi all,

I haven't been here for a while, just not doing a lot of programming these days, but tonight I've run into this problem under PureBasic 5.70 LTS (Windows - x64): trying to load an icon (.ico) and use it with AddSysTrayIcon always fails for me, with " [ERROR] AddSysTrayIcon(): The specified ...
by Hi-Toro
Mon Jun 03, 2019 5:42 pm
Forum: Tricks 'n' Tips
Topic: List Taskbar buttons
Replies: 10
Views: 5790

Re: List Taskbar buttons

Thanks, BarryG, have updated first post with your code.

(It works on WIndows 7 too!)

Interestingly, while running a quick test, I immediately found a window that doesn't get picked up with either version: the main window of the Reaper DAW ( https://reaper.fm/ ), which appears otherwise standard ...
by Hi-Toro
Mon May 20, 2019 11:43 pm
Forum: 3D Programming
Topic: Physics - Airplane
Replies: 28
Views: 10164

Re: Physics - Airplane

Thanks, Kuron, interesting links. The source is assembly, though, so definitely not for me! Book looks interesting.

My project is only a simple arcade-style flight game, using basic forces/torque for "good enough" flight, but failing to handle stalling, which this does nicely.

I had a look last ...
by Hi-Toro
Sat May 18, 2019 5:09 pm
Forum: 3D Programming
Topic: Landscape v4
Replies: 25
Views: 17884

Re: Landscape v4

Amazing work.
by Hi-Toro
Sat May 18, 2019 4:59 pm
Forum: 3D Programming
Topic: Physics - Airplane
Replies: 28
Views: 10164

Re: Physics - Airplane

Thanks for posting this, and your other demos! I'm currently struggling with aircraft physics so will study this!

Really cool stuff.
by Hi-Toro
Thu Dec 29, 2016 5:59 pm
Forum: Off Topic
Topic: tool displaying win ids on mouseover
Replies: 20
Views: 12579

Re: tool displaying win ids on mouseover

You could adapt this to do something similar -- just run the list of windows through pid = FindWindowProcessID (window) to match window to process:



#TH32CS_SNAPHEAPLIST = $1
#TH32CS_SNAPPROCESS = $2
#TH32CS_SNAPTHREAD = $4
#TH32CS_SNAPMODULE = $8
#TH32CS_SNAPALL = #TH32CS_SNAPHEAPLIST | #TH32CS ...
by Hi-Toro
Sun Aug 21, 2016 2:01 pm
Forum: Announcement
Topic: PureBasic 5.50 final is out !
Replies: 132
Views: 75681

Re: PureBasic 5.50 final is out !

Only just seen this. Love the vehicle stuff! Thanks, Fred and co.
by Hi-Toro
Fri Feb 26, 2016 10:50 pm
Forum: Windows
Topic: FreeMemory crash with Registry subkey pointer
Replies: 6
Views: 7366

Re: FreeMemory crash with Registry subkey pointer

Ah, thanks, guys. I had no idea this was something I needed to take care of... I guess I assumed Windows was still using ASCII for all this stuff!

Works perfectly now, of course... will post my code if I get something useful out of it!

Much appreciated.
by Hi-Toro
Fri Feb 26, 2016 12:03 pm
Forum: Windows
Topic: FreeMemory crash with Registry subkey pointer
Replies: 6
Views: 7366

Re: FreeMemory crash with Registry subkey pointer

Ah, wasn't aware of #KEY_WOW64_64KEY / #KEY_WOW64_32KEY, will give this a go tonight -- many thanks for having a look, Rashad, really appreciate it!