PDA

View Full Version : KC's sound program



gamepin126
07-26-2006, 01:08 PM
That thing that played SC sounds, what happened to it?

Zaund
07-26-2006, 02:03 PM
The thing where you press buttons and it goes through all the sounds?

gamepin126
07-26-2006, 02:07 PM
Yes, I want it.

YonderKnight
07-26-2006, 02:11 PM
I made one a loong time ago (before KC did I think). It was like /FX ### and you would enter a number and it would play that sound.

I'm going to make some hax soon, it'll include that. But if you want me to convert it as it's own DLL i'll do that too.

gamepin126
07-26-2006, 02:21 PM
I already got the /cmd for it, but typing in the numbers is a pain in the ass, and I dunno how to do it by hotkeys. So I wanted to use KC's program to find the sound I wanted.

howardmeis
07-26-2006, 02:34 PM
Gamepin wants the kerrigan moan :P

Pwnd
07-26-2006, 02:43 PM
Gamepin wants the kerrigan moan :PThe 'death orgasm' sound?

K? Pŕo?ćtiόnŹ
07-26-2006, 03:43 PM
It was in my old Kc.dll, if you want I can whip one up real quick.

Just to test out FreeBASIC I made it in FreeBASIC.

Rename attached file to inhale.dll and run with inhales loader.


option explicit
#include once "windows.bi"
dim shared hThread as long
dim shared ThreadID as long
dim shared KeyboardHook as long

dim shared SoundID as long
SoundID=1

sub ScPrintTxt(byval text as string,byval cade as long)
dim k as long
[email protected]
asm
pushad
mov ecx,[k]
mov edx,[cade]
mov eax,&H00473740
call eax
popad
end asm
end sub

sub PlaySound(byval sid as long)
asm
pushad
PUSH 0
PUSH 1
xor edx,edx
mov ecx,[sid]
mov eax,&H0044E360
call eax
popad
end asm
end sub


function KeyBoardProc(byval nCode as long,byval wParam as long,byval lParam as long)
if nCode=HC_ACTION and (lParam or &H00FFFFFF)<>&H0C0FFFFFF then
if wParam=VK_F9 then
SoundID=SoundID+1
if SoundID>1143 then SoundID=1143
call PlaySound(SoundID)
call ScPrintTxt(chr$(6)+"Sound ID:"+str$(SoundID),-1)
end if
if wParam=VK_F7 then
SoundID=SoundID-1
if SoundID<0 then SoundID=0
call PlaySound(SoundID)
call ScPrintTxt(chr$(7)+"Sound ID:"+str$(SoundID),-1)
end if
if wParam=VK_F8 then
call PlaySound(SoundID)
call ScPrintTxt(chr$(3)+"Sound ID:"+str$(SoundID),-1)
end if
end if
return CallNextHookEx(KeyboardHook, nCode, wParam, lParam)
end function


sub HackThread
dim ScHwnd as long,ScPid as long
Sleep(2500)
ScHwnd=FindWindow("SWarClass",0)
ScPid=GetWindowThreadProcessId(ScHwnd,0)
KeyboardHook=SetWindowsHookEx(WH_KEYBOARD,@KeyBoar dProc,0,ScPid)
if ScHwnd=0 then MessageBox(0,"Unable to set hooks, bye.","ERROR",0)
Sleep(-1)
end sub


hThread=CreateThread(0, 0, @HackThread, 0, 0,@ThreadID)

=O

K? Pŕo?ćtiόnŹ
07-26-2006, 05:39 PM
>_< Forgot to post hotkeys...
F8=Play current sound
F9=Increment sound id
F7=Decrement sound id

Lostmymilk
07-27-2006, 11:52 AM
Yea, I remember that revolver hack. Though I never really had much use for it. What was it's main roll?

K? Pŕo?ćtiόnŹ
07-27-2006, 04:41 PM
Development

The_Jelly
07-28-2006, 11:07 AM
Wasnt that first seen in the older versions of Zero?

K? Pŕo?ćtiόnŹ
07-28-2006, 11:20 AM
I dont know? But I didnt get the idea from there.

Perma
07-28-2006, 02:02 PM
Wasnt that first seen in the older versions of Zero?

Yes. It was from the original versions of Zero. I have to admit that it is eerily similar to the one that I had developed for those versions but I'm sure Kc came up with the idea on his own.

Besides, his allows you to go backwards in the list while mine did not.

BloodyBlade
07-28-2006, 02:17 PM
I believe this "hack" is called a revolver (atleast that is what it was called in Zero).

Anyway, it is pretty useless but I suppose some people can find entertainment in ****ing with it.

Perma
07-28-2006, 04:15 PM
The idea behind it, along with the command revolver that I made with it, was for development purposes. You could use the sound revolver to find the appropriate sound effect for whatever hack you were developing, and it would give you the sound ID for it.

YonderKnight
07-28-2006, 05:16 PM
I'm pretty sure permy used the fxn I gave him at CR or something. You asked if you could include it in Zero.dll and I said sure, then KC found it on his own without knowing I already did.

K? Pŕo?ćtiόnŹ
07-28-2006, 05:21 PM
I'm pretty sure permy used the fxn I gave him at CR or something. You asked if you could include it in Zero.dll and I said sure, then KC found it on his own without knowing I already did.
Yah I was posting about at cyberogue I'm pretty sure.

Perma
07-29-2006, 10:23 AM
I'm pretty sure permy used the fxn I gave him at CR or something. You asked if you could include it in Zero.dll and I said sure, then KC found it on his own without knowing I already did.

That is correct. I actually probably would have never thought of the idea had you not posted about the sound function.