Sign in to follow this  
Followers 0
IceBlackIce

BlockInput but still able to send hotkeys

9 posts in this topic

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.

Share this post


Link to post
Share on other sites



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


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

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.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

same with XP

Remarks

If 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.

 

Share this post


Link to post
Share on other sites

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

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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())

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

well...i'll guess CTRL ALT DEL will do just fine ;)...thanks all

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