lamnhan066 / handleimgsearch Goto Github PK
View Code? Open in Web Editor NEWAn AutoIT UDF to search an image in an inactive window (Tìm toạ độ ảnh trong cửa sổ không hoạt động).
License: MIT License
An AutoIT UDF to search an image in an inactive window (Tìm toạ độ ảnh trong cửa sổ không hoạt động).
License: MIT License
the HandleCapture does not save images to the provided path. here is what i tried, it only returns a handle.
#include <Array.au3>
#include ".\HandleImgSearch.au3"
Local $handle = WinGetHandle(0x001A0AEA)
Local $x = 0
Local $y = 0
Local $width = 800
Local $height = 600
Local $isBMP = False
Local $savePath = @ScriptDir & "\captured_image.bmp"
Local $result = _HandleCapture($handle, $x, $y, $width, $height, $isBMP, $savePath, False)
If @error Then
MsgBox(16, "Error", "Capture failed. Error code: " & @error)
Else
MsgBox(64, "Success", "Capture successful. " & $result)
EndIf```
Certain applications, such as File Explorer, are captured flawlessly, while others like Visual Studio Code, Discord, netflix, steam, settings app, web browsers like Firefox and many many others result in a black image when captured. I am not sure why this is happening, maybe something to do with win32api? idk, i hope you can check into it.
#include "..\HandleImgSearch\HandleImgSearch.au3"
Sleep(1000) ; alt+tab
$hwnd = WinGetHandle("[ACTIVE]")
_GlobalImgInit($hwnd, 0, 0, -1, -1, False, True, 0, 0, 1)
_GlobalImgCapture()```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.