Registering and logging in removes this ad.
Registering and logging in removes this ad.
Command to turn off microphone And Lock workstation

Declare Function LockWorkStation Lib "user32" () As integer
Sub Main
HeardWord "microphone", "off"
LockWorkStation
End Sub
' this is a function that I often use when leaving my workstation.
' it will turn off the microphone and then lock the workstation
' so no one else can fiddle with your programs


That's a very nice command!
That's a very nice command! May I suggest that instead of using the HeardWord instruction to turn the microphone off, that you use the following instead:
SetMicrophone 0
I have never had very good luck with HeardWord instruction.
I suppose you have to login
I suppose you have to login manually when you return?
You have to enter your
You have to enter your password to unlock your screen. You don't have to log on fully, once more!
Would it be possible to
Would it be possible to leave natspeak in some special state (compare to the state "sleeping"), so the unlock can be done with just one speech command?
The answer should be no if the workstation cannot be locked if natspeak is in a running state.
If that is NOT the case, defining states can be established in natlink/unimacro. But maybe in AdvancedScript as well.
Quintijn