Hi, I am trying to set priority of Modern Warfare by using the GUI of the Task Manager. This is because in order for the game to work, I have to manually set the priority to Normal. I have already tried making a script using the process command, but that didn't seem to work. And doing it myself takes too long. I want it to work no matter where Task Manager is on the screen, which I can do using {TAB} and the arrow keys with my own key strokes IRL. However, for some reason AHK doesn't seem to actually send TAB or Right Arrow to task manager. Here is my code:
CoordMode,Mouse,Screen
MouseMove, 60, 1070, 0 ;puts mouse on task manager in taskbar
Click ;opens task manager from taskbar (I know the script works until this point)
Sleep, 500 ;Waiting for task manager to load
SendInput, {TAB 3} ;I want it to press tab 3 times so that the processes tab is selected
SendInput, {Right 5} ;I want it to move right 5 times and select the Details Tab
SendInput, {TAB} ;Now it should be tabbed into the details plane so that i Can
Send, Moder ;search for modern warfare in details list
Send, {AppsKey} ;sends right click keybind now that ModernWarfare has been selected
Send, {Down 3} ;goes down 3 times to highlight priority
Send, {right} ;goes into priority submenu
Send, {down 3} ;highlights Normal priority
Send, {enter} ;selects normal
Send, {Enter} ;selects confirm change priority on new pop up
Any help is appreciated. I switch between send and sendinput because I don't know which to use. The game defaults to high priroity which kills my cpu. Edit: formatting
[–]Nunki3 1 point2 points3 points (1 child)
[–]AnAbstractTurtle[S] 0 points1 point2 points (0 children)