Jump to content

CPU throttle up?


Recommended Posts

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)

Link to comment
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

Link to comment
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
How about Quad? muttley

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

Edited by Alienware
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...