Sign in to follow this  
Followers 0
GianAutoitprogrammer

block ...

8 posts in this topic

#1 ·  Posted (edited)

hi , its me again,

how to :

* block only keyboard

blockinput(1) = will block keyboard & mouse

* abort windows shutdown/restart/logoff

any help will be useful

thank you,

*edit

Edited by GianAutoitprogrammer

Share this post


Link to post
Share on other sites



* block only keyboard

I do not believe there is a function that blocks only keyboard. Pretty sure you would need to set a hook to do that.

* block windows shutdown/restart/logoff

You want to block the ability to logoff? What are doing?

Share this post


Link to post
Share on other sites

i just want to abort the shutdown/logoff/restart

im gonna edit

Share this post


Link to post
Share on other sites

Very little can fully block a shutdown/restart.

If a program is allowed to (and does) trigger a restart with the 'force' option set, your gone.


ongoing projects:-firestorm: Largescale P2P Social NetworkCompleted Autoit Programs/Scripts: Variable Pickler | Networked Streaming Audio (in pure autoIT) | firenet p2p web messenger | Proxy Checker | Dynamic Execute() Code Generator | P2P UDF | Graph Theory Proof of Concept - Breadth First search

Share this post


Link to post
Share on other sites

Ya I agree with twitchyliquid64 about blocking a shutdown.

I would try playing around with _WinAPI_SetWindowsHookEx() to do the keyboard block. I belive the example demonstrates the keyboard hook.

Share this post


Link to post
Share on other sites

i am not going to block shutdown, but i want to abort it

Share this post


Link to post
Share on other sites

Whats the difference in the end result?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0