Title

Message

Confirm

Want to earn a free VoiceBot Pro license? We're looking for VoiceBot translators!
<< DiscussionsReply

[SUGGEST] Macro Arguments

duhow's profile on WallpaperFusion.com
Could it be possible to create a macro that listens to arguments as well?
For example, I've developed ten macros, each one opens a website with a different name.
If I could join these macros within one, and then with Macro Script be able to distinguish each argument name (from a list of possibilities), it would be awesome!
Jan 6, 2016 (modified Jan 6, 2016)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Interesting idea! I've added this to our feature request list. We'll be sure to post an update if/when we're able to implement this :)

Thanks!
Jan 6, 2016  • #2
Avatar from Gravatar.com
Darkstrumn
11 discussion posts
This is possible via macroscript. :D
I provide a long winded example, with a speech recognizer function (in the speech class) that one can use to make confirmation voice prompts, or other forms of vocal input to expand a macro with. Based on the OP's suggestion, I used a verbal site list selection prompt, with input validation. It includes selections that are initially difficult for the recognizer to understand, and will either require speech recognition training of the users system, or faking it by selecting the closest false positives and updating the valid list of responses.

Hopefully the code is not too hard to follow, it was a spur of the moment example where only the Speech class is from my code library; it should still be a good example of the recognizer's use.

setup:
make a macro for the trigger verbiage you want, say for example, "Goto my favorite sites"
add the macroscript block, and copy past the following code overwriting the initial template code.
Run it to test it, and adjust the site URL's and valid site list as you like, and click ok when good.
Click Ok, to save macro to profile.
Click Ok to save Profile to registry, and you're set. 8)

Code

Hack and the world hacks with you!
Jan 18, 2016 (modified Feb 2, 2016)  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Wow, nice script! Thanks for sharing that, and for linking to it from the other posts as well
Jan 20, 2016  • #4
FluffyBunnyFeet's profile on WallpaperFusion.com
Is this script no longer functioning?

I tried it out, but during compile it give this error:
=================
Compile Failed.
Line 3: The type or namespace name 'Speech' does not exist in the namespace 'System' (are you missing an assembly reference?)
=================

here's line #3:
=================
using System.Speech.Recognition; //append to the stuff between the quotes References textbox: " | C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Speech.dll"
=================

Is there an alternate line/package for the System.Speech.Recognition?

Thanks,

Van
Nov 3, 2018  • #5
Avatar from Gravatar.com
Darkstrumn
11 discussion posts
It looks like there was come conditioning done upon paste that may have mangled it a bit.
I've cleaned it up, and made formatting adjustments. I'll use the code tags to hopefully preserve the code proper (likely forgot that the first time around).
Also, note that the comment on online #3 was corrected ( must not have proofread it, but it was confusing.
I have this macro-script in place just to make sure it did work, and it does for me, but again I think I may have not used code correctly or something, note the HTML encoded bits "%gt;" etc.

I include an attachment of the code as a file in case this re-post still is a swing and a miss. ;)

Oh, and in case it helps: this is the bit to for the references box for this proof. The fully qualified filename at the end is for the the speech recognition assembly:
System.Core.dll | System.Data.dll | System.dll  | System.Drawing.dll | System.Management.dll | System.Web.dll | System.Windows.Forms.dll | System.Xml.dll | C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Speech.dll


Code

Hack and the world hacks with you!
• Attachment: VoiceRecognizer-Proof.cs [7,789 bytes]
Nov 3, 2018 (modified Nov 3, 2018)  • #6
Avatar from Gravatar.com
Darkstrumn
11 discussion posts
Just an aside, if the issue was more a situation where the location of the DLL was not found, then you may have to see if it's in another framework location, ie the version I have listed you may not have installed. If that's the case, locate the correct file location on your system via find or the like, and update the reference to point to it instead.

Hope that helps, if my last post didn't.

Cheers!
Hack and the world hacks with you!
Nov 3, 2018  • #7
Avatar from Gravatar.com
Darkstrumn
11 discussion posts
Hi All,

It looks like embedded code is being mangled, some characters are being encoded\\altered.
I recommend taking a look at the attachment to see the proof as intended.

Thanks. ???

edit: How interesting, even the emoji's seem to be unencoded... not sure if it's just me, or an issue with the message system... .
Hack and the world hacks with you!
Nov 3, 2018 (modified Nov 3, 2018)  • #8
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Good catch, guys! We'll have the code boxes fixed later today
Nov 7, 2018  • #9
Avatar from Gravatar.com
Darkstrumn
11 discussion posts
Awesome!
Hack and the world hacks with you!
Nov 7, 2018  • #10
Was this helpful?  Login to Vote(1)  Login to Vote
<< DiscussionsReply