Author Topic: AutoHotKey + Ducky Shine II issues  (Read 5179 times)

0 Members and 1 Guest are viewing this topic.

Offline nogamesplayed

  • Thread Starter
  • Posts: 27
AutoHotKey + Ducky Shine II issues
« on: Mon, 05 August 2013, 03:33:34 »
Hi all,

I've searched high and low for answers but have always come up short.

I'm trying to remap the keys above the numpad on the Ducky Shine II (DK9008S) but having issues along the way.

The new functions work and have been assigned, however I am unable to disable the default function of the keys (ie calc, explorer, mail, browser). So they both fire.

This is what I currently have for AutoHotKey:
Code: [Select]
SC121::Media_Play_Pause
sc16b::Volume_Mute
sc16c::Volume_Down
sc132::Volume_Up

I'm not too sure why the default function of the key continues to work because AFAIK AHK overrides it. However I might be missing something so any suggestions are extremely appreciated.

Thanks in advance!
--------->[WTB] Radeon HD 7950 or better<---------

 

Offline SpAmRaY

  • NOT a Moderator
  • * Certified Spammer
  • Posts: 14667
  • Location: ¯\(°_o)/¯
  • because reasons.......
Re: AutoHotKey + Ducky Shine II issues
« Reply #1 on: Mon, 05 August 2013, 09:31:50 »
« Last Edit: Mon, 05 August 2013, 09:38:03 by SpAmRaY »

Offline nogamesplayed

  • Thread Starter
  • Posts: 27
Re: AutoHotKey + Ducky Shine II issues
« Reply #2 on: Mon, 05 August 2013, 17:39:59 »
You might check this thread

http://geekhack.org/index.php?topic=35787.msg702131#msg702131

I'm afraid there's not much detail in that thread. I searched for all threads with ducky + autohotkey/akh earlier and didn't find anything relevant so I posted this thread.

I PM'd the user however so hopefully he blesses me with his insight :p
--------->[WTB] Radeon HD 7950 or better<---------

 

Offline rowdy

  • HHKB Hapster
  • * Erudite Elder
  • Posts: 21175
  • Location: melbourne.vic.au
  • Missed another sale.
Re: AutoHotKey + Ducky Shine II issues
« Reply #3 on: Mon, 05 August 2013, 17:45:07 »
From that post it would seem that you cannot redefine them.
"Because keyboards are accessories to PC makers, they focus on minimizing the manufacturing costs. But that’s incorrect. It’s in HHKB’s slogan, but when America’s cowboys were in the middle of a trip and their horse died, they would leave the horse there. But even if they were in the middle of a desert, they would take their saddle with them. The horse was a consumable good, but the saddle was an interface that their bodies had gotten used to. In the same vein, PCs are consumable goods, while keyboards are important interfaces." - Eiiti Wada

NEC APC-H4100E | Ducky DK9008 Shine MX blue LED red | Ducky DK9008 Shine MX blue LED green | Link 900243-08 | CM QFR MX black | KeyCool 87 white MX reds | HHKB 2 Pro | Model M 02-Mar-1993 | Model M 29-Nov-1995 | CM Trigger (broken) | CM QFS MX green | Ducky DK9087 Shine 3 TKL Yellow Edition MX black | Lexmark SSK 21-Apr-1994 | IBM SSK 13-Oct-1987 | CODE TKL MX clear | Model M 122 01-Jun-1988

Ị̸͚̯̲́ͤ̃͑̇̑ͯ̊̂͟ͅs̞͚̩͉̝̪̲͗͊ͪ̽̚̚ ̭̦͖͕̑́͌ͬͩ͟t̷̻͔̙̑͟h̹̠̼͋ͤ͋i̤̜̣̦̱̫͈͔̞ͭ͑ͥ̌̔s̬͔͎̍̈ͥͫ̐̾ͣ̔̇͘ͅ ̩̘̼͆̐̕e̞̰͓̲̺̎͐̏ͬ̓̅̾͠͝ͅv̶̰͕̱̞̥̍ͣ̄̕e͕͙͖̬̜͓͎̤̊ͭ͐͝ṇ̰͎̱̤̟̭ͫ͌̌͢͠ͅ ̳̥̦ͮ̐ͤ̎̊ͣ͡͡n̤̜̙̺̪̒͜e̶̻̦̿ͮ̂̀c̝̘̝͖̠̖͐ͨͪ̈̐͌ͩ̀e̷̥͇̋ͦs̢̡̤ͤͤͯ͜s͈̠̉̑͘a̱͕̗͖̳̥̺ͬͦͧ͆̌̑͡r̶̟̖̈͘ỷ̮̦̩͙͔ͫ̾ͬ̔ͬͮ̌?̵̘͇͔͙ͥͪ͞ͅ

