hatchetman Posted September 21, 2005 Share Posted September 21, 2005 I think it would be great to have a script that does the following... Once activated it would require the user to enter a password to bypass and use the PC as normal... kind've like the Windows locked screen requires you to enter a password before the PC can be locked. I don't want to have to use the Windows locked screen even though that is the functionality that I desire. The issue I haven't quite figured out is how to prevent the user from just killing the script process by using Ctrl+Alt+Delete... any ideas? I know you can hide the tray icon but is it possible to hide the process all together? Link to comment Share on other sites More sharing options...
Valuater Posted September 21, 2005 Share Posted September 21, 2005 what are you after Script Idea for securing the desktop, need advise v3 Support hatchetman 0 14 Today, 10:20 AMLast post by: hatchetman How could I disable all user input except 1 key! Kind've like BlockInput with 1 exception v3 Support hatchetman 7 285 27th May 2005 - 05:58 AMLast post by: SiC_Goat Is it possible to make the InputBox modal? .... like the MsgBox can be modal? v3 Support hatchetman 2 224 26th May 2005 - 08:19 PMLast post by: gafrost ControlSend is sending the "(" as a 9 ! v3 Support hatchetman 13 298 23rd May 2005 - 09:43 PMLast post by: MHz Need DLL call to stop service on remote machine v3 Support hatchetman 0 51 23rd May 2005 - 01:35 PMLast post by: hatchetman Is There A Way To Read The Text..... that is highlighted v3 Support hatchetman 6 230 8th March 2004 - 10:32 AMLast post by: Nutster How Do You Change The Power Settings? v3 Support hatchetman 2 111 6th March 2004 - 02:13 PMLast post by: Larry Is There An Autoit Debugger? can I step through a script? v3 Support hatchetman 2 140 5th March 2004 - 12:09 PMLast post by: scriptkitty A Question About Disabled Controls.... how do you stop the user from.... v3 Support hatchetman 4 77 5th March 2004 - 11:46 AMLast post by: scriptkitty Is There A Way To Get Over Resolution Dependence.. v3 Support hatchetman 2 121 4th March 2004 - 10:02 AMLast post by: hatchetman Is There A Way To Close All Open Windows? Or at least count the number of open win v3 Support hatchetman 5 175 4th March 2004 - 09:52 AMLast post by: MattNis not sure i like your direction???8) Link to comment Share on other sites More sharing options...
seandisanti Posted September 21, 2005 Share Posted September 21, 2005 what are you after Script Idea for securing the desktop, need advise v3 Support hatchetman 0 14 Today, 10:20 AMLast post by: hatchetman How could I disable all user input except 1 key! Kind've like BlockInput with 1 exception v3 Support hatchetman 7 285 27th May 2005 - 05:58 AMLast post by: SiC_Goat Is it possible to make the InputBox modal? .... like the MsgBox can be modal? v3 Support hatchetman 2 224 26th May 2005 - 08:19 PMLast post by: gafrost ControlSend is sending the "(" as a 9 ! v3 Support hatchetman 13 298 23rd May 2005 - 09:43 PMLast post by: MHz Need DLL call to stop service on remote machine v3 Support hatchetman 0 51 23rd May 2005 - 01:35 PMLast post by: hatchetman Is There A Way To Read The Text..... that is highlighted v3 Support hatchetman 6 230 8th March 2004 - 10:32 AMLast post by: Nutster How Do You Change The Power Settings? v3 Support hatchetman 2 111 6th March 2004 - 02:13 PMLast post by: Larry Is There An Autoit Debugger? can I step through a script? v3 Support hatchetman 2 140 5th March 2004 - 12:09 PMLast post by: scriptkitty A Question About Disabled Controls.... how do you stop the user from.... v3 Support hatchetman 4 77 5th March 2004 - 11:46 AMLast post by: scriptkitty Is There A Way To Get Over Resolution Dependence.. v3 Support hatchetman 2 121 4th March 2004 - 10:02 AMLast post by: hatchetman Is There A Way To Close All Open Windows? Or at least count the number of open win v3 Support hatchetman 5 175 4th March 2004 - 09:52 AMLast post by: MattNis not sure i like your direction???8)very peceptive man. Link to comment Share on other sites More sharing options...
hatchetman Posted September 21, 2005 Author Share Posted September 21, 2005 very peceptive man.Well, I'll tell you... this is actually a side topic for my co-workers.... Here some of my coworkers' favorite past time is to get on unlocked computers and send email as that user saying things like "Next hapy hour... drinks are on me!"I think it would be funny to have my desktop appear vulnerable but when the user tries to move the mouse or load up my email account they wouldn't be able to continue until entering the password... strictly harmless, I assure you! Link to comment Share on other sites More sharing options...
Valuater Posted September 21, 2005 Share Posted September 21, 2005 this...http://www.autoitscript.com/forum/index.php?showtopic=15991#and thisexpandcollapse popup#include <GuiConstants.au3> #notrayicon Dim $Mpos_1 = "", $Mpos_1A = "", $Mpos_2 = "", $Mpos_2A = "", $line = "" Opt("GUICoordMode", 1) ;1=absolute, 0=relative, 2=cell Opt("MouseCoordMode", 0) ;1=absolute, 0=relative, 2=client HotKeySet( "{ESC}", "Get_Exit") HotKeySet("{F1}", "Get_pos_one") HotKeySet("{F2}", "Get_pos_two") HotKeySet( "{F3}", "Get_drawing") $GO = GuiCreate("RED_LINER", @DesktopWidth, @DesktopHeight) WinSetTrans("RED_LINER", "", 20) GUISetState() msgbox(0,"User Info", "Press *ESC* to exit" & @CRLF & "Press *F1* to set First position" & @CRLF & "Press *F2* to set Second position" & @CRLF & "Press *F3* to Draw the Line") While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Sleep(100) Wend Func Get_pos_one() GUICtrlDelete($line) $Ms_In = MouseGetPos() $Mpos_1 = $Ms_In[0] $Mpos_2 = $Ms_In[1] EndFunc Func Get_pos_two() GUICtrlDelete($line) $Ms_In2 = MouseGetPos() $Mpos_1A = $Ms_In2[0] $Mpos_2A = $Ms_In2[1] EndFunc Func Get_drawing() If $Mpos_1 = "" Or $Mpos_1A = "" Then MsgBox(0,"Draw Error", " Two points of reference are required") msgbox(0,"User Info", "Press *ESC* to exit" & @CRLF & "Press *F1* to set First position" & @CRLF & "Press *F2* to set Second position" & @CRLF & "Press *F3* to Draw the Line") Return EndIf $line=GuiCtrlCreateGraphic(-1, -1) GUICtrlSetGraphic(-1,$GUI_GR_PENSIZE, 3 ) GUICtrlSetGraphic(-1,$GUI_GR_COLOR, 0xff0000) ;GUICtrlSetGraphic(-1,$GUI_GR_MOVE, 50,0) ;GUICtrlSetGraphic(-1,$GUI_GR_LINE, 50,100) GUICtrlSetGraphic(-1,$GUI_GR_MOVE, $Mpos_1,$Mpos_1A) GUICtrlSetGraphic(-1,$GUI_GR_LINE, $Mpos_2,$Mpos_2A) GuiCtrlSetGraphic ($line, $GUI_GR_REFRESH); attempt to help redraw EndFunc Func Get_Exit() Exit EndFunccode just needs a little cleaning8) Link to comment Share on other sites More sharing options...
hatchetman Posted September 21, 2005 Author Share Posted September 21, 2005 this...http://www.autoitscript.com/forum/index.php?showtopic=15991#and thisexpandcollapse popup#include <GuiConstants.au3> #notrayicon Dim $Mpos_1 = "", $Mpos_1A = "", $Mpos_2 = "", $Mpos_2A = "", $line = "" Opt("GUICoordMode", 1) ;1=absolute, 0=relative, 2=cell Opt("MouseCoordMode", 0) ;1=absolute, 0=relative, 2=client HotKeySet( "{ESC}", "Get_Exit") HotKeySet("{F1}", "Get_pos_one") HotKeySet("{F2}", "Get_pos_two") HotKeySet( "{F3}", "Get_drawing") $GO = GuiCreate("RED_LINER", @DesktopWidth, @DesktopHeight) WinSetTrans("RED_LINER", "", 20) GUISetState() msgbox(0,"User Info", "Press *ESC* to exit" & @CRLF & "Press *F1* to set First position" & @CRLF & "Press *F2* to set Second position" & @CRLF & "Press *F3* to Draw the Line") While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Sleep(100) Wend Func Get_pos_one() GUICtrlDelete($line) $Ms_In = MouseGetPos() $Mpos_1 = $Ms_In[0] $Mpos_2 = $Ms_In[1] EndFunc Func Get_pos_two() GUICtrlDelete($line) $Ms_In2 = MouseGetPos() $Mpos_1A = $Ms_In2[0] $Mpos_2A = $Ms_In2[1] EndFunc Func Get_drawing() If $Mpos_1 = "" Or $Mpos_1A = "" Then MsgBox(0,"Draw Error", " Two points of reference are required") msgbox(0,"User Info", "Press *ESC* to exit" & @CRLF & "Press *F1* to set First position" & @CRLF & "Press *F2* to set Second position" & @CRLF & "Press *F3* to Draw the Line") Return EndIf $line=GuiCtrlCreateGraphic(-1, -1) GUICtrlSetGraphic(-1,$GUI_GR_PENSIZE, 3 ) GUICtrlSetGraphic(-1,$GUI_GR_COLOR, 0xff0000) ;GUICtrlSetGraphic(-1,$GUI_GR_MOVE, 50,0) ;GUICtrlSetGraphic(-1,$GUI_GR_LINE, 50,100) GUICtrlSetGraphic(-1,$GUI_GR_MOVE, $Mpos_1,$Mpos_1A) GUICtrlSetGraphic(-1,$GUI_GR_LINE, $Mpos_2,$Mpos_2A) GuiCtrlSetGraphic ($line, $GUI_GR_REFRESH); attempt to help redraw EndFunc Func Get_Exit() Exit EndFunccode just needs a little cleaning8)Thanks, I'll take a look at that. 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