Search the Community
Showing results for tags 'screen lock'.
-
Hi guys, I am very much a newbie, but I am slowly learning by writting simple scripts. #include <Clipboard.au3> #include <File.au3> #include <Msgboxconstants.au3> Const $test_url = "https://www.autoitscript.com/site/" Const $hFileOpen = FileOpen(@WorkingDir & "\TEMP.txt",$FO_OVERWRITE) ; Open FIREFOX at https://www.autoitscript.com/site/ ShellExecute("firefox.exe",$test_url) Sleep(60000) ; Allow the page to open - no rush Send("^a") ; Select ALL text Sleep(1000) ; Pause for 1 second Send("^c") ; CTRL + C to copy text Sleep(1000) ; Pause for 1 second ; Write Data to File FileWrite($hFileOpen,_ClipBoard_GetData ($CF_UNICODETEXT)) ; Close Temp File FileClose($hFileOpen) MsgBox(262144,"Completed","Data Written To File") The above code basically just copies text on a webpage and outputs it to a file. Works well. I understand AutoIT a little more now. However, Send() doesn't work when my screen lock is on. :-( Is there a simple tweak which I can do so that it does work when my screen is locked, bearing in mind that I am not a guru like most users yet. I read somewhere the ControlSend works, but requires the browser "handle". Thanks in advance. Best regards, Pete
-
I work with the GPMC is on a VM that I RDP to. I need that RDP window to stop logging me out so frequently when I go to test a policy change on another machine and turn my head for 10 minutes. The next level up (of security staff), sets the 10 minute time limit policy so I can't edit that setting, but temporary circumvention is ok. I logon to the GPMC machine 25 times or more per day. Not exaggerating and I'm usually here for 12 hours so it's not as often as an 8 hour day. I've build a bunch of simple scripts with mouseclick or mouse move set to move the cursor a couple pixels and back again every 9 minutes. None of these seems to work though. They do move the mouse, but the machine will still go to sleep. I'm open to any alternate suggestions as well. Thanks for any help Sample 1 Sleep(500) For $i = 0 To 10000 $MPOS = MouseGetPos() Sleep(500) MouseMove($MPOS[0]+2, $MPOS[1]+2) MouseMove($MPOS[0], $MPOS[1]) Sleep(540000) Next Sample 2 $9_MINS = 54000 Sleep(3000) For $i=1 to 1000 MouseClick("Left", 300, 300, 1) Sleep($9_MINS) MouseClick("Left", 400, 100, 1) Sleep($9_MINS) MouseClick("Left", 500, 200, 1) Sleep($9_MINS) Next