Results 1 to 2 of 2

Thread: Switch Refresh Rate Depending On Got Focus?

  1. #1
    Senior Member crazyfool's Avatar
    Join Date
    Jan 2008
    Posts
    761
    Thanks
    77
    Thanked
    38 times in 38 posts
    • crazyfool's system
      • Motherboard:
      • Striker Extreme
      • CPU:
      • Q6600
      • Memory:
      • OCZ 6400 2 x 2GB
      • Storage:
      • Samsung Spinpoint 500GB
      • Graphics card(s):
      • BFG 8800 GT OC 512MB
      • PSU:
      • Coolermaster Real Power Pro 850w
      • Case:
      • Coolermaster CM-690
      • Operating System:
      • XP, Vista, Windows 7 & Ubuntu
      • Monitor(s):
      • Samsung 2232BW

    Switch Refresh Rate Depending On Got Focus?

    I dont know if this is possible but i thought i'd at least ask. i'm fairly new to programming but i can use java, vb and c++ well enough... basically i need to write a program that can execute keyboard commands such as ctrl+shift+1 when a certain program has focus... this isn't a project or anything like that but its actually for my htpc... i've had a quick google and cant find a program to do this that isn't free so i'm thinking maybe i can write my own... basically when powerdvd has focus i want to have keyboard commands executed to switch to the 24p profile and then if it doesn't have focus then switch back to the 50hz profile by a keyboard shortcut... All i actually want to know is, is this possible for a novice at programming and can anyone refer me to any instructions or guides i can could use... or not lol... yes or no will do...

  2. #2
    Senior Member manwithnoname's Avatar
    Join Date
    Dec 2005
    Posts
    1,050
    Thanks
    17
    Thanked
    26 times in 25 posts

    Re: Switch Refresh Rate Depending On Got Focus?

    In theory yes (I spend a few years programming with the WIN32 API my understanding of this suggests it should be possible, but technically I have not tried it) - I wouldn't try it as a novice.

    Read this some of this if you are feeling lucky http://msdn.microsoft.com/en-us/libr...90(VS.85).aspx

    GetForegroundWindow - some how you need to use this function determine if powerdvd is the foreground window (possibly using GetClassName)

    PostMessage - hopefully you can use this function to send the keyboard messages to the powerdvd window.

    Hopefully some else can suggest a better way to do it.
    Last edited by manwithnoname; 28-10-2008 at 08:59 PM. Reason: spelling and missing words added - and a couple removed

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Just supposing I had £5k to spend on a car...
    By nameinuse in forum Automotive
    Replies: 39
    Last Post: 28-01-2010, 05:52 PM
  2. Ok needs must and all that - mortgages?
    By MD in forum General Discussion
    Replies: 17
    Last Post: 19-09-2006, 03:36 PM
  3. Is this network switch borked or crud?
    By Proplus in forum Networking and Broadband
    Replies: 0
    Last Post: 09-05-2005, 10:37 PM
  4. TFT refresh rate irritation
    By rox0r in forum Graphics Cards
    Replies: 6
    Last Post: 17-02-2005, 12:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •