Micro Focus QTP (UFT) Forums
Sound when Click on QTP - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Sound when Click on QTP (/Thread-Sound-when-Click-on-QTP)



Sound when Click on QTP - yagarules - 09-02-2009

Hi!

I have a question: Is there a way to quit the sound that my pc does when a click action has been run?

I mean: I record and run a test, then while running all the steps that make a click (on a button must the times), there is a sound, Is there away to... I don't know like mute or something....

I hope so...


RE: Sound when Click on QTP - basanth27 - 09-02-2009

Yagarules -
Excuse my ignorance, but wont the Volume Control Mute on your PC work ?


RE: Sound when Click on QTP - Saket - 09-03-2009

Hi Yagarules,
In case you really want to do it through your script
Insert following statements at the beginning of your script
Code:
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys(chr(173))

and put this statement again at the end of your script which will put the sound ON again
Code:
WshShell.SendKeys(chr(173))