Sign in to follow this  
Followers 0
tradertt

Scripting Help: Auto Shut Down Immediately When There Is A Mouse Movement Or Keyboard Keypress

66 posts in this topic

Hi

I would like to run something overnight but I want the computer to shut down immediately without anyone seeing what is happening on the screen when there is a Mouse Movement or Keyboard Keypress.

How can I do that?

Would it be possible to Set the moniter to BLACK OUT first then SHUT DOWN the whole computer as it takes sometime to Shut down and people might see what is happening in the background.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Not sure that that is a safe script. :)

Edited by Infinitex0

The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I have to ask this (I'm not trying to be stupid, this is a serious question)...what are you downloading that makes it so you want to be so secretive? :)

second, why won't you just use a password on the screensaver?

Edited by vollyman

Share this post


Link to post
Share on other sites

a friend of mine recently got fired for the same activity you seem to be doing! is it worth your job?

Share this post


Link to post
Share on other sites

Hard to answer that question. sometimes we do take risks. Would anyone be able to advise on how to do that Script? Thank you very much.

What I do for similar thing is just hide window. That is good enough for most of times.

Share this post


Link to post
Share on other sites

ah, I see. Not to be a boyscout here, but just some things to think about:

Does your company:

1. monitor bandwidth being used in off hours?

2. Scan PC's for unauthorized software?

3. fix the PC or reimage when it gets blown up by spyware?

I know my company does.

If you were to do something like this, some things to know.

a. Ctrl - Alt- Del to unlock the PC can't be monitored by AutoIt. They could unlock it and not do anything else and see what you are doing.

b. You could set your Torrent program to hide, so it wouldn't be seen unless they really start digging. The command line would be something like Run("Torrent", @SW_HIDE). You would have to setup what you want to download before hand. Not that I'm telling you to do something that can get you in trouble. :)

Share this post


Link to post
Share on other sites

ah, I see. Not to be a boyscout here, but just some things to think about:

Does your company:

1. monitor bandwidth being used in off hours?

2. Scan PC's for unauthorized software?

3. fix the PC or reimage when it gets blown up by spyware?

I know my company does.

If you were to do something like this, some things to know.

a. Ctrl - Alt- Del to unlock the PC can't be monitored by AutoIt. They could unlock it and not do anything else and see what you are doing.

b. You could set your Torrent program to hide, so it wouldn't be seen unless they really start digging. The command line would be something like Run("Torrent", @SW_HIDE). You would have to setup what you want to download before hand. Not that I'm telling you to do something that can get you in trouble. :)

Yes, if they monitor bandwidth. They will notice immediately. Torrent has huge uploads which not typical internet usage and its multiple connections.

Share this post


Link to post
Share on other sites

Maybe something like this:

#Include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1

Sleep ( 250 )

If _IsPressed("", $dll) Then ;; dont't sure with this

ProcessClose ( "torrent" ) ;;BitComet.exe or something like that :)

ExitLoop

EndIf

WEnd

DllClose($dll)

Share this post


Link to post
Share on other sites

Maybe something like this:

#Include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1

Sleep ( 250 )

If _IsPressed("", $dll) Then ;; dont't sure with this

ProcessClose ( "torrent" ) ;;BitComet.exe or something like that :)

ExitLoop

EndIf

WEnd

DllClose($dll)

welcome to the forum, and nice try, but i really don't think that will do anything... one second i'll write something up.


1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

Just a quick question. What is Torrent?:)


The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Share this post


Link to post
Share on other sites

#19 ·  Posted (edited)

ok, this is a combination of a few scripts. the ispressed() part of it is gary's from his secret password script, the mouse move is kind of just thrown together, and the monitor off is from a script by Vicc i think... just throw your process killing stuff into the MonitorOff Function, and the monitor will go off with activity, while your script kills the incriminating processes, then itself.

Const $WM_SYSCommand = 274, $SC_MonitorPower = 61808, $Power_On = -1, $Power_Off = 2
$dll = DllOpen("user32.dll")
opt("TrayIconDebug", 1)
Dim $oldpos[2]
Dim $pos[2]
#include <Misc.au3>
$HWND = WinGetHandle(WinGetTitle("", ""))
HotKeySet("{Esc}", "_Exit")
Dim $s_keys[117] = [116, _
        "01", "02", "04", "05", "06", "08", "09", "0C", "0D", "10", _
        "11", "12", "13", "14", "1B", "20", "21", "22", "23", "24", _
        "25", "26", "27", "28", "29", "2A", "2B", "2C", "2D", "2E", _
        "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", _
        "41", "42", "44", "45", "46", "47", "48", "49", "4A", "4B", "4C", _
        "4D", "4E", "4F", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", _
        "5A", "5B", "5C", "60", "61", "62", "63", "64", "65", "66", _
        "67", "68", "69", "6A", "6B", "6C", "6D", "6E", "6F", "70", _
        "71", "72", "73", "74", "75", "76", "77", "78", "79", "7A", _
        "7B", "7C", "7D", "7E", "7F", "80H", "81H", "82H", "83H", "84H", _
        "85H", "86H", "87H", "90", "91", "A0", "A1", "A2", "A3", "A4", "A5"]
$pos = MouseGetPos()
$start = TimerInit()
While 1
    Sleep(100)
    For $y = 1 To $s_keys[0]
        If _IsPressed ($s_keys[$y], $dll) Then
            MonitorOff(2)
        EndIf
    Next
    $oldpos[0] = $pos[0]
    $oldpos[1] = $pos[1]
    $pos = MouseGetPos()
    if Not ($oldpos[1] = $pos[1] Or $oldpos[0] = $pos[0]) Then
        MonitorOff(2)
    EndIf
WEnd
Func MonitorOff($s)
    DllCall($dll, "int", "SendMessage", "hwnd", $HWND, "int", $WM_SYSCommand, "int", $SC_MonitorPower, "int", $Power_Off)
    Sleep($s)
EndFunc   
Func MonitorOn($s)
    DllCall($dll, "int", "SendMessage", "hwnd", $HWND, "int", $WM_SYSCommand, "int", $SC_MonitorPower, "int", $Power_On)
    Sleep($s)
EndFunc   
Func _Exit()
    DllClose($dll)
    Exit
EndFunc

***edit***

if you couldn't tell by the _IsPressed() and dll calls, beta is required.

Edited by cameronsdad

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0