FinalVersion Posted April 2, 2010 Posted April 2, 2010 I want to lock my mouse to StarCraft II's window, so it can't go outside the window border. When SC2 is run in window mode, and you go to move around the map, if your mouse goes outside the window, it stops. So what would be the simplest way to keep it within the border. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center]
somdcomputerguy Posted April 2, 2010 Posted April 2, 2010 FinalVersion, if you need any help modifying or using that script, MouseTrap, post here and I'll do what I can do. picea892, thanks for the push. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
FinalVersion Posted April 3, 2010 Author Posted April 3, 2010 I just tried it out by default, it locks in a pretty small region, and i've looked through the script, and can't find it setting it to a specific region. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center]
Skrip Posted April 3, 2010 Posted April 3, 2010 I just tried it out by default, it locks in a pretty small region, and i've looked through the script, and can't find it setting it to a specific region.Look up _MouseTrap in Misc.au3 [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]
somdcomputerguy Posted April 3, 2010 Posted April 3, 2010 I just tried it out by default, it locks in a pretty small region, and i've looked through the script, and can't find it setting it to a specific region.Move/Resize the window, hit the 'Remember' button. It has a fairly good 'memory' then, much better than mine anyway.. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
Thudo Posted July 21, 2010 Posted July 21, 2010 (edited) Can we have MouseTrap actually detect the presence of a window using WinExists or WinActivate then lock the user in that window? Also, can MouseTrap or Autoit in general stop users from Cntl+Alt+Delete'ing there way outside the window? Edited July 21, 2010 by Thudo
JohnOne Posted July 21, 2010 Posted July 21, 2010 Can we have MouseTrap actually detect the presence of a window using WinExists or WinActivate then lock the user in that window?Also, can MouseTrap or Autoit in general stop users from Cntl+Alt+Delete'ing there way outside the window?Well that would be quite silly wouldnt it, why would you want to stop someone from accessing there own computer? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Thudo Posted July 21, 2010 Posted July 21, 2010 Its called "our environment" where we do not have Windows authentication via AD. We're artificially creating it with an Autoit screensaver so it if a user fails to put in a correct password after the screensaver ends and the "enter password" prompt comes up the system must be locked. Thats the security requirement.
JohnOne Posted July 21, 2010 Posted July 21, 2010 Im no expert, but I,m sure there are ways of locking a computer other than disabling built in windows security features. Especially when you have full adminisrtative control over it, seems like an odd way to go about such a thing. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Thudo Posted July 21, 2010 Posted July 21, 2010 (edited) Agreed except CTRL+ALT+DELETE pretty much trumps all. Its always present to get out of a situation. Regardless.. I'm trying to lock the mouse in the middle of the screen using the following when the "Login" box comes up: #include <GuiConstantsEx.au3> #include <Misc.au3> AdlibRegister("_MouseTrapCurrent") Func _MouseTrapCurrent() if winexists("Login") then _MouseTrap(550,500,750,600) else _MouseTrap() endif EndFuncSo the script should auto-detect the instance of a "login" box on the desktop but oddly its not. I'm sure I've over-simplified this. Edited July 21, 2010 by Thudo
lolau3 Posted August 31, 2021 Posted August 31, 2021 On 7/21/2010 at 1:45 PM, JohnOne said: Well that would be quite silly wouldnt it, why would you want to stop someone from accessing there own computer? you can death loop already. youre silly.
Developers Jos Posted August 31, 2021 Developers Posted August 31, 2021 14 hours ago, lolau3 said: you can death loop already. youre silly. This us the best you can do after signing up, using a 11 years old thread to post a bullshit reply ? *CLICK* SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts