Customizing the tx1000/tx2000 QuickPlay Buttons

Since I’ve had my tx2000, I’ve wanted a way to customize the QuickPlay buttons that are on the unit, but HP certainly doesn’t make it easy. After doing some reading online and stumbling on to the forum thread at TabletPCReview.com, along with doing a little research of my own (and thanks to the user "danegreat"), I’ve been able to figure out a method of using two programs Launch and AutoItv3 to assign any functionality within Windows Mobility Center (for Windows Vista) to the keys. In this example, I will be assigning the keys to control the screen brightness. Interested in how to do this for yourself? Well, read on!

  1. The first step you have to complete is to install the QuickPlay program from HP if you haven’t already.
  2. Download the programs I mentioned earlier, and for your convenience, here are the links to the download pages for Launch and AutoItv3.
  3. Extract the Launch program to your QuickPlay directory. I’m using Windows Vista x64 so my path is: "C:\Program Files (x86)\HP\QuickPlay\" yours will be similar.
  4. Rename launch.exe and launch.ini to QP.exe and QP.ini, respectively, and also copy the "C:\Program Files (x86)\AutoIt3\AutoIt3.exe" (32-bit) or "AutoIt3_x64.exe" (64-bit) into the HP QuickPlay directory.
  5. Now into QP.ini, type and save the following (replacing AutoIt3_64.exe with AutoIt3.exe if you are running a 32-bit version of Windows):

    [my_dvd]
    program=AutoIt3_x64.exe "C:\Program Files (x86)\HP\QuickPlay\AutoIt.au3"

    [root]
    program=AutoIt3_x64.exe "C:\Program Files (x86)\HP\QuickPlay\AutoIt2.au3"

    Once the QP.ini is saved with these commands, when the DVD QuickPlay button is pressed, the first AutoIt script (which I will be talking about shortly) "AutoIt.au3" will be run, while if the other QuickPlay button is pressed, the second script "AutoIt2.au3" will be run. This assumes that the scripts are located in the "C:\Program Files (x86)\HP\QuickPlay\" directory.

  6. Now all that is left to do is to create the scripts so open up notepad and type in:

    Run("mblctr.exe")
    WinWaitActive("Windows Mobility Center")
    ControlSend("Windows Mobility Center", "", "[CLASS:msctls_trackbar32; INSTANCE:1]", "{PGUP}")
    WinClose("Windows Mobility Center")

    Save this file as "AutoIt.au3" and copy it into the "C:\Program Files (x86)\HP\QuickPlay\" directory. Next, replace the {PGUP} in the script with {PGDN} and save the new file as "AutoIt2.au3" and put it in the directory.

  7. At this point, you should be able to press the QuickPlay buttons and adjust the screen brightness! Woohoo! There is a slight delay while the Mobility Center window flashes by, but overall it works like a charm. So how does the script work, you may ask? Well, each line in the script performs a different function. Line 1) Opens the Windows Mobility Center, Line 2) Waits for the window to become active, Line 3) Sends a keyboard command (either PGUP or PGDN) to the screen brightness slider, while Line 4) Closes the Windows Mobility Center.

    Windows Mobility Center

    Using the AutoIt Window Info tool allowed me to find the values I needed to fill in for the "ControlSend" function, which sends a keystroke {PGUP} or {PGDN} in this case, to the targeted windows control i.e. the brightness slider. If you are interested in learning more about customizing the QuickPlay buttons to suit your needs and edit other settings in the Windows Mobility Center, or to do other tasks, I suggest taking a look at the documentation for AutoIt3.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google

