topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 2:41 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: easy toggle between Priority to Programs / Background Services  (Read 8326 times)

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
This may be a little difficult for me to explain, I am afraid, because I hardly know the Danish terms and certainly not the English. But I got to ask myself: Do I feel lucky? And just now the answer is Yes, punk!

Most of the time it suits me fine to have Vista giving priority to the programs. But I have more than 6.000 images in a single folder, and to wait for Vista to refresh the thumbnails is a p@|n in the @$$. For this reason I would very much appreciate if it could be made easy to toggle between "Give priority to Programs" and "Give priority to Background Services". A simple AHK script.exe, maybe.

Please?

The option in Danish:

services.gif

« Last Edit: December 18, 2009, 10:40 AM by Curt »

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: IDEA: easy toggle between Priority to Programs / Background Services
« Reply #1 on: December 18, 2009, 12:22 PM »
This freebie may be promising:

http://www.optionalr...orityControl_STATIC/


Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: IDEA: easy toggle between Priority to Programs / Background Services
« Reply #2 on: December 18, 2009, 01:00 PM »
Thanks, but as far as I can understand it merely gives priority to programs, applications. The same job my Task Manager already is doing.

A priority control application sets the base priority for a specified application. An application with a high priority takes precedence over lower priority applications.

If you go to Control Panel >System >Advanced > Performance >Settings >Advanced, you will see the box from my image. Here you can change if Windows should have the processor weight applications or background services the most. This is the setting I want to toggle in an easy manner; per default it is buried way too deep.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: IDEA: easy toggle between Priority to Programs / Background Services
« Reply #3 on: December 18, 2009, 01:10 PM »
Press Windows-Pause key.  Click Advanced System Settings.  At least that goes on Vista.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: IDEA: easy toggle between Priority to Programs / Background Services
« Reply #4 on: December 18, 2009, 02:24 PM »
(edit: hang on... got to debug this a bit.  Trying to open that tab in control panel applet with AutoIt3 script.)

Okay, I couldn't figure out how to jump to tabs using the keyboard so I extrapolated until I got relative mouse coords.  You might have to change the numbers for MouseClick depending on your screen res(I use 1280x1024.)  But see if this AutoIt3 works:

AutoItSetOption("MouseCoordMode",0)
Run("RunDll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3")
Sleep(250)
Send("{Space}")
Sleep(250)
MouseClick("primary",102,44)

Also if the dialog opens but not to the correct window or tab try adjusting the numbers in the Sleep() call.  The number is milliseconds.  I'm using 1/4 second delay.  Seems to work for most windows on my machines.
« Last Edit: December 18, 2009, 02:55 PM by MilesAhead »

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: IDEA: easy toggle between Priority to Programs / Background Services
« Reply #5 on: December 18, 2009, 04:10 PM »
Wow, Miles, you really are ahead! (sorry!!!) Even though I have 1024x768 I didn't even have to change the mouse-clicks! Thank You!!

Also interesting to learn a little about au3... I have never been in contact with autoit before, so I had to first surf for info.  ;)

----
"requests that have been implemented"  :up:
« Last Edit: December 18, 2009, 04:22 PM by Curt »

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: IDEA: easy toggle between Priority to Programs / Background Services
« Reply #6 on: December 18, 2009, 04:39 PM »
They have their similarities and differences.  From what I understand AHK branched off from AutoIt2.  AutoIt3 got away from the comma syntax. AutoIt3 syntax is more like basic or Rexx and it's just easier for me to figure out how to do what I want with it.  AHK makes doing mouse hotkey stuff easier so I tend to use it when that need arises.  I just wish I could mix them easily. I'd love to use some of my AutoIt3 dialogs and functions in AHK.  But that would be cheating!!




SleepingWolf

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 118
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: easy toggle between Priority to Programs / Background Services
« Reply #7 on: December 19, 2009, 06:10 PM »
Okay, I couldn't figure out how to jump to tabs using the keyboard

Try using the keys Ctrl-Tab to jump from one tab to the next, with shift to go backwards if nec.
-------------------------------------------

Question everything, use a fact-checker.
Respect yourself and respect others.
Peace out!
« Last Edit: December 19, 2009, 06:12 PM by SleepingWolf »

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: IDEA: easy toggle between Priority to Programs / Background Services
« Reply #8 on: December 19, 2009, 09:01 PM »
Most of the time it suits me fine to have Vista giving priority to the programs. But I have more than 6.000 images in a single folder, and to wait for Vista to refresh the thumbnails is a p@|n in the @$$. For this reason I would very much appreciate if it could be made easy to toggle between "Give priority to Programs" and "Give priority to Background Services". A simple AHK script.exe, maybe.
Huh? :huh:

Changing that settings afaik only changes the timeslice threads get before another get scheduled... does that really matter wrt. loading image thumbnails?

(To do any benchmarking, you'd have to reboot the machine to exclude disk cache from the equation)
- carpe noctem

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: IDEA: easy toggle between Priority to Programs / Background Services
« Reply #9 on: December 19, 2009, 10:09 PM »
Okay, I couldn't figure out how to jump to tabs using the keyboard

Try using the keys Ctrl-Tab to jump from one tab to the next, with shift to go backwards if nec.

Thanks for the info. I thought I tried all the permutations.  Guess I could have looked up the hotkey list.  But that would be cheating.  Besides, 1 mouse click did the trick.

« Last Edit: December 19, 2009, 10:12 PM by MilesAhead »