Jump to content

Recommended Posts

Posted

I'd like to block input and detect when it has been unblocked by someone pressing Ctrl-Alt-Del, then continue with code and so the script won't be stuck in an infinite loop (not so I can block it again).

Something like this:

...do some stuff
BlockInput(1)
While InputIsBlocked
    sleep(50)
WEnd
...do more stuff.

Any ideas?

Thanks,

Posted

  On 7/17/2009 at 10:05 PM, 'sb1920alk said:

I'd like to block input and detect when it has been unblocked by someone pressing Ctrl-Alt-Del, then continue with code and so the script won't be stuck in an infinite loop (not so I can block it again).

Something like this:

...do some stuff
BlockInput(1)
While InputIsBlocked
    sleep(50)
WEnd
...do more stuff.

Any ideas?

Thanks,

You decided to make the some filth? Say. Why you need it?

:)

Posted

  On 7/17/2009 at 10:16 PM, 'Yashied said:

You decided to make the some filth? Say. Why you need it?

:)

I want to use it while some .bats run in Windows PE. I'd prefer to lock the console, but I don't know of a way to do that in PE and this is the next best thing, but I don't want it to continue running after it's been unlocked. I suppose if there's no way to do it, I can call the .bat from the AutoIT script, but I prefer not since the others that need to use it all speak bat and not AutoIT.
Posted

  On 7/17/2009 at 10:24 PM, 'sb1920alk said:

I want to use it while some .bats run in Windows PE. I'd prefer to lock the console, but I don't know of a way to do that in PE and this is the next best thing, but I don't want it to continue running after it's been unlocked. I suppose if there's no way to do it, I can call the .bat from the AutoIT script, but I prefer not since the others that need to use it all speak bat and not AutoIT.

Sorry, but it does not look very plausible.
Posted

  On 7/17/2009 at 10:35 PM, 'Yashied said:

Sorry, but it does not look very plausible.

Ok. Thanks anyways. It won't hurt too much to have the "Block Input" script continue running after it's been unlocked with Ctrl-Alt-Del.

Any other ideas for protecting an unattended WinPE console?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...