Page 1 of 1

Setting Auto-taskbar hide on or off via code...

Posted: Sat May 14, 2005 8:04 am
by dagcrack
Heya buddies and girlies (ew..)..
Hows going?

I thought it would be nice if one of my tools could set automatically the taskbar auto-hide to true.. and later when it quits, to false :P

At MSDN only found how to GET the current status of it, but not to enable / disable this feature.

Anyone got an idea for this? I feel "noobed" :lol:

Posted: Sat May 14, 2005 8:29 am
by dagcrack
*bump*

from MSND: 0x60 - 0x0060 - ;Grave

Hmm I cant seem to call:

#VK_GRAVE = $0060
GetAsyncKeyState_(#VK_GRAVE)



Im stupid today or what?
You see the key up to the TAB one.. thats the Grave key (yes no?), but I need to check the state of it.. cant seem to do so in getasynckeystate!

Posted: Sat May 14, 2005 12:17 pm
by PB
> You see the key up to the TAB one.. thats the Grave key (yes no?), but I
> need to check the state of it.. cant seem to do so in getasynckeystate

Use this... it's something I learned years ago but can't remember why it
works, but it does, and with all keyboard types. :) Note: It only works with
UNSHIFTED keys.

Code: Select all

Repeat

  Sleep_(100)

  Debug GetAsyncKeyState_(VkKeyScanEx_(Asc("`"),GetKeyboardLayout_(0)))

ForEver

Posted: Sun May 15, 2005 3:06 pm
by dagcrack
No.. it doesnt :(
But... My keyboard is not english, its spanish! and that key is a | not a ` could be the main problem (which I thought about ages ago, but I thought.. hmm ` could be the standard).. but as im right now using the spanish keyboard language, it should not work.

But your example is nice! I put | and it detects OK

Posted: Sun May 15, 2005 3:41 pm
by PB
> No.. it doesnt
> My keyboard is not english, its spanish

Hmm, I don't know then... years ago when I used this code I was told it
worked on non-English keyboards, which is why I started using it. The
beta-testers of my app said nothing else worked except that code...