Command to turn off microphone And Lock workstation

rowead's picture

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

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?

rowead's picture

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.




view recent posts