Jump to content
Sign in to follow this  
Foxhound

HotKeySet and custom buttons.

Recommended Posts

Foxhound

I have an HP dv6647cl that comes with a set of custom keys for DVD, Sound, and Playback control. Since I upgraded from Vista to 7, some of those keys still work but the DVD button has no function. Is there any way to make AutoIT use one of those custom keys with HotKeySet?

The actual code is rather simple:

HotKeySet("{???}","dvd")
While 1
    Sleep(1000)
WEnd

Func dvd()
If ProcessExists("wmplayer.exe") Then Exit
Run("C:\Program Files\Windows Media Player\wmplayer.exe")
Exit
EndFunc

Share this post


Link to post
Share on other sites
smashly

Hi,

Have you looked at Send() in the help file?

There is some Multimedia keys you could try and see if they work.

If none of those keys work then you'll probably need to write your own hook to work like a hotkey.

It appears that HotKeySet() doesn't seem to work "{ASC nnnn)", shame because it's quite easy to find the ASCII value of your DVD key.

Cheers

Share this post


Link to post
Share on other sites
Richard Robertson

Function keys are rarely accessible without direct driver access since most keyboards are custom. You probably can't hotkey it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.