KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Timed event
Topic Summary: Custom script to come on at a certain time
Created On: 08/13/2017 04:03 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 Timed event   - cripp7 - 08/13/2017 04:03 PM  
 Timed event   - Lunis Orcutt - 08/13/2017 04:33 PM  
 Timed event   - Edgar - 08/14/2017 09:57 AM  
 Timed event   - cripp7 - 08/28/2020 05:50 PM  
 Timed event   - Edgar - 08/29/2020 10:47 AM  
 Timed event   - PG LTU - 08/29/2020 11:44 AM  
 Timed event   - cripp7 - 08/29/2020 07:40 PM  
 Timed event   - PG LTU - 08/30/2020 11:55 AM  
 Timed event   - cripp7 - 08/30/2020 03:37 PM  
Keyword
 08/13/2017 04:03 PM
User is offline View Users Profile Print this message

Author Icon
cripp7
Senior Member

Posts: 105
Joined: 07/31/2010

 I was wondering if Knowbrainer can do a timed event? I want to execute a macro at a certain time during the day, is that possible or do I have to look for something else?

 

Cripp



-------------------------

 


 


 


 


 08/13/2017 04:33 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 37985
Joined: 10/01/2006

The best we can offer is a wait time that delays deployment for a few seconds, minutes or hours but not something that can trigger at a specific time, like a daily file backup.



-------------------------

Forum Mission Statement
Trial Downloads
Dragon/Sales@KnowBrainer.com 
(615) 884-4558 ext 1

 08/14/2017 09:57 AM
User is offline View Users Profile Print this message

Author Icon
Edgar
Top-Tier Member

Posts: 915
Joined: 04/03/2009

Windows has a Task Scheduler built-in. It can run applications, compiled (e.g. AutoIT) scripts or batch files. If you can tell us exactly what you want to do we can probably figure out a good way to do it.

-------------------------

-Edgar
DPI 15.3, 64-bit Windows 10 Pro, OpenOffice & Office 365, Norton Security, Shure X2U XLR to USB mic adapter with Audio Technica DB135 vocal mic, Asus X299-Deluxe Prime, Intel Core i9-7940X (14 core, 4.3 GHz overclocked to 4.9 GHz), G.SKILL TridentZ Series 64GB (4 x 16GB) DDR4 3333 (PC4 26600) F4-3333C16Q-64GTZ, NVIDIA GIGABYTE GeForce GTX 1060 GV-N1060G1 GAMING-6GD REV 2.0 6GB graphics card with 3 1920x1080 monitors

 08/28/2020 05:50 PM
User is offline View Users Profile Print this message

Author Icon
cripp7
Senior Member

Posts: 105
Joined: 07/31/2010

Sorry to rehash this post but I actually forgot about it. Basically what I wanted to do is at night I play one of my nature sounds and run a batch file that enables the monitor power to the off state, and turns the Dragon microphone to the off state. But what I'm wanting to do is at 7:30 AM to put Dragon in sleep mode because sometimes I have to keep saying "Microphone On" several different times by using Speechstart+, yes I have trained it but I'm having other issues with that program and I was working with Lindsay but I haven't heard from him in quite a while. But that's a different subject.

So here's the the function I'm needing to do:

7:30 AM - turn Dragon microphone from off state to sleep mode
Switch to Microsoft Edge and run a custom link
I have it open C:\Windows\System32\scrnsave.scr


-------------------------

 


 


 


 


 08/29/2020 10:47 AM
User is offline View Users Profile Print this message

Author Icon
Edgar
Top-Tier Member

Posts: 915
Joined: 04/03/2009

Dragon has a keyboard shortcut for the Microphone On/Off toggle - I don't know what the default is. Using C/C++/C# I could probably write a tiny application which has the single job to "SendKeys" that keyboard shortcut on a global basis using a third-party library (Input Simulator); I would be happy to do so. Then you would write a batch script (I would be happy to do this also) which would perform the three steps you require. You would then add this batch script to Windows’ Task Scheduler - I could write explicit details on how to do this or take remote control of your computer and do it for you.



-------------------------

