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
 General Discussion
 General Discussion
 Is the gesture correct?
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

patrickcas

26 Posts

Posted - 04/15/2015 :  12:50:22  Show Profile
Hi everyone, it's me (again!)
I wonder if there is a way of showing if the gesture has been correctly recognized by StrokePlus (e.g., a sound, a message showing the action, a specific colour of the gesture,...).
Thanks, and ciao from Italy!

Rob

USA
2615 Posts

Posted - 04/15/2015 :  12:57:55  Show Profile  Visit Rob's Homepage
You could leverage the sp_before_action function in Global Lua:

http://www.strokesplus.com/forum/topic/367/added-global-before-and-after-functions-update

Along with maybe calling acDisplayBalloonTip, acDisplayText, acPlaySound, or some other script you might want to do inside the sp_before_action function.
Go to Top of Page

patrickcas

26 Posts

Posted - 04/16/2015 :  05:04:00  Show Profile
Wow... I'm lost!
It is too complicated to me... and I did not understand if the sound (let's assume this is what I want) can/must play for just one gesture or for all of them.

If you could help me with an example, it would be nice:
For example: I have a sound (sound.wav) which is stored in D:\Sound, and I want that AFTER this gesture:
acRunProgram("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe","",0, 1)
that sound should be performed.

How can I do that?

Thanks again.
Go to Top of Page

Hax

128 Posts

Posted - 04/16/2015 :  05:16:55  Show Profile
acRunProgram("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe","",0, 1)
acDelay(50)
acPlaySound("D:\\Sound\\sound.wav")

Go to Top of Page

patrickcas

26 Posts

Posted - 04/16/2015 :  10:47:34  Show Profile
WOW! that's it?
It was simple (NOW I can say that!)!
It works perfectly!
A big CIAO and GRAZIE from Italy!
;-)
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