That's roxx ! 
(your map system is very intresting, I'll like to play with it)
Thank you very much.

(your map system is very intresting, I'll like to play with it)
Thank you very much.
Would you like to say "Thanks!" for extra support or new features that we provided? Donations are gratefully accepted.
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.
Show posts Menu
Quote from: jitterjames on August 13, 2013, 10:36:00 PM
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.
<?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&&{PreviousCommand}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<if ifBlockDisabled="False" ifNot="True">
<ifType>(A)Contains(B)</ifType>
<ifParams>{Var.actif}&&Encore</ifParams>
<then>
<action>
<cmdType>Results.SetVar</cmdType>
<cmdString>encore&&{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>
)
Quote from: jitterjames on August 02, 2013, 12:22:02 PM
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!

#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")
#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")
<?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&&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>
Quote from: nime5ter on July 30, 2013, 09:08:32 PMD'écrire en français ce n'est pas si facile.

Quote from: jitterjames on July 30, 2013, 07:01:41 PMThanks too.
I understand your English well so far. Feel free to post in English or French, as you prefer.

Quote from: jitterjames on July 30, 2013, 07:01:41 PMI 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.
