AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Want to make Reassigned key play a click sound when pressed

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
xellow



Joined: 29 Aug 2008
Posts: 10

PostPosted: Sun Oct 12, 2008 2:04 am    Post subject: Want to make Reassigned key play a click sound when pressed Reply with quote

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
View user's profile Send private message
Carlol



Joined: 14 Aug 2006
Posts: 163
Location: CPH

PostPosted: Sun Oct 12, 2008 5:59 am    Post subject: Reply with quote

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..... Very Happy
Back to top
View user's profile Send private message
xellow



Joined: 29 Aug 2008
Posts: 10

PostPosted: Mon Oct 13, 2008 3:22 am    Post subject: Reply with quote

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..... Very Happy


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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group