Tuicemen.com

Advanced search  

News:

Share your Automated House and Ideas in the Members Section! :0~

Pages: [1]

Author Topic: Single instance PCC explained.  (Read 1293 times)

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 24
  • Offline Offline
  • Posts: 3150
  • Making Home Automation Fun!
    • Tuicemen.com
Single instance PCC explained.
« on: March 17, 2011, 05:38:15 am »

In the past PCC was capable of dual instances.
This allowed two PCC instances to run at the same time.
The original idea was so a user could have PCC open and still Act on AHP Macro (window command) alerts.
Some prefered to keep PCC closed and only have it open with a AHP macro.
The down side of this:
Some actions were slow to perform.
Some commands were still missed.
Even in dual instance mode if one started right after the other.
This cause one to over power the other or make them hard to understand.

The new single instance PCC allows for PCC to be running and perform AHP macros,or Bat files sending info to it.
If one doesn't wish PCC to be open it still will work and open to run the command.
It will then close again just as it did with the older versions
PCC is now capable of being open and running 2 tts windows commands sent to it.
I've tested this for TTS triggers and it waits for the first tts to finish before starting the second.
I haven't added code for sound files to allow them to wait but it is my plan.
The plus side of this:
With PCC open batch files or AHP macros that send commands to it now fire quicker. `:)
Why? It doesn't need to load any drivers if it is already running.
If two commands are set at the same time one waits for the other to finish before starting
PCC now works like a 3 instance program `:)
 (Chr)
« Last Edit: March 17, 2011, 05:41:54 am by Tuicemen »
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 24
  • Offline Offline
  • Posts: 3150
  • Making Home Automation Fun!
    • Tuicemen.com
Re: Single instance PCC explained.
« Reply #1 on: March 23, 2011, 11:32:16 am »

PCC will now handle sounds (mp3 or wav and user created commands) just like TTS events when triggered with a command line argument.
It will still only handle two in a row.
If first is a sound file it will wait till finished befor it starts the next command.
Simularly if it is a tts event it will wait untill that has finished before the next command starts.
As for user created commands running first! ???
I guess it would depend on how complicated it is!  :-\
 (Chr)
« Last Edit: March 23, 2011, 11:35:05 am by Tuicemen »
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!
Pages: [1]