Offline nogamesplayed

  • Thread Starter
  • Posts: 27
Re: AutoHotKey + Ducky Shine II issues
« Reply #4 on: Mon, 05 August 2013, 17:46:38 »
From that post it would seem that you cannot redefine them.

User commented this right afterwards:

Well after an hour or two of prying further into this I finally managed to remap the keys to different applications using AutoHotkey.
--------->[WTB] Radeon HD 7950 or better<---------

 

Offline esoomenona

  • Gnillort?
  • Posts: 5323
Re: AutoHotKey + Ducky Shine II issues
« Reply #5 on: Mon, 05 August 2013, 17:54:14 »
Can I see how your code looks?

Offline nogamesplayed

  • Thread Starter
  • Posts: 27
Re: AutoHotKey + Ducky Shine II issues
« Reply #6 on: Mon, 05 August 2013, 17:56:43 »
Here you go:

Code: [Select]
;Multimedia Keys

SC121::Media_Play_Pause
sc16b::Volume_Mute
sc16c::Volume_Down
sc132::Volume_Up
--------->[WTB] Radeon HD 7950 or better<---------

 

Offline esoomenona

  • Gnillort?
  • Posts: 5323
Re: AutoHotKey + Ducky Shine II issues
« Reply #7 on: Mon, 05 August 2013, 17:59:08 »
And when you press one of those keys, it performs the function you have set, as well as it's original function simultaneously?

Offline nogamesplayed

  • Thread Starter
  • Posts: 27
Re: AutoHotKey + Ducky Shine II issues
« Reply #8 on: Mon, 05 August 2013, 18:00:43 »
Yes. So if I press SC121 (calculator), it'd both play/pause the music and open the calculator.
--------->[WTB] Radeon HD 7950 or better<---------

 

Offline esoomenona

  • Gnillort?
  • Posts: 5323
Re: AutoHotKey + Ducky Shine II issues
« Reply #9 on: Mon, 05 August 2013, 18:06:22 »
That's weird. Have you tried using Send and/or Return?

Offline nogamesplayed

  • Thread Starter
  • Posts: 27
Re: AutoHotKey + Ducky Shine II issues
« Reply #10 on: Mon, 05 August 2013, 18:36:43 »
Holy $&@# .. I don't know what I did, but it works fine now :\

Well I think I do know what I did. Yesterday I was reading a thread about remapping a 2108S with the Microsoft Intellitype Pro software. So I tried this, unsuccessfully. But I had to uninstall my mouse software first, which coincidentally bundles keyboard software as well (Microsoft Mouse and Keyboard Center). I'm guessing that has been somehow clashing with AutoHotKey.

I just uninstalled it and the issues went away, and AHK is working as expected.

Thanks for your help everyone :)
--------->[WTB] Radeon HD 7950 or better<---------

 

Offline esoomenona

  • Gnillort?
  • Posts: 5323
Re: AutoHotKey + Ducky Shine II issues
« Reply #11 on: Mon, 05 August 2013, 18:40:05 »
Glad everything worked out for you.

Offline nogamesplayed

  • Thread Starter
  • Posts: 27
Re: AutoHotKey + Ducky Shine II issues
« Reply #12 on: Mon, 05 August 2013, 18:43:51 »
Haha yep! Now to buy some media keycaps :)
--------->[WTB] Radeon HD 7950 or better<---------

 

Re: AutoHotKey + Ducky Shine II issues
« Reply #13 on: Thu, 22 August 2013, 00:02:55 »
I don't have any mouse or keyboard software installed at all - just the very simple auto-install drivers - and I'm still having this dual behavior on keypress. Mine is a Ducky DK9008G2. I set my right-most function key ("Home") to Sleep using the following AHK script:
Code: [Select]
; Sleep Via Multimedia Key
SC132::
; Sleep/Suspend:
DllCall("PowrProf\SetSuspendState", "int", 0, "int", 0, "int", 0)
; Hibernate:
;DllCall("PowrProf\SetSuspendState", "int", 1, "int", 0, "int", 0)
Return
But it both starts a fresh Chrome window and puts the computer to sleep. On the plus side, I've got a fresh Chrome browser ready as soon as my computer wakes up... But I'd still prefer to remove the extra behavior. ;)