MrAsker Posted April 21, 2008 Share Posted April 21, 2008 Hey guys i experimented some days with autoit but now my question : Can someone gimme a sample script or is it even possible to create one that is doing this: select a process and peed it up 10X or setable? If yes please post te code THX! Link to comment Share on other sites More sharing options...
Tapeworm Posted April 21, 2008 Share Posted April 21, 2008 (edited) dont know how to do it with a script, but one way to do it would be to press ctrl+alt+del > go to "processes" > select the process you want to speed up > right click > Set Priority (i do not recommend Realtime ). other than that, you can lower the graphic quality of the game or shut down other processes to speed the game up. OR you could upgrade your graphic card/cpu. Cant do that with script though Edited April 21, 2008 by tapeworm09 Link to comment Share on other sites More sharing options...
jennico Posted June 3, 2008 Share Posted June 3, 2008 (edited) well, sorry, but this is completely wrong !!!ProcessSetPriority --------------------------------------------------------------------------------Changes the priority of a processProcessSetPriority ( "process", priority)Parametersprocess The name or PID of the process to check. priority A flag which determines what priority to set0 - Idle/Low1 - Below Normal (Not supported on Windows 95/98/ME)2 - Normal3 - Above Normal (Not supported on Windows 95/98/ME)4 - High5 - Realtime (Use with caution, may make the system unstable) Return ValueSuccess: Returns 1. Failure: Returns 0 and sets @error to 1. May set @error to 2 if attempting to use an unsupported priority class.but this gives me an idea: why not write a script that generally gives priority to the active window's process ? in this way you could automatically speed up the process you are currently working on.e.g. set priority to ie while surfing, to the game while gaming, to word when writing a letter, to emule when not doing anything else....could be a good thing, you don't have to close other programs any more when your pc seems to be slow again, and so on.has this been done before ? when i find time, i will give that a try. doesn't seem to be difficult.cheersj. Edited June 3, 2008 by jennico Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
jennico Posted June 3, 2008 Share Posted June 3, 2008 (edited) just a rough beginning.... tested works fine. no gui so far. needs some improving. put it in your startup dir. ;---------------------------------------------- ; auto-priority.au3 by jennico (c) 2008 ;---------------------------------------------- Dim $old,$array=ProcessList() ; if used in startup folder you might add.... ;Sleep(300000) ; make a sleep on booting and wait..... ; at first set all to normal For $i=1 To $array[0][0] ProcessSetPriority($array[$i][1],2) Next ; now swap current process While 1 $PID=WinGetProcess("") If $PID>0 Then If $PID<>$old Then ProcessSetPriority($old,2); maybe 0 ? ProcessSetPriority($PID,4); maybe 5 ? $old=$PID EndIf EndIf Sleep(100); or whatever WEnd please tell me if this makes sense.... ! j. Edited June 3, 2008 by jennico Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now