VoiceAttack
Profiles, Commands and Plugins => Profile and Command Discussions => Topic started by: Shinobi on October 22, 2018, 12:16:24 PM
-
Hi guys,
has anyone experience in using voiceattack with a windows tablet?
1.) Is it possible to bind a command to turn off the screen and lock the device?
2.) Is voiceattack running and listening also when the device is locked and can it turn on the screen automatically?
I wanna build a smart mirror, thats why i have this specific use case. Any feedback or suggestions are welcome!
Thanks a lot!
-
1.) Is it possible to bind a command to turn off the screen and lock the device?
Have you tried the "Lock Workstation" option of the "Windows Miscellaneous Functions" action(found under "Other >", "Windows ⯈", "Windows Miscellaneous Functions")?
-
thanks, i will check that out. any idea about VA activity when the device is locked?
-
Having a quick look at it, the speech engine itself actually stops working when the screen is locked, so VoiceAttack can't recognize speech on the lockscreen(this is a limitation of the Microsoft Speech Recognition Engine, not VoiceAttack itself).
-
thats actually not such a big problem. for the unlock i will probably use a finger print reader anyway. the locking/turn off screen function is more important. i will test it in the next few days...
-
I'm using the C# command execution to switch off monitor
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
public class VAInline
{
[System.Runtime.InteropServices.DllImport("user32.dll")]
public static extern IntPtr SendMessage(int hWnd, int Msg, int wParam, int lParam);
public void main()
{
SendMessage(0xFFFF, 0x0112, 0xF170, 2);
}
}