Search found 92 matches
- 07 Nov 2017, 11:35
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 438
- Views: 246627
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...
- 06 Nov 2017, 21:46
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 438
- Views: 246627
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...
- 23 Oct 2017, 23:45
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 438
- Views: 246627
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...
- 23 May 2017, 23:52
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 438
- Views: 246627
Re: GDI+ standard library 1.45 by tic
Awesome! You're a hero Learning one. Really didn't want to have to redraw those!
- 19 May 2017, 13:55
- Forum: Ask for Help (v1)
- Topic: List all the methods from a base class? Topic is solved
- Replies: 9
- Views: 2345
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!
Anyway, thanks!
- 19 May 2017, 13:33
- Forum: Ask for Help (v1)
- Topic: List all the methods from a base class? Topic is solved
- Replies: 9
- Views: 2345
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(...
- 18 May 2017, 16:45
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 438
- Views: 246627
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
- 10 May 2017, 17:01
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 438
- Views: 246627
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-...
- 05 May 2017, 16:38
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 438
- Views: 246627
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...
- 03 May 2017, 23:51
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 438
- Views: 246627
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...
- 26 Aug 2016, 14:42
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 438
- Views: 246627
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...
- 18 Aug 2016, 16:30
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 438
- Views: 246627
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 ...
- 21 Jul 2016, 13:50
- Forum: Ask for Help (v1)
- Topic: Stitching thousands of images together with AHK Topic is solved
- Replies: 11
- Views: 3670
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...
- 10 Mar 2016, 12:57
- Forum: Ask for Help (v1)
- Topic: Get image dimensions from JPEG or PNG file Topic is solved
- Replies: 4
- Views: 5715
Re: [solved] Get image dimensions from JPEG or PNG file Topic is solved
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
- 24 Feb 2016, 03:04
- Forum: Ask for Help (v1)
- Topic: Stop timer in class
- Replies: 7
- Views: 3136
Re: Stop timer in class
Ah, I hadn't realized that
Would work. Thanks
Code: Select all
target := this.Target
SetTimer, % target, % period
- 24 Feb 2016, 01:23
- Forum: Ask for Help (v1)
- Topic: [Solved] Need help converting autoit code, (Gdip Gif Animation)
- Replies: 3
- Views: 3805
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...
- 24 Feb 2016, 01:02
- Forum: Ask for Help (v1)
- Topic: Stop timer in class
- Replies: 7
- Views: 3136
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...
- 24 Feb 2016, 00:53
- Forum: Ask for Help (v1)
- Topic: Stop timer in class
- Replies: 7
- Views: 3136
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
- 24 Feb 2016, 00:47
- Forum: Ask for Help (v1)
- Topic: Stop timer in class
- Replies: 7
- Views: 3136
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...
- 23 Feb 2016, 23:03
- Forum: Ask for Help (v1)
- Topic: Stop timer in class
- Replies: 7
- Views: 3136
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...