v2 reporting errors in gdip.ahk as #Include Topic is solved

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
ahketype
Posts: 191
Joined: 27 Oct 2016, 15:06
Location: Yorkshire, UK

v2 reporting errors in gdip.ahk as #Include

Post by ahketype » 29 Jan 2023, 16:32

Hi, I was chugging through my first conversion of a v1 script to v2 in SciTE4AutoHotkey, and put a #Include <gdip> in to access Gdip.ahk in my library directory, but now it loaded Gdip.ahk into the editor and reported:

Code: Select all

C:\Program Files\AutoHotkey\v2\Lib\gdip.ahk (69) : ==> Expected ":="
     Specifically: ="", y="", w="", h="", Alpha=255)
This is in the line UpdateLayeredWindow(hwnd, hdc, x="", y="", w="", h="", Alpha=255)

I hadn't thought of that! Is there a v2-compatible gdip.ahk? I use gdip.ahk a lot, so if this isn't possible I'll unfortunately have to stick to v1 for the time being.


ahketype
Posts: 191
Joined: 27 Oct 2016, 15:06
Location: Yorkshire, UK

Re: v2 reporting errors in gdip.ahk as #Include

Post by ahketype » 29 Jan 2023, 17:18

Thanks @neogna2 that's a great relief! - I'll give it a try and read the relevant threads.

Post Reply

Return to “Ask for Help (v2)”