Coder Social home page Coder Social logo

lamnhan066 / handleimgsearch Goto Github PK

View Code? Open in Web Editor NEW
31.0 3.0 26.0 341 KB

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

AutoIt 100.00%
autoit imagesearch inactive au3 handleimgsearch

handleimgsearch's People

Contributors

lamnhan066 avatar ltnhanst94 avatar lyogadi avatar salaamdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

handleimgsearch's Issues

HandleCapture Not Saving Images

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```

Black image captured on most handles when using _GlobalImgCapture()

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()```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.