Search the Community
Showing results for tags 'locked computer'.
-
My company is moving from WIN7 to WIN10, I have had a script that runs in the middle of the night, when the computer is locked, to open an Excel spreadsheet, read a few cells, and generate an email. This has worked fine under WIN7, when I try to run under WIN10 it freezes when it gets to a line to handle an array. When I run without the computer locked the script runs as expected. After doing a lot of investigating, it looks like the following line reads a "0" from the Excel file instead of a text string, only when the computer is locked. Any ideas? $Driver1 = _Excel_RangeRead($oWorkbook, "Template", "H12") This is how I am opening the Excel file: Local $oExcel = _Excel_Open(False) Sleep(10000) $oWorkbook = _Excel_BookOpen($oExcel, $sFilePath, True, False)
-
Hi there, I would like to send out internal statistics in my office by email every night. Opening the program and sending the email with the picture attached is no problem. But the Screenshot is always just black, because the workstation is locked while the script is running at night (scheduled task). Any ideas on how to solve this? There is no screensaver active. Current code for capturing the screen: #include <ScreenCapture.au3> Local $hBmp ; Capture full screen $hBmp = _ScreenCapture_Capture("") ;~ Save bitmap to file _ScreenCapture_SaveImage("C:\Users\Administrator.SCHMITZ\Desktop\Umsatz-Mail\Statistik.png", $hBmp) Thanks a lot for your help
- 3 replies
-
- _screencapture
- locked workstation
-
(and 2 more)
Tagged with: