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.


Topics - Aniv_D

Pages: [1]
1
Здравствуйте jitterjames!

Возникла проблема (не у меня, а у другого человека) с воспроизведением звуковых файлов
действием Sound.PlayWav (действие Audio.Play даёт такой же результат).
Вместо него воспроизводится стандартный звук от Windows (Windows Background вроде бы).
В логах никаких ошибок не наблюдается.
Формат wav файлов в порядке. Я у себя проверял данные звуковые файлы и они воспроизводятся нормально.

Система на которой данная проблема:
Windows 11 German
VoxCommando v2.3.1.1b

Может быть у Вас будет какая либо идея решения данной проблемы?
Заранее спасибо!!!

Приложу файл с логами.

2
Python Scripting / How to implement IntFlags in VC
« on: December 07, 2020, 03:22:38 PM »
Hello, please tell me. here I have the code.
Code: [Select]
from enum import IntFlag

class status(IntFlag):
    Docked = 1
    Landed = 2
    LandingGearDown = 4
    ShieldsUp = 8
    SuperCruise = 16
    FlightAssistOff = 32
    HardpointsDeployed = 64
    InWing = 128
    LightsOn = 256
    CargoScoopDeployed = 512
    SilentRunning = 1024
    ScoopingFuel = 2048
    SrvHandbrake = 4096
    SrvUsingTurretView = 8192
    SrvTurretRetracted = 16384
    SrvDriveAssist = 32768
    FsdMassLocked = 65536
    FsdCharging = 31072
    FsdCooldown = 262144
    LowFuel = 524288
    OverHeating = 1048576
    HasLatLong = 2097152
    IsInDanger = 4194304
    BeingInterdicted = 8388608
    InMainShip = 16777216
    InFighter = 33554432
    InSrv = 67108864
    HudInAnalysisMode = 134217728
    NightVision = 268435456
    AltitudeFromAverageRadius = 536870912
    FsdJump = 1073741824
    SrvHighBeam = 2147483648


flags = status(16842765)

if status.Docked in flags:
    print("Docked found")
else:
    print("Docked not found")

if status.HasLatLong in flags:
    print("HasLatLong found")
else:
    print("HasLatLong not found")

if status.InMainShip in flags:
    print("InMainShip found")
else:
    print("InMainShip not found")

it works in Python 3.7.
how can this be implemented in IronPython in VC?
I tried to find a way on the Internet, but unfortunately I was not able to achieve success.

3
RegEx (Regular Expressions) / Need help with RegEx Pattern
« on: July 27, 2019, 03:01:14 AM »
Hello jitterjames! could you help with the pattern.
There is a Custom file.txt from which to find some text.
I made this pattern:
Code: [Select]
<(.*?)>\n\t\t<Primary\sDevice="Keyboard"\sKey="Key_(.*?)"\s/>\n\t\t<Secondary\sDevice="Keyboard"\sKey="Key_(.*?)"\s/>and it seems to work in Regular Expression Helper, but for some reason it does not want to work when executing the command. could you tell me what could be wrong

here is the command code:
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.4.7-->
<commandGroup open="True" name="Test" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="1337" name="find and save match's" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>File.Read</cmdType>
      <params>
        <param>D:\Custom.txt</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>&lt;(.*?)&gt;\n\t\t&lt;Primary\sDevice="Keyboard"\sKey="Key_(.*?)"\s/&gt;\n\t\t&lt;Secondary\sDevice="Keyboard"\sKey="Key_(.*?)"\s/&gt;</param>
        <param />
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <loop>
      <loopParams>
        <from>1</from>
        <to>{#M}</to>
      </loopParams>
      <loopActions>
        <action>
          <cmdType>File.AppendLine</cmdType>
          <params>
            <param>D:\Custom_Result.txt</param>
            <param>{Match.{j}.1}</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
      </loopActions>
    </loop>
  </command>
</commandGroup>

4
Bug Reports / Not work 2+ Confirms if emulate 2nd+ commands
« on: February 18, 2019, 02:05:52 AM »
I'm sorry, but I have a new batch of work for you. ;D
Bug or No? pic1.
addition: if you say no or keep silent, then an error will pop up in the log. but this is probably another problem (the function is not affected) pic2.
Thanks
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.4.5-->
<commandGroup open="True" name="Test 2+ Confirms" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="108" name="Start Command 1" enabled="true" alwaysOn="False" confirm="True" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Confirm Command 1 OK</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.TellVox</cmdType>
      <params>
        <param>Start Command 2</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Start Command 1</phrase>
  </command>
  <command id="127" name="Confirm Start Command 1" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Confirm Command 1</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.AddText</cmdType>
      <params>
        <param>Need confirm. Say Yes or No</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>Confirm.Start Command 1</event>
  </command>
  <command id="109" name="Start Command 2" enabled="true" alwaysOn="False" confirm="True" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Confirm Command 2 OK</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.TellVox</cmdType>
      <params>
        <param>Start Command 3</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Start Command 2</phrase>
  </command>
  <command id="164" name="Confirm Start Command 2" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Confirm Command 2</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.AddText</cmdType>
      <params>
        <param>Need confirm. Say Yes or No</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>Confirm.Start Command 2</event>
  </command>
  <command id="110" name="Start Command 3" enabled="true" alwaysOn="False" confirm="True" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Confirm Command 3 OK</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Start Command 3</phrase>
  </command>
  <command id="140" name="Confirm Start Command 3" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Confirm Command 3</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.AddText</cmdType>
      <params>
        <param>Need confirm. Say Yes or No</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>Confirm.Start Command 3</event>
  </command>
</commandGroup>

5
Hello
can fix it or continue to use the SendKeys action?
Thanks!

upd: remembered about UTF-8 encoding in txt file, but did not help.

6
Bug Reports / Google Speech not correct launch
« on: February 14, 2019, 04:05:28 PM »
суть бага в том, что сервер Google Speech не работает, если хотя бы один раз не открыть параметры плагина TCP.

1. запускаем VoxCommando. 2. даем голосовую команду на запуск сервера. 3. видим, что в браузере сервер запущен, но в параметрах плагина он не работает.

1. запускаем VoxCommando 2. открываем и закрываем параметры плагина. 3. даем голосовую команду на запуск сервера. 4. видим, что сервер как в браузере так и в параметрах запущен и корректно работает.

7
Python Scripting / Module Win32API in plugin PY
« on: March 01, 2018, 01:02:54 PM »
Google Translate.

Hello.
You can tell how to implement switch keyboard layout through Python
on the Internet found that you need to use this code:
Code: [Select]
import win32api
win32api.LoadKeyboardLayout ("00000409", 1)

but at its execution produces an error in the log:
python ready
Line: 1 >> import win32api
ImportError: No module named win32api


I downloaded pywin32-223.win32-py2.7.exe and unpacked it and copied the contents it into
"VoxCommando\plugins\PY\Lib\site-packages"
At me it left here so on pic.1 but the error remained.
what am I doing wrong?

and if you are not complicated then you can tell how to do the following. command
checking the current layout of the language
if the layout is equal to Russian, then switch it to English


Thanks!

Pages: [1]