Jump to content

*VAULTER* - PC LOCKOUT


Valuater
 Share

Recommended Posts

  • Replies 117
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

so my script works now.....

V 0.3

-*fixed* prevent Win+Tab

-*added* new routine to find the Task Manager

-*added* find the Sysinternals Process Explorer also

Opt("WinTitleMatchMode",4)
Global $hdlTaskmgr

HotKeySet("^!{F9}", "unlock")

Func unlock()
  WinSetState ( $hdlTaskmgr, "", @SW_RESTORE)
  WinClose($hdlTaskmgr)
  WinSetState ( "classname=Progman", "",@SW_ENABLE)
  WinSetState ( "classname=Shell_TrayWnd", "", @SW_SHOW)
  WinMinimizeAllUndo ( )
  Send("{ALTUP}")
  Send("{CTRLUP}")
  exit
endfunc

Func WinKey()
endfunc

run("Taskmgr.exe /t")
WinWait("regexp=(?i)([Task][Manager])|([Process][Explorer])")
$hdlTaskmgr = WinGetHandle ("last")
WinSetState ( $hdlTaskmgr, "", @SW_HIDE )
WinSetState ( "classname=Progman", "",@SW_DISABLE)
WinSetState ( "classname=Shell_TrayWnd", "", @SW_HIDE)
WinMinimizeAll ( )

While 1
  Send("{ALTUP}")
  Send("{CTRLUP}")
  Send("{CTRLDOWN}")
  Send("{ALTDOWN}")
  sleep(100)
Wend

There are two ways to prevent Win+xyz Hotkeys:

-Write a Hook (impossible in AutoIt, because you cannot define a Callback)

-my Autoit solution: leave the modifiers pressed, there exist only ALT+CTRL+DEL that works

but I think about to lock the "Windows Security" Window to prevent a logoff......

(you must switch the current desktop for that)

AutoItMacroGenerator on my Homepage (Link 2)

Link to comment
Share on other sites

  • 2 weeks later...
  • Moderators

Hmm.. when I attempt to run this, I get an error:

Line 65 in misc.au3

Local $p = DllStructCreate ($struct)

Unknown function name.

Any ideas how to fix this?

Your not using beta... Alt+F5 in SciTe to run it.

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

I don't use SciTe. :o

Anyhow, I ran it manually from the start-menu (AutoIT->Run-script(beta) and it worked, but messed up. Now the task bar is only showing, and the desktop is locked. F9 does not unlock it. Hehehe, restarting comp, brb.

Link to comment
Share on other sites

I don't use SciTe. :o

Anyhow, I ran it manually from the start-menu (AutoIT->Run-script(beta) and it worked, but messed up. Now the task bar is only showing, and the desktop is locked. F9 does not unlock it. Hehehe, restarting comp, brb.

it was built on Windows Xp ( works on mine )

8)

NEWHeader1.png

Link to comment
Share on other sites

it was built on Windows Xp ( works on mine )

8)

I'm on XP as well. Going to try it again.

Edit: I don't know if you know this, but if no password is entered at the beginning of the script, it messes up and doesn't lock anything. The desktop disappears and only the taskbar is shown.

(Yes, it worked when I entered a password at the start.)

Edited by Somniis
Link to comment
Share on other sites

I'm on XP as well. Going to try it again.

Edit: I don't know if you know this, but if no password is entered at the beginning of the script, it messes up and doesn't lock anything. The desktop disappears and only the taskbar is shown.

(Yes, it worked when I entered a password at the start.)

FIXED

ver 1.0.4

March 06, 2006

8)

NEWHeader1.png

Link to comment
Share on other sites

  • 4 weeks later...
  • Moderators

Is it possible if i use this script on my pc at work to send the dat file to my emailadres when the filesize is more then 50kb?

Making your own script to monitor the size of the file
If FileGetSize($FileDat) / 1024 >= 50 Then
You could use Jdebs smtp mail script: http://www.autoitscript.com/forum/index.php?showtopic=23860

Those 2 combined should be an easy enough task?

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

this is very good i like it!

My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.
Link to comment
Share on other sites

  • Moderators

thanks

( and thanks for the support SmOke )

8)

No worries...

Edit:

Edited my edit :)

Edited by SmOke_N

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

Another question...

I don't find anything in the helpfile to hide the datfile.

Is it possible to use _FileWriteLog to a hidden file?

Sorry for the stupid question :">

FileSetAttrib(@ScriptDir & "\VAULT.Dat", "+H")

Oeps sorry... :) :">

Edited by Mosquitos

Sapiente vince, rex, noli vincere ferro!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...