Hi!
I have one script that I use a lot, and some colleagues use it too.
In my script I use the Appskey hotkey to send Control C. The problem is: when there is nothing to copy, Windows 7 makes an annoying sound. I haven't found a solution that can be implemented in the script, for anyone that uses my script.
I've been trying to do this with SoundSet, but I don't understand all the ComponentType and ControlType options. I've tried to turn the sound OFF before hitting Control C, and then turn it back ON, but this is too slow and what if the sound was already OFF? I wouldn't want to turn it ON.
Besides, SoundSet doesn`t work the same way in Windows 7, Windows XP and Vista. Maybe there's a better way.
Here is my script (simplified):
Appskey:: ; SoundSet????? Send ^c ClipWait, 2 ; SoundSet????? Gui, Destroy Gui, +AlwaysOnTop -MaximizeBox -MinimizeBox Gui, Font, s12, Arial Gui, Add, ComboBox, w500 vSearch r15 sort ym, One|Two|Three|Four|Five GuiControl, Text, Search, %Clipboard% Gui, Show,, Search Return
Thanks.