Aassdd Posted March 12, 2008 Share Posted March 12, 2008 I have this code: Local $title = WinGetTitle("[Active]") Local $process = WinGetProcess($title) Local $msgbox = MsgBox(3 + 32, "Process priority", "Change priority of " & $title & " [" & $process & "] to realtime?") If $msgbox = 6 Then ProcessSetPriority($process, 5) ElseIf $msgbox = 7 Then ProcessSetPriority($process, 4) EndIf It works very good but in the MsgBox, instead of (e.g) notepad.exe (at $process text) it shows some random numbers. Not only for notepad, for any program. Why? Link to comment Share on other sites More sharing options...
DjDeep00 Posted March 12, 2008 Share Posted March 12, 2008 (edited) @Aassdd...The random number you are talking about is the PID...You need to use the function _ProcessGetName ( $iPID) to get the process name. Edited March 12, 2008 by DjDeep00 Link to comment Share on other sites More sharing options...
Aassdd Posted March 12, 2008 Author Share Posted March 12, 2008 Oh sorry, didn't know. Thank you.Can anyone help here? http://www.autoitscript.com/forum/index.php?showtopic=66246 Link to comment Share on other sites More sharing options...
d4rk Posted March 12, 2008 Share Posted March 12, 2008 Oh sorry, didn't know. Thank you.Can anyone help here? http://www.autoitscript.com/forum/index.php?showtopic=66246 nice offer [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys 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