Sign in to follow this  
Followers 0
PantZ4

Disable Keyboard?

12 posts in this topic

#1 ·  Posted (edited)

Can I disable the keyboard?

Btw how do I change the cursor? (I could find it on the help file)

Edited by Mr. Zero

Share this post


Link to post
Share on other sites



Unplug it.... :P

try

BlockInput(1)
gafrost blockinput() blocks the mouse and keyboard, i don't think autoit supports blockin gonly keyboard yet

[s]Autoit[/s]

Share this post


Link to post
Share on other sites

Unplug it.... :P

LOL

As for changing the cursor,

Are you talking about in a GUI or just normally?

Share this post


Link to post
Share on other sites

gafrost blockinput() blocks the mouse and keyboard, i don't think autoit supports blockin gonly keyboard yet

The call that BlockInput uses is the Microsoft api I believe, and it doesn't support just keyboard.


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

maby you can set each key on the keyboard to an hotkey that does absolutly nothing... I dont think the key will be passed to windows (not sure tho). Well that would be very ugly lol.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

AutoIt supports a maximum of 64 simultaneous hotkeys, so you will need to divide every key over a number of scripts

Edited by Manadar

Share this post


Link to post
Share on other sites

AutoIt supports a maximum of 64 simultaneous hotkeys, so you will need to divide every key over a number of scripts

That depends on how you write the code :P

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

That depends on how you write the code :)

How do you block the mouse from a gui? Like make it go busy/wait when it hoovers over a gui while its performing a function then make it go back to normal when the function is completed.

Share this post


Link to post
Share on other sites

How do you block the mouse from a gui? Like make it go busy/wait when it hoovers over a gui while its performing a function then make it go back to normal when the function is completed.

I think what your asking about is not blocking the mouse, just changing the cursor.

You'll need to look at a few functions

GUICtrlSetCursor

GUISetCursor


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

I think what your asking about is not blocking the mouse, just changing the cursor.

You'll need to look at a few functions

GUICtrlSetCursor

GUISetCursor

Thanks that was it. Silly me (once again). That does what I want it to do but I'm not getting the results from the gui that I like. I'm using the mousehoover udf to display what controls do by use of the statusbartext calls. When the user clicks on the button to execute what they have selected to be performed the statusbar still gets updated when the mouse goes over the controls even if the gui is disabled or mouse is busy/wait.

I'll see what else I can do but if you have any thoughts.

Share this post


Link to post
Share on other sites

Never mind. Figured out how to disable the mousehover (adlibdisable()) then reenabled it. DUH again

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