Jump to content
Sign in to follow this  
GianAutoitprogrammer

block ...

Recommended Posts

GianAutoitprogrammer

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
Beege

* 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
GianAutoitprogrammer

i just want to abort the shutdown/logoff/restart

im gonna edit

Share this post


Link to post
Share on other sites
twitchyliquid64

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
Beege

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
GianAutoitprogrammer

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

Share this post


Link to post
Share on other sites
Beege

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  

×