| View previous topic :: View next topic |
| Author |
Message |
xellow
Joined: 29 Aug 2008 Posts: 10
|
Posted: Sun Oct 12, 2008 2:04 am Post subject: Want to make Reassigned key play a click sound when pressed |
|
|
Currently I have
| Code: | Insert::LButton
Home::MButton
PgUp::RButton |
and I want Autohotkey to "Soundplay" this sound file I made:
"Soundplay, C:\Users\Kadence\Music\click.wav"
When I press my reassigned mouse button keys.
Sounds Easy right??
I'm a beginner & I'm just not sure how to combine these functions in to a valid script.
Please Help
Thanks in advance,
Kyle |
|
| Back to top |
|
 |
Carlol
Joined: 14 Aug 2006 Posts: 163 Location: CPH
|
Posted: Sun Oct 12, 2008 5:59 am Post subject: |
|
|
As an example: I've put sound on my delete key
| Code: | Del::
SoundPlay, C:\Users\Kadence\Music\click.wav
Send, {Del}
Return
or
PgUp::
Send, RButton
SoundPlay, C:\Users\Kadence\Music\click.wav
Return |
Hopefully
Good luck.....  |
|
| Back to top |
|
 |
xellow
Joined: 29 Aug 2008 Posts: 10
|
Posted: Mon Oct 13, 2008 3:22 am Post subject: |
|
|
| Carlol wrote: | As an example: I've put sound on my delete key
| Code: | Del::
SoundPlay, C:\Users\Kadence\Music\click.wav
Send, {Del}
Return
or
PgUp::
Send, RButton
SoundPlay, C:\Users\Kadence\Music\click.wav
Return |
Hopefully
Good luck.....  |
Getting closer, Thanks.
It almost works, You can use it to Right Click Mouse Button and hear the click sound; however click & hold doesn't work, so doing tasks such as a drag and drop, is impossible. (If assigned to LButton)
I also noticed it doubles as a RButton and PageUp on at the same press. which also can be un-usefull. |
|
| Back to top |
|
 |
|