NewPlaza Posted November 19, 2013 Share Posted November 19, 2013 (edited) However, it'd be easy enough to place two mouse moves inside the BitOR where one moves to the location - 1 pixel and the other moves to the location + 1 pixel. I'd like to see that.... and probably use Edited November 19, 2013 by NewPlaza Link to comment Share on other sites More sharing options...
mrider Posted November 19, 2013 Share Posted November 19, 2013 (edited) While BitOR(MouseMove(MouseGetPos(0) - 1, MouseGetPos(1)), MouseMove(MouseGetPos(0) + 1, MouseGetPos(1)), Sleep(3000), 1) WEnd As I say, I'm cheating with this code. The code by guinness is actually shorter. There's actually 5 lines of code compressed using BitOR. I'm really doing this: While 1 MouseMove(MouseGetPos(0) - 1, MouseGetPos(1)) MouseMove(MouseGetPos(0) + 1, MouseGetPos(1)) Sleep(3000) WEnd Edited November 19, 2013 by mrider How's my riding? Dial 1-800-Wait-There Trying to use a computer with McAfee installed is like trying to read a book at a rock concert. Link to comment Share on other sites More sharing options...
BrewManNH Posted November 20, 2013 Share Posted November 20, 2013 That would work, unless you're using a video player at the time, because it will affect video players that detect mouse movement to show the player controls. I found this out the hard way with VLC player and a mouse movement script like that. Even a very quick one pixel mouse move is enough to trigger the controls to show up occasionally on it. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
BrewManNH Posted November 20, 2013 Share Posted November 20, 2013 3 lines.. DllCall('kernel32.dll','long', 'SetThreadExecutionState', 'long', 0x80000003) ; No clue what this value is? While Sleep(100) WEndThat "0x80000003" number was in the original script so when I copied and pasted it there I didn't check it. It stands for BitOr(ES_CONTINUOUS, $ES_DISPLAY_REQUIRED, $ES_SYSTEM_REQUIRED) in case any one really is that interested.I've used this script, or something very similar to it, in the last job I was working at when the corporate office decided to put every computer to sleep after an hour without bothering to check if they'd be able to be woken up remotely. This eliminated having to drive an hour and a half just to wake up a room of computers that needed updates. trancexx 1 If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
NewPlaza Posted November 20, 2013 Share Posted November 20, 2013 3 lines.. DllCall('kernel32.dll','long', 'SetThreadExecutionState', 'long', 0x80000003) ; No clue what this value is? While Sleep(100) WEnd That "0x80000003" number was in the original script so when I copied and pasted it there I didn't check it. It stands for BitOr(ES_CONTINUOUS, $ES_DISPLAY_REQUIRED, $ES_SYSTEM_REQUIRED) in case any one really is that interested. I've used this script, or something very similar to it, in the last job I was working at when the corporate office decided to put every computer to sleep after an hour without bothering to check if they'd be able to be woken up remotely. This eliminated having to drive an hour and a half just to wake up a room of computers that needed updates. BrewManNH, How could you temporarily disable that command to allow the screen saver to come on without having the exit the program? Link to comment Share on other sites More sharing options...
BrewManNH Posted November 21, 2013 Share Posted November 21, 2013 Take the second function in that script that I got that line from, there's a function in the thread that turns it on and off. Just hotkey that function. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator 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