protoid Posted April 6, 2008 Share Posted April 6, 2008 Is there any way to block mouse input only and not keyboard input during the execution of a program? Link to comment Share on other sites More sharing options...
JustinReno Posted April 6, 2008 Share Posted April 6, 2008 #NoTrayIcon $OldPosition = MouseGetPos() While 1 $NewPosition = MouseGetPos() If $OldPosition[0] <> $NewPosition[0] Or $OldPosition[1] <> $NewPosition[1] Then MouseMove($OldPosition[0], $OldPosition[1], 0) WENd Link to comment Share on other sites More sharing options...
Swift Posted April 6, 2008 Share Posted April 6, 2008 That doesn't really block it Justin. It just keeps it in the same spot. You can still right-click, left-click, middle-click...etc. Link to comment Share on other sites More sharing options...
d4rk Posted April 6, 2008 Share Posted April 6, 2008 (edited) yoh, too late Edited April 6, 2008 by d4rk [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
protoid Posted April 6, 2008 Author Share Posted April 6, 2008 and is there a way to use blockinput to block all but one key? Link to comment Share on other sites More sharing options...
d4rk Posted April 6, 2008 Share Posted April 6, 2008 #include <Misc.au3> while 1 if _IsPressed("4a") then; for "J" send({delete}) endif [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
Swift Posted April 6, 2008 Share Posted April 6, 2008 and is there a way to use blockinput to block all but one key?Yep, it already does that! Haha Ctrl+Alt+Del are keys that block-input doesn't work on! Link to comment Share on other sites More sharing options...
protoid Posted April 6, 2008 Author Share Posted April 6, 2008 Does _ispressed work while input is blocked? I can't get it to... Link to comment Share on other sites More sharing options...
d4rk Posted April 6, 2008 Share Posted April 6, 2008 Does _ispressed work while input is blocked?I can't get it to...no, _ispressed can't work while input is blocked, in my previous post, i just want to stop user from send a "J" by sending a delete (to delete the "J"), you can do it with all the another key, except 1 key as you want, i don't think this is a good solution, but that's all i can think now [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
rasim Posted April 6, 2008 Share Posted April 6, 2008 Hi guy`s see here Link to comment Share on other sites More sharing options...
protoid Posted April 6, 2008 Author Share Posted April 6, 2008 (edited) thanks guys! program's done, now it's time to sleep... Edit: btw- is there a fast/easy way to make the cursor invisible? Edited April 6, 2008 by protoid Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 6, 2008 Share Posted April 6, 2008 Hi,maybe GUISetCursor with 16Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
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