2
« on: July 04, 2015, 03:12:43 PM »
Hello everyone!
There is a problem: I have mouse with Xbuttons and after i press XButton1 i talk in Team speak... In Hook settings is monitoring clicks of mouse, and then i push the XButton1 VC go to standby mode(i done macros this triggers). But then Hook monitoring mouse clicks there are many history in VC and also freezing mouse movements... After i write macros then focus in VC(unfocused.* and focused.*) changing do checking (Process is running ? ts3client_win64) if run do HookEnabled else HookDisable... And also checking then XButoon1 is Up... But after some time Hook don`t work(don`t monitoring mouse clicks). There are my group "Hook":
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.5.1-->
<commandGroup open="True" name="Hook" enabled="True" prefix="" priority="0" requiredProcess="" description="">
<command id="221" name="Launch Hook" enabled="true" alwaysOn="True" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Hook.Enable</cmdType>
<params />
<cmdRepeat>1</cmdRepeat>
</action>
<event>VC.Loaded</event>
</command>
<command id="199" name="Monitoring of Hook" enabled="true" alwaysOn="True" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<if ifBlockDisabled="False" ifNot="False">
<ifType>ProcessRunning</ifType>
<ifParams>ts3client_win64&&</ifParams>
<then>
<action>
<cmdType>Hook.Enable</cmdType>
<params />
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else>
<action>
<cmdType>Hook.Disable</cmdType>
<params />
<cmdRepeat>1</cmdRepeat>
</action>
</else>
</if>
<event>focused.*</event>
<event>Hook.Mouse.Up.XButton1</event>
</command>
<command id="190" name="Hook Vc.Stanby" enabled="true" alwaysOn="True" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<if ifBlockDisabled="False" ifNot="False">
<ifType>ProcessRunning</ifType>
<ifParams>ts3client_win64&&</ifParams>
<then>
<action>
<cmdType>VC.Standby</cmdType>
<params />
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else>
<action>
<cmdType>VC.StopMacro</cmdType>
<params />
<cmdRepeat>1</cmdRepeat>
</action>
</else>
</if>
<event>Hook.Mouse.Down.XButton1</event>
</command>
<command id="206" name="Hook Vc.On" enabled="true" alwaysOn="True" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<if ifBlockDisabled="False" ifNot="False">
<ifType>ProcessRunning</ifType>
<ifParams>ts3client_win64&&</ifParams>
<then>
<action>
<cmdType>VC.On</cmdType>
<params />
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else>
<action>
<cmdType>VC.StopMacro</cmdType>
<params />
<cmdRepeat>1</cmdRepeat>
</action>
</else>
</if>
<event>Hook.Mouse.Up.XButton1</event>
</command>
</commandGroup>
Question: How monitoring programs status in VC in background mode for example Team Speak and return parameter... Then Team Speak is off Hook disable then on enable then changing status of program then and changing parameter and Hook disable/enable.
Or simply then run TS or TS already running Hook is enable then TS shutdown or off Hook is disable...
Sorry my bad English. Thanks.