GDI+ standard library 1.45 by tic

Post your working scripts, libraries and tools
guest3456
Posts: 2280
Joined: 09 Oct 2013, 10:31

Re: GDI+ standard library 1.45 by tic

15 Nov 2017, 12:12

nnnik wrote:I think instead of waiting for them it would be faster to implement AHK v1.1 backwards compatability.


i will start to work on it.

User avatar
tidbit
Posts: 1043
Joined: 29 Sep 2013, 17:15
Location: USA

Re: GDI+ standard library 1.45 by tic

15 Nov 2017, 12:55

nnnik, you deleted the wrong link, you're lucky the old forum still has gdip_all.
https://autohotkey.com/board/topic/2944 ... 45-by-tic/
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
User avatar
nnnik
Posts: 2688
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: GDI+ standard library 1.45 by tic

15 Nov 2017, 13:52

Fixed
Recommends AHK Studio
guest3456
Posts: 2280
Joined: 09 Oct 2013, 10:31

Re: GDI+ standard library 1.45 by tic

15 Nov 2017, 15:54

just for reference for people reading:

tic's original:
https://github.com/tariqporter/Gdip/blo ... r/Gdip.ahk

Rseding's unicode and x64 Gdip_All fixes:
https://www.dropbox.com/s/0e9gdfetbfa8v0o/Gdip_All.ahk

AHK v2 version (now also backward compatible with v1 thanks to @nnnik):
https://github.com/mmikeww/AHKv2-Gdip

JoeSchmoe
Posts: 33
Joined: 08 Dec 2014, 08:58

Re: GDI+ standard library 1.45 by tic

03 Jan 2018, 19:26

guest3456 wrote:just for reference for people reading:

tic's original:
https://github.com/tariqporter/Gdip/blo ... r/Gdip.ahk

Rseding's unicode and x64 Gdip_All fixes:
https://www.dropbox.com/s/0e9gdfetbfa8v0o/Gdip_All.ahk

AHK v2 version (now also backward compatible with v1 thanks to @nnnik):
https://github.com/mmikeww/AHKv2-Gdip


Thanks. I found the following, taken from the last github link above, to be helpful in interpreting the above. I reproduce it here for reference:
History
  • @tic created the original Gdip.ahk library
  • @Rseding91 updated it to make it compatible with unicode and x64 AHK versions and renamed the file Gdip_All.ahk
  • this repository updates @Rseding91's Gdip_All.ahk to make it compatible with AHK v2
JoeSchmoe
Posts: 33
Joined: 08 Dec 2014, 08:58

Re: GDI+ standard library 1.45 by tic

03 Jan 2018, 19:29

Am I correct in understanding that everyone should use the mmikeww AHKv2-Gdip version? It seems to be the most compatible. (I actually use AHK 1.1)
guest3456
Posts: 2280
Joined: 09 Oct 2013, 10:31

Re: GDI+ standard library 1.45 by tic

03 Jan 2018, 20:11

JoeSchmoe wrote:Am I correct in understanding that everyone should use the mmikeww AHKv2-Gdip version? It seems to be the most compatible. (I actually use AHK 1.1)


That is meant to be used for AHK v2, but it should also be compatible with AHK 1.1. You can use that or you can use the normal Gdip_All.ahk, which ever you choose

iseahound
Posts: 182
Joined: 13 Aug 2016, 21:04
GitHub: iseahound

Re: GDI+ standard library 1.45 by tic

10 Apr 2018, 21:08

Added a pull request to the v2.

From

Code: [Select all] [Download] GeSHi © Codebox Plus

	DllCall("gdiplus\GdipGetClip", A_PtrSize ? "UPtr" : "UInt", pGraphics, "UInt*", Region)


to

Code: [Select all] [Download] GeSHi © Codebox Plus

	DllCall("gdiplus\GdipGetClip", A_PtrSize ? "UPtr" : "UInt", pGraphics, "UInt", Region)


Fixes crashes in create rounded rectange()
guest3456
Posts: 2280
Joined: 09 Oct 2013, 10:31

Re: GDI+ standard library 1.45 by tic

10 Apr 2018, 21:36

^merged thanks

jonathan scott james
Posts: 35
Joined: 05 Apr 2016, 01:56
Facebook: https://www.facebook.com/Jonathan-scott-james-for-

Re: GDI+ standard library 1.45 by tic

17 Apr 2018, 05:51

how do you recompile the autohotkey kernel to include gdi.ahk aurtomaticaly?
and how do you make it include gdi.ahk every time you compile a new .ahk script intto an exe? should i make a .bat file to replace the Ahk2Exe.exe file? with the line Ahk2Exe.exe/incluse gdi.ahk %%1 ? then use link to compile that into a new Ahk2Exe.exe. i don't even think i have link.. it was on dos2 dirty dos
jonathan scott james
Posts: 35
Joined: 05 Apr 2016, 01:56
Facebook: https://www.facebook.com/Jonathan-scott-james-for-

Re: GDI+ standard library 1.45 by tic

17 Apr 2018, 05:52

when will the new ahk kernel be ready?
User avatar
joedf
Posts: 6211
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: GDI+ standard library 1.45 by tic

17 Apr 2018, 09:32

Add #Include gdip_all.ahk to the beginning of your script or put it in your global library and it will be included automatically if the functions are used.
docs: https://autohotkey.com/docs/Functions.htm#lib
jonathan scott james
Posts: 35
Joined: 05 Apr 2016, 01:56
Facebook: https://www.facebook.com/Jonathan-scott-james-for-

Re: GDI+ standard library 1.45 by tic

18 Apr 2018, 13:19

why does this not show me the sine wave in the demo driver?

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

jonathan scott james
Posts: 35
Joined: 05 Apr 2016, 01:56
Facebook: https://www.facebook.com/Jonathan-scott-james-for-

Re: GDI+ standard library 1.45 by tic

18 Apr 2018, 14:07

at first. when i made this, i thought the rest would be a piece of cake.. but somehow it all went wrong:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

guest3456
Posts: 2280
Joined: 09 Oct 2013, 10:31

Re: GDI+ standard library 1.45 by tic

18 Apr 2018, 16:54

these have nothing to do with GDI+, and should be posted in Ask For Help

jonathan scott james
Posts: 35
Joined: 05 Apr 2016, 01:56
Facebook: https://www.facebook.com/Jonathan-scott-james-for-

Re: GDI+ standard library 1.45 by tic

18 Apr 2018, 22:00

it's gdi32.dll
buts since it's loaded, it is implyed
but this is the real shocker...
btw, if you can help me make include gdi.ahk work. please convert this to it. i can't even make gdi.ahk do anything but error on every command,
but the only way i can make it work so far is usung gdi32.dll in a dllcall command like this( remember calldll("gdi32.dll\movetoex",UInt,hdc,Uint,y,Uint,x) )

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

jonathan scott james
Posts: 35
Joined: 05 Apr 2016, 01:56
Facebook: https://www.facebook.com/Jonathan-scott-james-for-

Re: GDI+ standard library 1.45 by tic

Yesterday, 02:51

i copied gdi.ahk into the directory.. where do i get gdi+
it says can't start gdi+

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

User avatar
jNizM
Posts: 2314
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
Contact:

Re: GDI+ standard library 1.45 by tic

Yesterday, 06:10

jonathan scott james wrote:i copied gdi.ahk into the directory

gdi.ahk != gdip.ahk
[AHK] 1.1.28.02 x64 Unicode | [WIN] 10 Pro (Version 1709) x64 | [GitHub] Profile
Donations are appreciated if I could help you
User avatar
nnnik
Posts: 2688
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: GDI+ standard library 1.45 by tic

Yesterday, 06:17

Well if you have the correct gdip.ahk and still get the message then it is one of the following:

A) you are running this on an old system ( prior to Win XP )
B) you are running this on Linux with WINE
C) you have the wrong gdip.ahk for your AHK installation ( the original version only supported 32 bit AHK see https://www.dropbox.com/s/0e9gdfetbfa8v0o/Gdip_All.ahk )
D) something is seriously wrong with your PC
Recommends AHK Studio

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 18 guests