Giter Site home page Giter Site logo

gdip's People

Contributors

mmikeww avatar tariqporter 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

gdip's Issues

Should this be working?

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:

https://autohotkey.com/board/topic/91585-screen-capture-using-only-ahk-no-3rd-party-software-required/

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.

malicious website

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.

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.