PDA

View Full Version : question about windows task manager please



maliko2bxl
03-04-2010, 04:16 PM
hello everybody I'm on a project and I wanted to know how to make a process RealTime see the picture below



do not pay attention to my english lol

http://www.saidia-sat.com/process1.png

thank you has you

Scriptonite
03-04-2010, 06:36 PM
You can make an app that will monitor processes in real time. I would recommend searching the forum for examples and check the help file for System.EnumerateProcesses. There are numerous examples on the forum here that will help get you started. Start a project and post back as you need help.

maliko2bxl
03-04-2010, 06:50 PM
You can make an app that will monitor processes in real time. I would recommend searching the forum for examples and check the help file for System.EnumerateProcesses. There are numerous examples on the forum here that will help get you started. Start a project and post back as you need help.

thank you for the answer I searched the forum but I did not find much. I want to click a button on my processes set proprity realtime please can you help me

maliko2bxl
03-05-2010, 07:45 AM
I await your help please

Sakuya
03-05-2010, 08:11 AM
thank you for the answer I searched the forum but I did not find much. I want to click a button on my processes set proprity realtime please can you help me

This example should show you how to set the priority to High.

Use this as a reference for what to change Process and Thread (look at the script in the "Set to high" label.) to.


Process Thread
------- ------
RealTime : 256 15
High : 128 2
AboveNormal: 32768 1
Normal : 32 0
BelowNormal: 16384 -1
Idle : 64 -2
Lowest : N/A -15

Thanks to Jassing for the SW_HIDE technique for File.Run.

maliko2bxl
03-05-2010, 08:45 AM
This example should show you how to set the priority to High.

Use this as a reference for what to change Process and Thread (look at the script in the "Set to high" label.) to.


Process Thread
------- ------
RealTime : 256 15
High : 128 2
AboveNormal: 32768 1
Normal : 32 0
BelowNormal: 16384 -1
Idle : 64 -2
Lowest : N/A -15

Thanks to Jassing for the SW_HIDE technique for File.Run.


It's really cool it's really helped me thank you very much
in my project the process will myproject.exe is what I can do with this case or if you have a ready expemle you can post and a really big thank you

Sakuya
03-05-2010, 10:41 AM
It's really cool it's really helped me thank you very much
in my project the process will myproject.exe is what I can do with this case or if you have a ready expemle you can post and a really big thank you

This might work.


local PID = 0;

for K, V in pairs(System.EnumerateProcesses()) do
if (String.SplitPath(V).Filename..String.SplitPath(V) .Extension == "myproject.exe") then
PID = K;
end
end

-- Process: 128, Thread: 2 = High Priority.
local Process = "128";
local Thread = "2";

File.Run("AutoPlay\\Docs\\SetPriority.exe", "-p"..Process.." -t"..Thread.." "..PID, _SourceFolder, -1, false)

maliko2bxl
03-05-2010, 11:01 AM
This might work.


local PID = 0;

for K, V in pairs(System.EnumerateProcesses()) do
if (String.SplitPath(V).Filename..String.SplitPath(V) .Extension == "myproject.exe") then
PID = K;
end
end

-- Process: 128, Thread: 2 = High Priority.
local Process = "128";
local Thread = "2";

File.Run("AutoPlay\\Docs\\SetPriority.exe", "-p"..Process.." -t"..Thread.." "..PID, _SourceFolder, -1, false)


je sais pas comment je vous remercier vraiment beaucoup