12 Comments

  1. grand
    Posted October 22, 2008 at 11:23 am | Permalink

    hi,
    i wanted to know how to change the quick play dvd button to open windows media player as i cannot play video or audio from my hard disk in quick play dvd and it gives a msg. insert dvd… can u please help me out wit this!!!!!!!!!

  2. Ted
    Posted November 15, 2008 at 5:57 pm | Permalink

    I can’t bypass the “Open File - Security Warning”
    That warning message occurs every time I press the quickplay button after following your method.

  3. Aziz
    Posted December 6, 2008 at 7:33 pm | Permalink

    HI, My problem is similar to the topic: I want to be able to turn my monitor on and off from quick play button on my hp dv2000 laptop. If you could send any instructions I would appreciate it so much. Tnahk you.

  4. Scabby
    Posted April 29, 2009 at 12:24 pm | Permalink

    If anyones wondering about Ted’s problem with overiding his error, right click the QP.exe file and select run as admin.

    Stops the annoying pop-up between pressing the button and performing the action. :)

  5. Luis
    Posted May 3, 2009 at 5:29 am | Permalink

    thank you for this!, I use Archicad and other design programs and I wanted to hold down shift while being in a specific position (that’s why i couldn’t just use the on-screen keyboard) while being on tablet mode.

    example: I want to draw a line, i click the line tool, then click on the start point, then hold down shift to constrain it’s movement in one angle then usually press tab to write a lenght and then enter.

    the last two i can do with the on-screen keyboard but not the Shift hold.

    I used Autohotkey to create the Script instead of Autoit, cause that’s the one i know how to use best. ( i just changed the QP.ini)

  6. Luis
    Posted May 3, 2009 at 5:37 am | Permalink

    if anyone wants to know:
    in QP.ini i wrote

    [my_dvd]
    program=AutoHotkey.exe “C:\archivos de programa\HP\QuickPlay\Shift.ahk”
    show=8

    (my system is in spanish, that’s why it’s says “archivos the programa” wich is = to “program files”)

    then for the Autohotkey:

    GetKeyState, state, Shift
    if state = D
    Send {shift Up}
    else
    Send {Shift Down}

    So, the first time I push = it holds down Shift.
    The second time = it releases shift.

  7. Luis
    Posted May 3, 2009 at 5:41 am | Permalink

    for Scabby:
    I did run as admin QP.exe, but the pop up still occurs…why could it be?

  8. poeth
    Posted May 17, 2009 at 10:38 pm | Permalink

    Hi.

    Great tip - thanks a lot. The problem is that the brightness control doesn’t appear in my mobility center anymore. I really do not have a clue why this is missing. Any idea?

  9. mamaremere
    Posted August 24, 2009 at 5:05 pm | Permalink

    Hey, I’ve been using “Launch” to configure my DVD and QuickPlay buttons to switch between Power Plans in Vista. So, pressing DVD would bring me to High Performance, while QuickPlay would switch to Power Saving. It’s quite neat, considering the fact that I can now do this using the IR remote controller too.

    The drawback in using “Launch” is that it pops up a command prompt for a fraction of second. I also built an executable myselfe, parsing the parameters “my_dvd” and “root”, but while I am running this executable from the command line is working, well, the situation changes when pressing the buttons. It simply ignores me. Nevertheless, I may be doing something wrong in writing the code to that executable [dunno exactly what 8-| ].

    Anyways, thanks for the tips I’ve learnt here and at the Tablet PC Forum [I needed to sign up for an account there to speak my joy out :P so it kinda blew me off :P].

    Yours.

  10. Ramon Balthazar
    Posted September 2, 2009 at 3:36 pm | Permalink

    HaHa! thank you! I’ll try that after the school ^^

  11. Ramon Balthazar
    Posted September 3, 2009 at 10:08 pm | Permalink

    hum.. i just wanted to do my own macro..
    i wanted the Mediasmart button to work as this:
    press : play/pause media
    press for .75 seconds: next track

  12. B
    Posted September 12, 2009 at 12:20 pm | Permalink

    Some of you guys might be interested in this info, http://www.howtogeek.com/howto/windows-vista/create-a-shortcut-or-hotkey-to-switch-power-plans/

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*
Copyright © 2007 danluong.com. All rights reserved.