IceBlackIce Posted September 15, 2005 Posted September 15, 2005 Hi all, At the moment im using AutoIt to install a bunch of software and do some routines at my office...the problem is...even though i have made a series of msgbox advising users/co-workers to not click or use the keyboard..that is being utterly ignored so what i though of was of BlockInput function...but still able to make it disable by an hotkey i define in the script... That is not possible is it? at least i was not been able to make it work... Can i have some ideas from you? To move the mouse to pixel 1x1 or something is not possible cause i have some movements in the script... Thanks for your patiente.
GaryFrost Posted September 15, 2005 Posted September 15, 2005 Far as I know you can't, you either block input or you don't SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
BigDod Posted September 15, 2005 Posted September 15, 2005 Hi all,At the moment im using AutoIt to install a bunch of software and do some routines at my office...the problem is...even though i have made a series of msgbox advising users/co-workers to not click or use the keyboard..that is being utterly ignored so what i though of was of BlockInput function...but still able to make it disable by an hotkey i define in the script...That is not possible is it? at least i was not been able to make it work...Can i have some ideas from you? To move the mouse to pixel 1x1 or something is not possible cause i have some movements in the script...Thanks for your patiente.<{POST_SNAPBACK}>Could you not just unblock input at end of script Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
seandisanti Posted September 15, 2005 Posted September 15, 2005 Hi all,At the moment im using AutoIt to install a bunch of software and do some routines at my office...the problem is...even though i have made a series of msgbox advising users/co-workers to not click or use the keyboard..that is being utterly ignored so what i though of was of BlockInput function...but still able to make it disable by an hotkey i define in the script...That is not possible is it? at least i was not been able to make it work...Can i have some ideas from you? To move the mouse to pixel 1x1 or something is not possible cause i have some movements in the script...Thanks for your patiente.<{POST_SNAPBACK}>even when blockinput is enabled, ctrl alt delete works, and after escaping from that screen (atleast in 2k) input is no longer blocked.
GaryFrost Posted September 15, 2005 Posted September 15, 2005 same with XPRemarksIf BlockInput is enabled, the Alt keypress cannot be sent!The table below shows how BlockInput behavior depends on Windows' version; however, pressing Ctrl+Alt+Del on any platform will re-enable input due to a Windows API feature. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
seandisanti Posted September 15, 2005 Posted September 15, 2005 same with XP<{POST_SNAPBACK}>ah good deal. i didn't know it was mentioned in the help file, i just knew it from having to do it myself a few times with scripts gone awry
MSLx Fanboy Posted September 15, 2005 Posted September 15, 2005 Currently BlockInput() uses a DLL call (also called BlockInput) for this functionality. How much I would like to see a "HotKeySet" override for this, I don't see it as happening in the near future without figuring out a way to trap the input from keyboard and mouse Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
GaryFrost Posted September 15, 2005 Posted September 15, 2005 can trap the mouse, no problem _MouseTrap in beta, problem is to trap keyboard but allow certain keys. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
IceBlackIce Posted September 16, 2005 Author Posted September 16, 2005 well...i'll guess CTRL ALT DEL will do just fine ...thanks all
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