L3G3NdKillEr Posted April 21, 2008 Posted April 21, 2008 heya..!! i want to lock my mouse control something like dis pos 450,400 n i did't find such suitable commands.. thanx in advance b'cuase i know u 'll help...!! i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================>
Xenobiologist Posted April 21, 2008 Posted April 21, 2008 _MouseTrap 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
L3G3NdKillEr Posted April 21, 2008 Author Posted April 21, 2008 _MouseTrapyeah it works fine but mouse still trapped after i close the script... i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================>
someone Posted April 21, 2008 Posted April 21, 2008 Are you sure the script is exiting? If you modify the help file and comment out the last _mousetrap() and exit the GUI, the mouse is released for me...Honestly though, did you try what the helpfile says?RemarksUse _MouseTrap() with no params to release the Mouse Cursor While ProcessExists('Andrews bad day.exe') BlockInput(1) SoundPlay('Music.wav') SoundSetWaveVolume('Louder') WEnd
L3G3NdKillEr Posted April 21, 2008 Author Posted April 21, 2008 Are you sure the script is exiting? If you modify the help file and comment out the last _mousetrap() and exit the GUI, the mouse is released for me...Honestly though, did you try what the helRemarksUse _MouseTrap() with no params to release the Mouse Cursorif i use it without param nothing happens.. if i use it like this: _mousetrap(100,100,100,100) so it realease after click... i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================>
someone Posted April 21, 2008 Posted April 21, 2008 OK a couple problems; 1 did you run the helpfile script, and does the mouse 'release' for you? 2 what do you mean nothing happened? the mouse wasn't released? Expound. Please show your code or something to reproduce what is going on for you. While ProcessExists('Andrews bad day.exe') BlockInput(1) SoundPlay('Music.wav') SoundSetWaveVolume('Louder') WEnd
Xenobiologist Posted April 22, 2008 Posted April 22, 2008 yeah i run from helpfile but same click problem happeningn i don't wanna click...Hi,eh what?Mega 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
L3G3NdKillEr Posted April 22, 2008 Author Posted April 22, 2008 Hi,eh what?Megam using simple _mousetrap(100,100,100,100) without anymore functions...!!yeah i also run helpfile script,n same problem happeneing means, when i close script but mouse still trapped...n mouse release after clicks... n i don't wanna click i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================>
Bert Posted April 22, 2008 Posted April 22, 2008 What are you trying to do with trapping the mouse? Can you describe your goal as in why the ouse needs to be trapped? The Vollatran project My blog: http://www.vollysinterestingshit.com/
L3G3NdKillEr Posted April 22, 2008 Author Posted April 22, 2008 i am making the sricpt for my client systems... n tats y i need to trap the mouse.. i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================>
Bert Posted April 22, 2008 Posted April 22, 2008 ummm...no offence, but that doesn't answer the question at all. You are telling us who it is for, but not what you need to do. Are you installing software and you need to keep the user from clicking on stuff, or trying to keep the user from accessing a application while it runs a process, or what? See my point? I'm not trying to be a dick, I'm trying to help. It makes it hard when we don't know just what you want to do. We may be able to guide you in a different direction that would make your job easier. The Vollatran project My blog: http://www.vollysinterestingshit.com/
Bert Posted April 22, 2008 Posted April 22, 2008 Example1: If you are trying to install software, maybe the software you are installing has command line switches. If so, you may be able to install it with a silent switch, or an answer file to provent the user from messing things up. Example 2: If installing software, you could use a SplashTextOn to hide the window that has the stuff you are trying to install Example 3: BlockInput(1) will lock both the keyboard and mouse Just trying to help, but it would be very helpful to use to know why you need to lock the mouse. The Vollatran project My blog: http://www.vollysinterestingshit.com/
Xenobiologist Posted April 23, 2008 Posted April 23, 2008 Hi, try this little example: #include <Misc.au3> Opt("OnExitFunc", "_exit") HotKeySet('{ESC}', '_exit') _MouseTrap(100, 110, 100, 110) Global $start = TimerInit() Do ToolTip('MouseTrap ON!') Until TimerDiff($start) >= 5000 Func _exit() _MouseTrap() ToolTip('MouseTrap OFF!') Sleep(2000) EndFunc ;==>_exit Mega 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
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