-Edgar
DPI 15.3, 64-bit Windows 10 Pro, OpenOffice & Office 365, Norton Security, Shure X2U XLR to USB mic adapter with Audio Technica DB135 vocal mic, Asus X299-Deluxe Prime, Intel Core i9-7940X (14 core, 4.3 GHz overclocked to 4.9 GHz), G.SKILL TridentZ Series 64GB (4 x 16GB) DDR4 3333 (PC4 26600) F4-3333C16Q-64GTZ, NVIDIA GIGABYTE GeForce GTX 1060 GV-N1060G1 GAMING-6GD REV 2.0 6GB graphics card with 3 1920x1080 monitors

 08/29/2020 11:44 AM
User is offline View Users Profile Print this message

Author Icon
PG LTU
Top-Tier Member

Posts: 2072
Joined: 03/21/2007

Well, take a look at my pgEmulate at bit.ly\pgEmulate which is a little VBS script that can easily be called via TaskManager as Edgar mentioned. I've explained that it works while the mic is off. A ha! So, write yourself a little Dragon Advanced Scripting macro as follows and call it: "Mic on but Asleep" (note the capitalization)

Sub Main
    SetMicrophone(1) ' turns mic on 
    GoToSleep ' puts the mic into asleep mode 
    ' add a command to open your browser to URL:
    ShellExecute "https:\\www.customsite.com\myUrl"
    ' add a command to start your screensaver:
    ShellExecute "C:\Windows\System32\scrnsave.scr"
End Sub

So, once you put pgEmulate.vbs somewhere, you open the Task Scheduler (Win+R and "taskschd.msc") and on right hand side is a panel where you can click the "Action" - "Create Basic Task...". Give it a name, perhaps a description and click "Next" to give it a "Trigger". Follow the prompts for "Daily" and at a "Time", and when you get to "Action", select "Start a program" and browse to your pgEmulate.vbs file. Now, in the "Add Arguments (optional):" box, add the exact command name in quotes (matching the capitalization scheme exactly), such as: "Mic on but Asleep" (with the quotes) and hit "Next" and "Finish" and optionally check out some additional properties you can set. You can now click on the name to select the new Task in the main middle panel, and hit the right panel "Selected Item" - "Run" button to make sure it works.

Hth, let us know . . .



-------------------------




PG





Remember folks, my comments and this forum are for entertainment value only, please, no wagering or other reliance on the contents herein.  I permit no commercial use of my ideas (whether expressions or embodiments) without my written consent.



 08/29/2020 07:40 PM
User is offline View Users Profile Print this message

Author Icon
cripp7
Senior Member

Posts: 105
Joined: 07/31/2010

I'm confused on what do I put in the VBS file? Was it the basic from link you provided? I added that script to my Dragon. I just need to know exactly what to fight in the VBS file.

-------------------------

 


 


 


 


 08/30/2020 11:55 AM
User is offline View Users Profile Print this message

Author Icon
PG LTU
Top-Tier Member

Posts: 2072
Joined: 03/21/2007

Yes, you need to create the separate, stand-alone vbs text file on your computer with the script contents from the link I provided at at bit.ly\pgEmulate. Call it "pgEmulate.vbs" and browse to it when setting up the new Task when you get to the "Start a program" under the "Action" part of the wizard.

So, the DAS script I provided works in Dragon, right? Now you just need TaskManager to call that script at a specific time (trigger it). So pgEmulate is a stand-alone VBS script outside of Dragon that all it does is do a recognition of the input text using the running Dragon speech engine. In our case, the TaskManager sends the input text as the argument (the command you want Dragon to recognize, "Mic on but Asleep"). Of course, Dragon must be running and a profile loaded that includes this command to work - but importantly, it will work even when the mic is off.



-------------------------




PG





Remember folks, my comments and this forum are for entertainment value only, please, no wagering or other reliance on the contents herein.  I permit no commercial use of my ideas (whether expressions or embodiments) without my written consent.



 08/30/2020 03:37 PM
User is offline View Users Profile Print this message

Author Icon
cripp7
Senior Member

Posts: 105
Joined: 07/31/2010

Alright I got it now, thanks for the help

-------------------------

 


 


 


 


KnowBrainer Speech Recognition » Commands, Scripts, and Macros - KnowBrainer » Timed event

Statistics
31789 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 2 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 576 guests browsing this forum, which makes a total of 578 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2020 FuseTalk™ Inc. All rights reserved.