Quote (AbDuCt @ Feb 25 2014 02:05pm)
No you typed some nonsensical 10 year old boy sentence ("BECAUSE I NEED HALP") and a quick blurb about what you are trying to do only after Minko poked and probed you about what you were even attempting to do. Also forcing the game to sleep is not a solution this will cause frame drops and periods of unresponsiveness most likely causing disconnections from battle.net.
The game isnt sleeping the script is....
@.@
Code
$i = 0
$ary = 1..500000000
Do
{
$ary[$i]
$i=1
$Process = Get-Process Game
if($Process.ProcessorAffinity -ne 1)
{
Write-Host "#ProcessorAffinity was not equal to 1, changing to 1."
$instances = Get-Process Game
foreach ($i in $instances)
{
$i.ProcessorAffinity=1
sleep 2
$time = Get-Date
Write-Host "Diablo 2 changed to core 1 at $time"
}
}
} until ($i -eq 500000000)
What i have so far.
however it still doesnt detect the core it is on, and then change it.
it just changes it no matter what.