Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

BlockInputEx

$
0
0
I'm hoping someone can/will pick up this project as I've got an issue at work.
Recently we've been required to be HIPPA compliant, which means that we must lock our keyboards when away from our computers.

Problem is, my 2nd pc is running all my autoit scripts to run my jobs automatically and due to the software we use, the scripts won't run while the pc is locked.

I was hoping to be able to use BlockInputEx to lock out anyone from using the pc except for pre-defined hotkeys to run specific jobs, however with the current version of BlockInputEx, it can't use send or mousemove (which my scripts need)

Also, I've had some problems with exiting my test. If I have _BlockInputEx(1), then when I use the exit hotkey, the scite window minimizes and the program does not exit.

Also, it states in the UDF to use the _IsPressed hex values for the keys you want excluded from blocking and It's still blocking mu excludes for only my numbers (esc, ctrl+alt+u and ctrl+alt+l are unblocked)

I'm running windows xp with autoit 3.3.6.0
[ autoit ]         
#include <BlockInputEx.au3> HotKeySet("1","_test1") HotKeySet("2","_test2") HotKeySet("^!l","_lock") HotKeySet("^!u","_unlock") HotKeySet("{esc}","_exit") While 1 Sleep(10) WEnd Func _test1() MsgBox(0,"","1 Key was pressed") EndFunc Func _test2() MsgBox(0,"","2 Key was pressed") EndFunc Func _lock() _BlockInputEx(1,"0x11|0x12|0x31|0x32|0x4C|0x55|0x1B") EndFunc Func _unlock() _BlockInputEx(0) EndFunc Func _exit() _unlock() Sleep(1000) Exit EndFunc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>