Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

help!!!!!!

$
0
0

I am just learning basic commands with autoit. Here is what i am trying to do. I need a script to keep the screen alive with mouse movement. After 4 hours if the mouse has not moved out of the mouse patern that was set it will kill the application rsntmain.exe and close. If the mouse is moved out of that pattern then i want to reset the 4 hour clock. Any help would be awesome. I have seen many scripts but non of them have all these features.  I found this if any of this can help please let me know.

 

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****

#AutoIt3Wrapper_icon=H:\Icons\Clock.ico
#AutoIt3Wrapper_outfile=H:\Projects\AutoIt\NoSleep.exe
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_Res_Comment=Prevents your computer from locking or going to screensaver as it normally would when idle
#AutoIt3Wrapper_Res_Description=Prevents your computer from locking or going to screensaver as it normally would when idle
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0
#AutoIt3Wrapper_Res_LegalCopyright=Copyright Mike Langford ©2009
#AutoIt3Wrapper_Res_Language=1033
#AutoIt3Wrapper_Run_AU3Check=n
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
Opt("TrayOnEventMode",1)
Opt("TrayMenuMode",1)
 
$AboutItem = TrayCreateItem("About")
TrayItemSetOnEvent(-1,"ReadList")
TrayCreateItem("")
$ExitItem = TrayCreateItem("Exit")
TrayItemSetOnEvent(-1,"ReadList")
 
Func ReadList()
$SelectedItem = TrayItemGetText(@TRAY_ID)
If $SelectedItem="Exit" Then
Exit
ElseIf $SelectedItem="About" Then
Call("About")
EndIf
EndFunc
 
 
Func About()
MsgBox(064,"No Sleep Utility","Prevents your computer from automatically locking or going to screen saver as it normally would." & @CRLF & "Copyright Mike Langford ©2009")
EndFunc
 
 
While 1
Sleep(30000)
$CurPos = MouseGetPos ( )
MouseMove ( $CurPos[0] + 1, $CurPos[1] )
MouseMove ( $CurPos[0] - 1, $CurPos[1] )
WEnd

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>