Sign in to follow this  
Followers 0
Triblade

CPU throttle up?

7 posts in this topic

#1 ·  Posted (edited)

I'd like a AutoIt program/UDF that can throttle CPU speed.

I can't find the right words in English, but I'd like to make my own GUI around a CPU speed throtteler.

When a slider, dial or button is used the process speed goes up to a max of 100%.

Possible with multicore support.

I know there are external programs like CPUkiller out there that does the same thing I want, but I hope to see this in AutoIt.

This is to test my own idea's and thoughs about threads, processors and balancing in Citrix PS.

Edit:

Sooo, anyone knows how this can be achieved? muttley

Edited by Triblade

My active project(s): A-maze-ing generator (generates a maze)

My archived project(s): Pong3 (Multi-pinger)

Share this post


Link to post
Share on other sites



ummm, why do you need something like this? serious question. It would seem to me that the only useful thing one could do with this is to slow a PC down to cause harm, or you have a REAL old game that gets out of wack due to the high clock speed.

Share this post


Link to post
Share on other sites

On a single core chewing 100% cpu time is an easy task, not sure on a dual core cpu though

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$hGUI = GUICreate("CPU Thrasher - Hold a left click down on a control.", 420, 150)
GUICtrlCreateSlider(10, 10, 200, 28)
GUICtrlCreateButton("Hold Me Down", 10, 48, 100, 30)
GUISetState()

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $GUI_EVENT_CLOSE
            Exit
        Case Else
            Local $GGCI = GUIGetCursorInfo($hGUI)
            While ($GGCI[4] <> 0 And $GGCI[2])
                $GGCI = GUIGetCursorInfo($hGUI)
            WEnd
    EndSwitch
WEnd

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

On a single core chewing 100% cpu time is an easy task, not sure on a dual core cpu though

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$hGUI = GUICreate("CPU Thrasher - Hold a left click down on a control.", 420, 150)
GUICtrlCreateSlider(10, 10, 200, 28)
GUICtrlCreateButton("Hold Me Down", 10, 48, 100, 30)
GUISetState()

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $GUI_EVENT_CLOSE
            Exit
        Case Else
            Local $GGCI = GUIGetCursorInfo($hGUI)
            While ($GGCI[4] <> 0 And $GGCI[2])
                $GGCI = GUIGetCursorInfo($hGUI)
            WEnd
    EndSwitch
WEnd
How about Quad? muttley

On my Quad-Core it only goes up to 7-8%

Edited by Alienware

Share this post


Link to post
Share on other sites

How about Quad? muttley

On my Quad-Core it only goes up to 7-8%

You must be using an AMD, if that be an intel quad then it's only make 2% ~ 3% usage..lmao

j/k :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0