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

Everything else that doesn't fall into one of the other PB categories.
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

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

Post 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:
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post 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!
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post 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
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post 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
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post 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...
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply