Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Sieg

Pages: [1]
1
VoxCommando Basics and Core Features / Re: Do it again !
« on: August 25, 2013, 09:09:25 AM »
That's roxx !  ;D

(your map system is very intresting, I'll like to play with it)

Thank you very much.

2
VoxCommando Basics and Core Features / Re: Do it again !
« on: August 14, 2013, 05:30:36 AM »
Hi Sieg,

I think it is a good idea.  It is probably not possible to do it really well with VC as it is now, but I can probably make some modifications to make this easier.

It sounds pretty cool. :)

3
VoxCommando Basics and Core Features / Do it again !
« on: August 13, 2013, 08:35:02 PM »
Hi,

I'm looking to do something like "Do it again X time", but I have a small prob.

Here is my code :

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="858" name="Encore" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Results.SetVar</cmdType>
    <cmdString>actif&amp;&amp;{PreviousCommand}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <if ifBlockDisabled="False" ifNot="True">
    <ifType>(A)Contains(B)</ifType>
    <ifParams>{Var.actif}&amp;&amp;Encore</ifParams>
    <then>
      <action>
        <cmdType>Results.SetVar</cmdType>
        <cmdString>encore&amp;&amp;{PreviousCommand}</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <action>
    <cmdType>VC.TellVox</cmdType>
    <cmdString>{Var.encore}</cmdString>
    <cmdRepeat>{1}</cmdRepeat>
  </action>
  <phrase>Recommence, Encore</phrase>
  <payloadRange optional="true">1,100</payloadRange>
  <phrase optional="true">fois</phrase>
</command>
( Encore == Again , in French ;) )

It work fine, but just if the last command does not have payloads, and if CommandName and Phrase are same.

I can't use {Last spoken} because the last is "Again". I did not find any solution about that in the forum, so if anyone has an idea, I'm interested. :)


4
VoxCommando Basics and Core Features / Re: Playload question
« on: August 06, 2013, 03:30:31 PM »
Hi,

I updated my second script and I'll doing something to include the process minimized in the tray.

Have fun ;)

5
VoxCommando Basics and Core Features / Re: Playload question
« on: August 03, 2013, 10:38:54 AM »
Sounds pretty cool.  I'd like to see those scripts if you care to share them with us.

I will look into adding a better way to update grammars and let you know if it is possible in an upcoming version.  If you don't hear anything about it in the next month, feel free to remind me!

Thanks :)


For my first ahk script :
Code: [Select]
#Include lib\xpath.ahk

ScanMePr(FolderP) {
Loop, %FolderP%, , 1  ; subfolders
{
FileGetShortcut, %A_LoopFileFullPath%, OutTarget
NomPr := RegExReplace(A_LoopFileName, "i).lnk$", "")
If ( || RegExMatch(OutTarget, "i).exe$") &&  !RegExMatch(OutTarget, "&")) {  ;des Exe, sans "&"
VOutput .= "<payload>`n<value>" . A_LoopFileFullPath . "</value>`n<phrase>" . NomPr . "</phrase>`n<subsetmatching>true</subsetmatching>`n</payload>`n"
}
else if (!RegExMatch(OutTarget, "\.")) { ; ou des dossiers
VOutput .= "<payload>`n<value>" . A_LoopFileFullPath . "</value>`n<phrase>Dossier " . NomPr . "</phrase>`n<subsetmatching>false</subsetmatching>`n</payload>`n"
}
}
Return %VOutput%
}


ExtW :="<<PayloadsRoot>"
ExtW .= ScanMePr(A_Programs . "\*.lnk")
ExtW .= ScanMePr(A_ProgramsCommon . "\*.lnk")
ExtW .= "</PayloadsRoot>"

IfExist, ../Xml/Launch.xml
FileDelete, ../Xml/Launch.xml

xpath_save(ByRef ExtW, "../Xml/Launch.xml")

The second :
Code: [Select]
#Include lib\xpath.ahk

ExtPR :="<<PayloadsRoot>"

WinGet, id, list,,, Program Manager
Loop, %id%
{
this_id := id%A_Index%
WinGet, Proc, ProcessName, ahk_id %this_id%,,
WinGetTitle, NamC, ahk_id %this_id%
NamP := RegExReplace(Proc, "i).exe$", "")

ExtPR .= "<payload>`n<value>" . NamP . "</value>`n<phrase>"
If(NamP=="explorer"){
ExtPR .=NamC
}
else{
ExtPR .=NamP
}
ExtPR .= "</phrase>`n<subsetmatching>true</subsetmatching>`n</payload>`n"
}

ExtPR .= "</PayloadsRoot>"

IfExist, ../Xml/Pactif.xml
FileDelete, ../Xml/Pactif.xml

xpath_save(ByRef ExtPR, "../Xml/Pactif.xml")

Voxcommando write & run a ahk script to focus or close the windows . ( I had some prob to do what I wanted with the process "explorer.exe", now I use the windows ID. ) :
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="342" name="Focus" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>File.WriteLine</cmdType>
    <cmdString>{Path.VC}\..\Ojib\Script\CVox.ahk&amp;&amp;WinActivate, ahk_id {1}</cmdString>    /* or  WinClose */
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Launch.RawParam</cmdType>
    <cmdString>{Path.VC}\..\Ojib\Script\CVox.ahk</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Switch, focus</phrase>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone">E:\Prog\Ojib\Xml\Pactif.xml</payloadFromXML>
</command>


Xpath.ahk is a script from Polyethene


For my third script I'll wait to finish it, and I'll post it here, if you are already intrested .

6
VoxCommando Basics and Core Features / Re: Playload question
« on: July 31, 2013, 01:28:07 PM »
D'écrire en français ce n'est pas si facile. ;)

Héhé , merci. ;)

I understand your English well so far. Feel free to post in English or French, as you prefer.
Thanks too. :)

I get excited when I see people really using the program in new ways, so I'm happy to see your question.  I would love to know more about what you are doing and why.

Well, I use 3 AHK scripts to generate payloadsXml :

* I use EventGhost with DirectoryWatcher, to Monitor the StartMenu folder, each change triggers my ahk script to generate a new xml file with the list of each shortcut in the folder. (just for the exe, and directories)
 ==> Launch

* For my second ahk script, whenever a task is created or destroyed, EventGhost triggers my script to create a list of every program who is running, and it create the playloadXml.
  ==> Focus, Close, Desactivate/Activate the associated Groups in VoxCommando

*My last script is a work in progress, it will spy my programs and windows, and create a list of the controls for each one.
(And maybe scan all the menu of a program, the first time, and create a playloadXml dedicated)



Thank you both of you for your quick answer. ;)

7
VoxCommando Basics and Core Features / Playload question
« on: July 30, 2013, 05:25:17 PM »
Hi,

In first, thank you for this wonderful software, i can't do without.
Secondly, sorry for my english, I'm french. ;)

I  searched on the forum, but i did not find a solution to my prob.

I use AutoHotKey to generate a PlayloadXml file dynamically, I use it for monitor some folders and some windows.
VoxCommando understand the change only after a quick restart, but this is too heavy for something of dynamic.
For this reason, I'm looking for a way to refresh the command list without to do a quick restart.

I don't know if it's possible with voxcommando or by an other way.

Anyway thank you for reading. ;)

Pages: [1]