Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/29/2020 in Posts

  1. Group Policy would still be the best option imho: It can be managed centrally You can apply it only to particular AD User group, for example we apply these settings to our Kiosk, Citrix and RDS users, but don't want this being applied to domain admin accounts, system account or support accounts on those systems. If those users log on to a company desktop/laptop these settings aren't applied. My 2cents
    2 points
  2. Doesn’t sound like you’re working too much if your screen locks every 15 minutes and you’re complaining about it. You’re not really busy and you’re not really using the computer anyway
    2 points
  3. don't loose your job over a locked PC
    2 points
  4. BigDaddyO

    How to? AU3 --> C++

    If that were true, you wouldn't be able to run a script from ScITE either. Running an .a3x is almost the same as launching your script from Scite F5. the executor is AutoIt3.exe which is know and not blocked by just about every AV tool out there.
    1 point
  5. Some example code to test if concept still works used version 3.05.1 output.txt will contain the result (on my system about 30 seconds to analyze full screen which you probably normally should not do) Tweaking with scaling somewhere above 4.0 scaling gives some nice results certainly on black/white areas. However 8.0 is much to high. #include <GUIConstantsEx.au3> #include <ScreenCapture.au3> local $TIF_FILENAME="c:\temp\test.tif" Local $TESS_PARAMS= $TIF_FILENAME & " output" Local $TESS_EXE=@ProgramFilesDir & "\Tesseract-OCR\tesseract.exe" local $TWorkDir="C:\temp\" Local $iScale = 8.0 ;1.0 is without any scaling SaveTiffImage() sleep(1000) ; Little time for saving the file AnalyzeImage() Func SaveTiffImage() _GDIPlus_Startup() Local Const $iW = @DesktopWidth , $iH = @DesktopHeight Local $hHBmp = _ScreenCapture_Capture("", 0, 0, $iW, $iH) ;create a GDI bitmap by capturing 1/16 of desktop Local $hBitmap = _GDIPlus_BitmapCreateFromHBITMAP($hHBmp) ;convert GDI bitmap to GDI+ bitmap _WinAPI_DeleteObject($hHBmp) ;release GDI bitmap resource because not needed anymore Local $hBitmap_Scaled = _GDIPlus_ImageScale($hBitmap, $iScale, $iScale, $GDIP_INTERPOLATIONMODE_NEARESTNEIGHBOR) ;scale image by 275% (magnify) ; Save resultant image _GDIPlus_ImageSaveToFile($hBitmap_Scaled, $TIF_FILENAME) ;cleanup resources _GDIPlus_BitmapDispose($hBitmap) _GDIPlus_BitmapDispose($hBitmap_Scaled) _GDIPlus_Shutdown() EndFunc ;==>Example func AnalyzeImage() Local $hTimer = TimerInit() ; Begin the timer and store the handle in a variable. shellexecutewait($TESS_EXE, $TESS_PARAMS, $TWorkDir) Local $fDiff = TimerDiff($hTimer) ; Find the difference in time from the previous call of TimerInit. The variable we stored the TimerInit handlem is passed as the "handle" to TimerDiff. consolewrite( ($fDiff/1000) & "seconds passed") EndFunc
    1 point
×
×
  • Create New...