This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Lua Scripts
 General Action Scripts
 Copy + Notification
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

babakm

58 Posts

Posted - 05/14/2014 :  10:30:15  Show Profile
Hi Rob
I want a script for copy. When I copy it play a Beep sound also for notification.
Thanks

Rob

USA
2615 Posts

Posted - 05/14/2014 :  10:33:40  Show Profile  Visit Rob's Homepage
acSendKeys("^c")
acSendKeys("{BEEP 1000 100}")

See the StrokesPlus help and search for "BEEP" to see the details.
Go to Top of Page

babakm

58 Posts

Posted - 05/14/2014 :  10:49:07  Show Profile
Thanks for fast reply.
It works for me.

I find in Help:
{BEEP X Y} - Beeps with a frequency of X and a duration of Y ms.

Edited by - babakm on 05/14/2014 10:51:46
Go to Top of Page

babakm

58 Posts

Posted - 05/14/2014 :  11:00:50  Show Profile
How can set lower volume for it? Please!
Go to Top of Page

Rob

USA
2615 Posts

Posted - 05/14/2014 :  11:21:16  Show Profile  Visit Rob's Homepage
It just sends the standard beep signal to Windows, so you cannot control it...at least not through S+.

Your best bet is probably to use acPlaySound instead:

http://www.strokesplus.com/help/#acPlaySound
Go to Top of Page

babakm

58 Posts

Posted - 05/14/2014 :  11:52:58  Show Profile
Hi again.
I put my wave file in: C:\Users\bm1.wav
and create this:
acSendKeys("^c")
acPlaySound(bm1.wav)
   Parameters:
     bm1.wav: C:\\Users\\bm1.wav
   Returns: 1
   Comments: Plays a sound.


but not works...

Edited by - babakm on 05/14/2014 11:53:35
Go to Top of Page

Rob

USA
2615 Posts

Posted - 05/14/2014 :  11:54:19  Show Profile  Visit Rob's Homepage
You have to pass in the full path as a string to acPlaySound

acPlaySound("C:\\Users\\bm1.wav")
Go to Top of Page

babakm

58 Posts

Posted - 05/14/2014 :  12:02:22  Show Profile
Thanks... I am very rookie ...
Go to Top of Page

Strokeman

33 Posts

Posted - 06/13/2014 :  09:27:51  Show Profile
I tried the BEEP command for another application and then to test for copy command too.
nothing beeped. is the BEEP from Motherboard speaker?
yes it beeps during startup (so its fine)
Can you explain frequency parameter, what does it mean here?

Thanks rob :)

Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000