Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

primitive lock


  • Please log in to reply
5 replies to this topic
primitive
  • Guests
  • Last active:
  • Joined: --

; use password + NumpadEnter 

#singleinstance force

Splashimage,,b w1050 h777 x0 Y0 CWblack CTlime m9 b fs18 zh0,`n`n`nLOCK

loop

{

MouseMove, 3300 , 3330

sleep, 66

process, close, taskmgr.exe

sleep, 66

}

return



Mbutton::

Lbutton::

Rbutton::

Enter::

Escape::

Space::

Tab::

Backspace::

Delete::

Insert::

Up::

Down::

Left::

Right::

Home::

End::

Pgup::

Pgdn::

Lwin::

Rwin::

Appskey::

Scrolllock::

Control::

Alt::

Shift::

Return



::Password::

Exitapp

Return





enrica
  • Members
  • 117 posts
  • Last active: Feb 26 2016 11:15 PM
  • Joined: 21 Mar 2005
More primitive lock....
Password = password :)
#singleinstance force 
Process, Priority, , High
Splashimage,,b w1050 h777 x0 Y0 CWblack CTlime m9 b fs18 zh0,`n`n`nLOCK
Winminimizeall
Loop
{
MouseMove, 1666 , 366
sleep, 166
process, close, taskmgr.exe
sleep, 166
}
return

!F4::
!Tab::
^Tab::
+Tab::
^+Tab::
+!Tab::
^+!Tab::
^Esc::
^+!Esc::
+!Esc::
!Esc::
+Esc::
Alt::
Appskey::
Backspace::
CapsLock::
Control::
Delete::
Down::
End::
Enter::
Escape::
Home::
Insert::
Lbutton::
Left::
Lwin::
Mbutton::
Numpad0::
Numpad1::
Numpad2::
Numpad3::
Numpad4::
Numpad5::
Numpad6::
Numpad7::
Numpad8::
Numpad9::
NumpadDel::
NumpadDot::
NumpadEnd::
NumpadEnter::
NumpadHome::
NumpadIns::
NumpadLeft::
NumpadPgDn::
NumpadPgUp::
NumpadRight::
Pgdn::
Pgup::
Rbutton::
Right::
Scrolllock::
Shift::
Space::
Tab::
Up::
Rwin::
#r::
Return

:*:Password::
WinMinimizeAllUndo
Exitapp
Return

65.6E.72.69.63.61. (My hovercraft is full of eels)

vital
  • Members
  • 19 posts
  • Last active: Nov 29 2010 12:02 PM
  • Joined: 05 Oct 2005
i want to automatically unlock 2 minutes later,how can i do?
thanks

enrica
  • Members
  • 117 posts
  • Last active: Feb 26 2016 11:15 PM
  • Joined: 21 Mar 2005
This work but is very primitive:
#singleinstance force 
Process, Priority, , High
Splashimage,,b w1050 h777 x0 Y0 CWblack CTlime m9 b fs18 zh0,`n`n`nLOCK

SetTimer, Autoexit, 120000 ;time to unlock

Winminimizeall
Loop
{
MouseMove, 1666 , 366
sleep, 166
process, close, taskmgr.exe
sleep, 166
}
return

!F4::
!Tab::
^Tab::
+Tab::
^+Tab::
+!Tab::
^+!Tab::
^Esc::
^+!Esc::
+!Esc::
!Esc::
+Esc::
Alt::
Appskey::
Backspace::
CapsLock::
Control::
Delete::
Down::
End::
Enter::
Escape::
Home::
Insert::
Lbutton::
Left::
Lwin::
Mbutton::
Numpad0::
Numpad1::
Numpad2::
Numpad3::
Numpad4::
Numpad5::
Numpad6::
Numpad7::
Numpad8::
Numpad9::
NumpadDel::
NumpadDot::
NumpadEnd::
NumpadEnter::
NumpadHome::
NumpadIns::
NumpadLeft::
NumpadPgDn::
NumpadPgUp::
NumpadRight::
Pgdn::
Pgup::
Rbutton::
Right::
Scrolllock::
Shift::
Space::
Tab::
Up::
Rwin::
#r::
Return

Autoexit:
WinMinimizeAllUndo
exitapp
return

:*:Password::
WinMinimizeAllUndo
Exitapp
Return

65.6E.72.69.63.61. (My hovercraft is full of eels)

vital
  • Members
  • 19 posts
  • Last active: Nov 29 2010 12:02 PM
  • Joined: 05 Oct 2005
thank enrica!
i want to add another function, that is a tooltip "lock the computer 2 minutes later!" appearing,then lock. How can i do ?

enrica
  • Members
  • 117 posts
  • Last active: Feb 26 2016 11:15 PM
  • Joined: 21 Mar 2005
Hi Vital, sorry but I'm not a expert, I only make a very basically (primitive) script.
But I'm happy if can help you.
I don't understand if you want to combine both function (lock after 2 minute and then autoexit after 2 more minute)

You can add before the splashimage "lock":
Splashimage,,b w444 h33 x333 Y322 CWff0066 m9 b fs16 zh0, lock the computer 2 minutes later!.....
Sleep, 120000 ; 2 minute to lock

Or you call your lock script from another script
#singleinstance force
Splashimage,,b w444 h33 x333 Y322 CWff0066 m9 b fs16 zh0, lock the computer 2 minutes later!.....
Sleep, 120000 ; 2 minute to lock
Run, Lock.ahk  
;(or Run, Lock.exe)
exitapp

or maybe lock the pc after a 2 minute of inactivity
#Persistent
#InstallKeybdHook
#InstallMouseHook
SetTimer,lock,1000
Return

lock:
If A_TimeIdlePhysical >= 120000 ; 2 minute of keyword inactivity
Run, Lock.ahk  
;(or Run, Lock.exe)
;(or your lock code)
return

I suggest to ask in the help section; smart, expert and gentle people can help you better!.
ciao!
65.6E.72.69.63.61. (My hovercraft is full of eels)