Shaarad Posted April 2, 2009 Share Posted April 2, 2009 The motion detector is the program which secures your data when you are away form your PC leaving it ON for 5-10 minutes. Just start it, enter the password & activate it. Any movement or click of mouse & key press of keyboard in your absense will result in turning off your computer. When you return, deactivate the program by pressing Shift + . (the buttons you press to type the character > ) after deactivating it, you can continue your work. However there are some bugs : the program turns off the PC when i) The screen saver is activated. ii) any notification icon or notice is displayed automatically. The password for this program (by default is mypass. You can change it by editing it in the script. I am new to this language and hence, please make this program better by editing it.Thank you.- Shaarad Dalvi.Motion_Detector.au3 Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
spudw2k Posted April 2, 2009 Share Posted April 2, 2009 The motion detector is the program which secures your data when you are away form your PC leaving it ON for 5-10 minutes. Just start it, enter the password & activate it. Any movement or click of mouse & key press of keyboard in your absense will result in turning off your computer. When you return, deactivate the program by pressing Shift + . (the buttons you press to type the character > ) after deactivating it, you can continue your work. However there are some bugs : the program turns off the PC when i) The screen saver is activated. ii) any notification icon or notice is displayed automatically. The password for this program (by default is mypass. You can change it by editing it in the script. I am new to this language and hence, please make this program better by editing it.Thank you.- Shaarad Dalvi.Interesting. Any reason you don't simply lock the workstation instead? Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Shaarad Posted April 2, 2009 Author Share Posted April 2, 2009 Interesting. Any reason you don't simply lock the workstation instead?how to do it ?? please tell me so that I can improve myself Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Developers Jos Posted April 2, 2009 Developers Share Posted April 2, 2009 Send("{LWINDOWN}l{LWINUP}") 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. Link to comment Share on other sites More sharing options...
DaRam Posted April 2, 2009 Share Posted April 2, 2009 Or hit the Windows Key and L (That wound be the key with the Windows Logo and the L Key)how to do it ?? please tell me so that I can improve myself Link to comment Share on other sites More sharing options...
GEOSoft Posted April 2, 2009 Share Posted April 2, 2009 Or hit the Windows Key and L (That wound be the key with the Windows Logo and the L Key)I think that's what Jos was doing with his code, although I must admit that the character between {LWINDOWN} and {LWINUP} looks more like a 1 (0ne) than an l (L) George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Developers Jos Posted April 2, 2009 Developers Share Posted April 2, 2009 I think that's what Jos was doing with his code, although I must admit that the character between {LWINDOWN} and {LWINUP} looks more like a 1 (0ne) than an l (L)Its a lowercasde L 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. Link to comment Share on other sites More sharing options...
spudw2k Posted April 2, 2009 Share Posted April 2, 2009 (edited) Run(@WindowsDir & "\system32\rundll32.exe user32.dll,LockWorkStation","",@SW_HIDE) Edited April 2, 2009 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
DJKMan Posted April 17, 2009 Share Posted April 17, 2009 Are you sure your script actually shuts down the computer? I don't see the shutdown command anywhere. Interesting concept by the way. Link to comment Share on other sites More sharing options...
spudw2k Posted April 17, 2009 Share Posted April 17, 2009 I don't see the shutdown command anywhere.I think he's trying to accomplish this with the Send commands for LWinkey and then uuuuuuu.... which would only work if the welcome screen is enabled I believe. There a systematic way in Autoit to do that. The func is called Shutdown() I believe Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF 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