Need help!

Ask gaming related questions (AHK v1.1 and older)
AHK_User123
Posts: 4
Joined: 19 Apr 2021, 22:48

Need help!

19 Apr 2021, 23:00

Can someone help me with something, i need a script that plays a pre recorded clicking sound everytime i click and it should overlap the sound. For example if I click 10 times in one second it plays the sound rapidly but if i press it once it plays the sound once. Basically it plays the sound everytime i click the mouse right and left click.
Rohwedder
Posts: 7612
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Need help!

20 Apr 2021, 02:18

Hallo,
try:

Code: Select all

RegRead, ClickWav, HKEY_LOCAL_MACHINE
, SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WINWORD.EXE
IF !ClickWav := StrReplace(ClickWav, "WINWORD.EXE", "Media\CLICK.WAV")
	MsgBox, Microsoft Office not found
Return
~*LButton::
~*RButton::SoundPlay,% ClickWav
AHK_User123
Posts: 4
Joined: 19 Apr 2021, 22:48

Re: Need help!

20 Apr 2021, 09:26

Rohwedder wrote:
20 Apr 2021, 02:18
Hallo,
try:

Code: Select all

RegRead, ClickWav, HKEY_LOCAL_MACHINE
, SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WINWORD.EXE
IF !ClickWav := StrReplace(ClickWav, "WINWORD.EXE", "Media\CLICK.WAV")
	MsgBox, Microsoft Office not found
Return
~*LButton::
~*RButton::SoundPlay,% ClickWav
This Works until I hit 8 clicks per second, im using an autoclicker with this and is there any way it can be playing the sound clearly at 14 cps? Right now when I play it at 14 cps the sound cuts out
Rohwedder
Posts: 7612
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Need help!

20 Apr 2021, 10:02

Just an idea:
Let e.g. the VLC player play some continuous noise and use:

Code: Select all

SoundSetWaveVolume, 0
Return
~*LButton::
~*RButton::SoundSetWaveVolume, 50
~*LButton Up::
~*RButton Up::SoundSetWaveVolume, 0
AHK_User123
Posts: 4
Joined: 19 Apr 2021, 22:48

Re: Need help!

20 Apr 2021, 11:43

Rohwedder wrote:
20 Apr 2021, 10:02
Just an idea:
Let e.g. the VLC player play some continuous noise and use:

Code: Select all

SoundSetWaveVolume, 0
Return
~*LButton::
~*RButton::SoundSetWaveVolume, 50
~*LButton Up::
~*RButton Up::SoundSetWaveVolume, 0
This didnt work
AHK_User123
Posts: 4
Joined: 19 Apr 2021, 22:48

Re: Need help!

20 Apr 2021, 21:06

I Still need help :/
Rohwedder
Posts: 7612
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Need help!

21 Apr 2021, 01:19

Any faster than this I can't:

Code: Select all

#NoEnv
SetBatchLines, -1
RegRead, ClickWav, HKEY_LOCAL_MACHINE
, SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WINWORD.EXE
IF !ClickWav := StrReplace(ClickWav, "WINWORD.EXE", "Media\CLICK.WAV")
{
	MsgBox, Microsoft Office not found
	Return
}
Script =
(
#SingleInstance, Off
#NoTrayIcon
SoundPlay, %ClickWav%
)
Shell := ComObjCreate("WScript.Shell")
Call := "AutoHotkey.exe /ErrorStdOut *"
Return
~*LButton::
~*RButton::Ex:=Shell.Exec(Call),Ex.StdIn.Write(Script),Ex.StdIn.Close()

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 35 guests