KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: SHaring Macro to restart PDCC
Topic Summary:
Created On: 05/12/2020 10:07 AM
Status: Post and Reply
Linear : Threading : Single : Branch
 SHaring Macro to restart PDCC   - dicdoc - 05/12/2020 10:07 AM  
 SHaring Macro to restart PDCC   - Edgar - 05/12/2020 10:46 AM  
 SHaring Macro to restart PDCC   - dicdoc - 05/13/2020 05:45 AM  
Keyword
 05/12/2020 10:07 AM
User is offline View Users Profile Print this message

Author Icon
dicdoc
Top-Tier Member

Posts: 207
Joined: 07/31/2014

 

Here it is. I could not find other way than context menu to kill task

 

===== code 

SetMicrophone 0
Wait .5
SendKeys "^+{esc}", 1 ' opens Task Manager
Wait .8
SetMousePosition 1, 10, 10 ' prevents mouse to interfere with context menu
Wait.3
SendKeys "%p", 1
Wait .8
SendKeys "Phillips", 1
Wait .3
SendKeys "+{F10}",1
Wait.3
SendKeys "f",1
Wait.3
SendKeys "{enter}",1
Wait.2
ShellExecute "C:\Program Files (x86)\Philips Speech\Device Control Center\PDCC.exe", 1
SetMicrophone 1



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

Memory: 16GB Microphone Brand and Model: Rec Mic II Operating System: win 10, latest update; Surface Book 2, Processor (CPU) Type & Speed: I7 8650 Soundcard Brand and Model: none Speech Software: Dragon Medical Practice Edition, french version: 4.0 Using KnowBrainer?: No

 05/12/2020 10:46 AM
User is offline View Users Profile Print this message

Author Icon
Edgar
Top-Tier Member

Posts: 788
Joined: 04/03/2009

Write a Windows Batch file to do the "kill task" portion:

@echo off

taskkill /IM PDCC.exe /F /T

save these two lines somewhere accessible as:

killPDCC.bat

then your restart is:

ShellExecute "<somewhere accessible>\killPDCC.bat"
ShellExecute "C:\Program Files (x86)\Philips Speech\Device Control Center\PDCC.exe"

<somewhere accessible> is the full path to wherever you save your Batch file.



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

-Edgar
DPI 15.3, 64-bit Windows 10 Pro, OpenOffice & Word 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

 05/13/2020 05:45 AM
User is offline View Users Profile Print this message

Author Icon
dicdoc
Top-Tier Member

Posts: 207
Joined: 07/31/2014

Thanks wonderfull, works as a charm :-D !



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

Memory: 16GB Microphone Brand and Model: Rec Mic II Operating System: win 10, latest update; Surface Book 2, Processor (CPU) Type & Speed: I7 8650 Soundcard Brand and Model: none Speech Software: Dragon Medical Practice Edition, french version: 4.0 Using KnowBrainer?: No

Statistics
31594 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 1 users logged in.
The most users ever online was 3936 on 09/08/2015 at 11:44 AM.
There are currently 334 guests browsing this forum, which makes a total of 335 users using this forum.

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