tariqporter / gdip Goto Github PK
View Code? Open in Web Editor NEWOfficial GDI+ library for Autohotkey
Official GDI+ library for Autohotkey
I found an example using your library to get screen capture data, but while it seems to follow all of your function calls correctly, I couldn't figure out why it isn't working.
Could you try running the code and verify that either I'm using the library incorrectly or the library isn't working as expected?
Code here:
I'm triggering
pBitmap := Gdip_BitmapFromScreen()
saveFileTo := folderPath fileName
Gdip_SaveBitmapToFile(pBitmap, saveFileTo)
Gdip_DisposeImage(pBitmap)
but no image file is being saved. I don't understand what's not working, I even added debug logging into your functions to ensure they're all executing as expected, and making sure there weren't errors, like this all outputs expected results:
Sysget, x, 76
Sysget, y, 77
Sysget, w, 78
Sysget, h, 79
FileAppend, % "Debug - x: " . x . ", y: " . y . ", w: " . w . ", h: " . h . "`n", Log.txt
And all the relevant functions are being triggered (in order of execution: Gdip_Startup
, Gdip_BitmapFromScreen
, CreateCompatibleDC
, CreateDIBSection
, Gdip_CreateBitmapFromHBITMAP
, Gdip_SaveBitmapToFile
). But in the end, no file is saved. So really no idea why it isn't working. I do have Gdip dlls on my system lol... (windows 10). And I have tried running as admin. So not sure what else to do to make it work. Hopefully you can help.
What I'm trying to ultimately do after I get this example code working is loop trough the pixel data of a small region of the screen rather than actually save it to a file, so if you could do me a favor and advise how I would access the actual pixel data rather than format it as an image, that'd be greatly appreciated.
I don't make the examples show the draws on screen.
https://github.com/tariqporter/Gdip/blob/master/Gdip.Tutorial.1-Draw.Shapes.ahk
I'm using win10, i don't know how debug this. Can you help?
I know this might be a shot in the dark, not sure you even mess with AHK anymore
I've been using your old Gdip_PixelSearch MCode function from here:
https://autohotkey.com/board/topic/79077-gdip-pixelsearch/
Would love it if you cared to update it to support a variation parameter
This tutorial, and possibly others, instruct to download files from the old autohotkey.net domain which is now owned by a malicious company/group. Aside from this resulting in the script not working since the file doesn't exist, it seems like a huge security risk which could result an an infection since Internet Explorer is used to perform the download, and it could potentially encounter malicious code/glitch and get infected.
Error occurred when I start the Gdip.Tutorial.11-Using.BRAs.to.perform.animations.ahk.
Error: Call to nonexistent function.
Specifically: BRA_ListFiles(BRA, "", 1)
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.