GianAutoitprogrammer 0 Posted December 30, 2011 Share Posted December 30, 2011 (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 December 30, 2011 by GianAutoitprogrammer Link to post Share on other sites
Beege 125 Posted December 30, 2011 Share Posted December 30, 2011 * block only keyboardI 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/logoffYou want to block the ability to logoff? What are doing? Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator Link to post Share on other sites
GianAutoitprogrammer 0 Posted December 30, 2011 Author Share Posted December 30, 2011 i just want to abort the shutdown/logoff/restart im gonna edit Link to post Share on other sites
twitchyliquid64 23 Posted December 30, 2011 Share Posted December 30, 2011 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 Link to post Share on other sites
Beege 125 Posted December 30, 2011 Share Posted December 30, 2011 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. Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator Link to post Share on other sites
GianAutoitprogrammer 0 Posted December 30, 2011 Author Share Posted December 30, 2011 i am not going to block shutdown, but i want to abort it Link to post Share on other sites
Beege 125 Posted December 30, 2011 Share Posted December 30, 2011 Whats the difference in the end result? Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator Link to post Share on other sites
JohnOne 1,626 Posted December 30, 2011 Share Posted December 30, 2011 Search BlockInputEx in example scripts to block only keyboard. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to post Share on other sites
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now