geekhack

geekhack Community => Other Geeky Stuff => Topic started by: Zamorph on Tue, 19 April 2011, 21:41:31

Title: Help with Autohotkey
Post by: Zamorph on Tue, 19 April 2011, 21:41:31
Hey, I wanted to make a script to make it so right alt key is my modifier, B would increase my volume and N would decrease my volume.  Can anyone tell me how to do this? In addition, I have a normal dell keyboard with no volume controls already on it, if that mattered at all.

Thanks
Title: Help with Autohotkey
Post by: Brodie337 on Wed, 20 April 2011, 03:19:36
Code: [Select]
!N::Send {Volume_Down}

!B::Send {Volume_Up}
! is the modifier for alt.

Just for the sake of it, heres what I use for the other media keys:
Code: [Select]
;next song
+Pause::Send {Media_Next}
return

;previous song
+PrintScreen::Send {Media_Prev}
return

;play/pause
+ScrollLock::Send {Media_Play_Pause}
return

+ is the symbol for shift, ^ for control. I think @ is for windows, but I'm not sure, because I've never used it.
Title: Help with Autohotkey
Post by: Zamorph on Wed, 20 April 2011, 07:11:04
Thanks :)!
Title: Help with Autohotkey
Post by: British on Wed, 20 April 2011, 07:24:46
Quote from: Brodie337;334036
I think @ is for windows, but I'm not sure, because I've never used it.

The win-key character is #.

It's useful when you have a MX-11800 and want to emulate win-e, win-l and such :]
Title: Help with Autohotkey
Post by: Zamorph on Wed, 20 April 2011, 10:50:16
Btw brodie, where did you find the commands for volume control at? I looked in the help menu for autohotkey... maby not well enough :P
Title: Help with Autohotkey
Post by: Zamorph on Wed, 20 April 2011, 13:07:05
Quote from: ripster;334191
I found Autohotkey to be incredibly lame and buggy sometimes for simple remapping of anything past the ALPHA characters.   The rules for when you use "SEND" seem arbitrary.   Doesn't help that their forum seems filled with dweebs.

Yeah, I find it a bit buggy sometimes.  Do you have a different program to recommend? :)
Title: Help with Autohotkey
Post by: slueth on Wed, 20 April 2011, 17:07:00
The help file does list the what the media functions are called.
Title: Help with Autohotkey
Post by: Brodie337 on Wed, 20 April 2011, 23:06:01
I can't remember... I think I dredged it up searhing for media player control. I just use send all the time