Posted: Fri Jun 10, 2016 12:27 pm Post subject: Sound for activate or deactivate trainer
Hi
How to make lua script for use from two music(sound) when press a key for activate trainer, if game was found , play sound 1(Trainer activate). Then if game was not found ,play sound2 (Trainer can not find game).
activateTrainerHK = createHotkey(function(sender)
local soundstream = createMemoryStream()
if openProcess("calc.exe") then
soundstream.loadFromFile("C:\\Windows\\Media\\tada.wav")
else
soundstream.loadFromFile("C:\\Windows\\Media\\Windows Error.wav")
end
playSound(soundstream)
soundstream.destroy()
end, VK_F12)
activateTrainerHK.DelayBetweenActivate = 1000
_________________
I don't know where I'm going, but I'll figure it out when I get there.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum