Search found 92 matches

by tic
07 Nov 2017, 11:35
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 297
Views: 70102

Re: GDI+ standard library 1.45 by tic

tic, do you know that there is a unit testing framework already written in AHK, not requiring an external node dependency? https://github.com/Uberi/Yunit That library is good, but as I am using ahk-loader https://github.com/tariqporter/ahk-loader Which will build my final Gdip2.ahk from all the sep...
by tic
06 Nov 2017, 21:46
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 297
Views: 70102

Re: GDI+ standard library 1.45 by tic

Thanks for the help tic. I have another question. What would be the proper way to use BitBlt with Gdip2? x := new Gdip.Window(new Gdip.Point(40, 40), new Gdip.Size(1280, 720)) , xDC := Gdip.Object.GetDC(x.hwnd) , gdipObj := new Gdip.Bitmap(new Gdip.Size(1280, 720)) , gdipObj.DrawImage(Gdip.BitmapFr...
by tic
23 Oct 2017, 23:45
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 297
Views: 70102

Re: GDI+ standard library 1.45 by tic

beep no offense tic, but can we remove your download link and only keep _All ? Yes, I shall do so until Gdip2 is done. I've been so busy that I haven't had a chance to look at it Hey tic just got around to trying out Gdip2. I'm having a bit of trouble with example 3 (create-gui-from-image). If I tr...
by tic
23 May 2017, 23:52
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 297
Views: 70102

Re: GDI+ standard library 1.45 by tic

Awesome! You're a hero Learning one. Really didn't want to have to redraw those!
by tic
19 May 2017, 13:55
Forum: Ask For Help
Topic: List all the methods from a base class? Topic is solved
Replies: 9
Views: 1086

Re: List all the methods from a base class? Topic is solved

I had not tried putting the percentages around a. Very odd syntax, considering both k and v are objects and do not require % to qualify them.
Anyway, thanks!
by tic
19 May 2017, 13:33
Forum: Ask For Help
Topic: List all the methods from a base class? Topic is solved
Replies: 9
Views: 1086

List all the methods from a base class? Topic is solved

How can we list all the methods from a baseClass? The following will work by explicitly using MyClass by name, but how can we use this to get the methods myMethod1 and myMethod2 ? myc := new MyClass() return class MyClass extends BaseClass { myMethod1() { } myMethod2() { } } class BaseClass { __New(...
by tic
18 May 2017, 16:45
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 297
Views: 70102

Re: GDI+ standard library 1.45 by tic

Does anyone have these original images?

Code: Select all

	UrlDownloadToFile, http://www.autohotkey.net/~tic/mario.png, mario.png
	UrlDownloadToFile, http://www.autohotkey.net/~tic/link.png, link.png
by tic
10 May 2017, 17:01
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 297
Views: 70102

Re: GDI+ standard library 1.45 by tic

I have added the beginning of Gdip2: https://github.com/tariqporter/Gdip2 I will go through and remove anything that isn't needed, and add any missing functions, and wrappers if needed, allowing access to flat functions as well. I am building with webpack, and you can see that I have created an ahk-...
by tic
05 May 2017, 16:38
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 297
Views: 70102

Re: GDI+ standard library 1.45 by tic

Well the original GDI+ is function oriented not object oriented. Is the new library OOP or just the old library with Object Syntax? You can see in the repository that it is object oriented. It keeps the original functions as wrappers if direct use is needed. I have setup a simple webpack build syst...
by tic
03 May 2017, 23:51
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 297
Views: 70102

Re: GDI+ standard library 1.45 by tic

If I remember correctly, the actual Gdip wrapper part was mostly done, but then the window drawing / updating part was where it stalled because it became too messy without anonymous functions. I can take a look at it and perhaps just remove all the "DOM" stuff, and just have it the same as the origi...
by tic
26 Aug 2016, 14:42
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 297
Views: 70102

Re: GDI+ standard library 1.45 by tic

.. as AHK does not have anonymous functions, which are absolutely necessary for a proper running library that controls a GUI... Mmmm.. whenever I reached the point of needing an anonymous func, I found a workaround by using a BoundFunc Object . Maybe that could work in your case too...? You will st...
by tic
18 Aug 2016, 16:30
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 297
Views: 70102

Re: GDI+ standard library 1.45 by tic

Hi all Yes, I am still alive heh! The version of the new Gdip library was very close to completion but I needed to halt work on it as AHK does not have anonymous functions, which are absolutely necessary for a proper running library that controls a GUI. Bode , the search library will not be as fast ...
by tic
21 Jul 2016, 13:50
Forum: Ask For Help
Topic: Stitching thousands of images together with AHK Topic is solved
Replies: 11
Views: 1541

Re: Stitching thousands of images together with AHK Topic is solved

This will do it with the Gdip library. I wrote it directly in the browser so it is untested pToken := Gdip_Startup() files := [] ;widthTotal := 0, heightMax := 0 heightTotal := 0, widthMax := 0 loop, Files, *.tiff { pBitmap := Gdip_CreateBitmapFromFile(A_LoopFileName) Gdip_GetDimensions(pBimap, w, h...
by tic
10 Mar 2016, 12:57
Forum: Ask For Help
Topic: [solved] Get image dimensions from JPEG or PNG file
Replies: 3
Views: 1488

Re: [solved] Get image dimensions from JPEG or PNG file

Code: Select all

pToken := Gdip_StartUp()
pBitmap := Gdip_CreateBitmapFromFile("c:\myImage.jpg")
Gdip_GetImageDimensions(pBitmap, w, h)
Gdip_DisposeImage(pBitmap)
Gdip_ShutDown(pToken)
MsgBox, % "Width: " w " Height: " h
by tic
24 Feb 2016, 03:04
Forum: Ask For Help
Topic: Stop timer in class
Replies: 7
Views: 1530

Re: Stop timer in class

Ah, I hadn't realized that

Code: Select all

target := this.Target
SetTimer, % target, % period
Would work. Thanks
by tic
24 Feb 2016, 01:23
Forum: Ask For Help
Topic: [Solved] Need help converting autoit code, (Gdip Gif Animation)
Replies: 3
Views: 1271

Re: Need help converting autoit code, (Gdip Gif Animation)

Here is an example of displaying an animated gif inside a standard window: #SingleInstance Force ;#include Gdip.ahk pToken := Gdip_Startup() OnExit, Exit Gui, 1: Add, Picture, x10 y10 w80 h80 0xE hwndhwndGif1 Gui, 1: Add, Button, x+10 yp+0 w80 h80 gPlayPause hwndhwndPlayPause, Play Gui, 1: Show, Aut...
by tic
24 Feb 2016, 01:02
Forum: Ask For Help
Topic: Stop timer in class
Replies: 7
Views: 1530

Re: Stop timer in class

Ugly as hell, but you can get round the problem with ahk not liking the dot with: #SingleInstance Force #Persistent t1 := new MyTimer() t1.Start() Sleep, 3000 t1.Stop() return class MyTimer { Count := 0 Start(period:=500) { fn := this._Start.Bind(this) this.Timer := new MyTimer.Timer(fn, period) thi...
by tic
24 Feb 2016, 00:53
Forum: Ask For Help
Topic: Stop timer in class
Replies: 7
Views: 1530

Re: Stop timer in class

Oof....Seems like a pretty bad "bug" (Kind of) if a class can't create a timer, and dispose of it, unless the class' only purpose is to be a timer
by tic
24 Feb 2016, 00:47
Forum: Ask For Help
Topic: Stop timer in class
Replies: 7
Views: 1530

Re: Stop timer in class

This is still the same problem though. I don't want to provide the bound function to the class instantiation, and don't want to call _Call. I would like for the timer to call a method and stop that method that it decides upon. So this will work: #SingleInstance Force #Persistent t1 := new Timer() t1...
by tic
23 Feb 2016, 23:03
Forum: Ask For Help
Topic: Stop timer in class
Replies: 7
Views: 1530

Stop timer in class

Hi all How can you access the same instance of a timer in a class, in order to stop and delete it? The following will start the timer, but can't stop it. I have tried all variations I can think of, including attempting to make the function object a class variable. #SingleInstance Force #Persistent m...

Go to advanced search