Search found 123 matches

by Learning one
05 Apr 2015, 21:29
Forum: Ask For Help
Topic: [solved] OnMessage() monitoring in Class
Replies: 7
Views: 1203

Re: OnMessage() monitoring in Class

Lexikos, thanks for your answer and sorry for my late reply. I'll have more more than one derived object and therefore more than one GUI too, so I registred message handler only once for that class, as you suggested. Is this code OK now? If not, could you please show me how would you do it - I'm run...
by Learning one
03 Apr 2015, 04:34
Forum: Ask For Help
Topic: [solved] OnMessage() monitoring in Class
Replies: 7
Views: 1203

Re: OnMessage() monitoring in Class

Thank you Lexikos! I passed this.WM_LBUTTONDOWN.Bind(this) to OnMessage() . I also replaced Tooltip with MsgBox , uncommented ;Test2 := new TestClass("Test2", 450, 400) , and added 3. line: Test3 := new TestClass("Test3", 600, 400) so code now looks like this; Test1 := new TestClass("Test1", 300, 40...
by Learning one
02 Apr 2015, 19:07
Forum: Ask For Help
Topic: [solved] OnMessage() monitoring in Class
Replies: 7
Views: 1203

[solved] OnMessage() monitoring in Class

Let's say a have a class and I want to monitor WM_LBUTTONDOWN message. It can be done like this (run the script, click&drag gui please and it will update x,y coords info) : OnMessage(0x201, "WM_LBUTTONDOWN") Test1 := new TestClass("Test1", 300, 400) return class TestClass { __New(Name, x, y) { Gui, ...
by Learning one
02 Apr 2015, 16:23
Forum: Scripts and Functions
Topic: Circle progress bar
Replies: 24
Views: 10043

Re: Circle progress bar

Bruttosozialprodukt , OK ;) FanaticGuru , yes I always use #Include LibFullPathHere.ahk in my scripts Guest10 , I'm not sure what do you have on mind... can you show me what do you imagine - how would progress bar loading look in such "Chrome's wheel with wedges" style? toralf , I just tried to inc...
by Learning one
02 Apr 2015, 10:38
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 255
Views: 58719

Re: GDI+ standard library 1.45 by tic

Surreall wrote:... I am trying to crop an image ...
I'm willing to partially help you; see Resize, Rotate, Crop, Clone bitmap
by Learning one
02 Apr 2015, 10:28
Forum: Scripts and Functions
Topic: Circle progress bar
Replies: 24
Views: 10043

Re: Circle progress bar

@Bruttosozialprodukt: lol :) 8-) As joedf suggested, I would like to put the following text in CircleProgressClass comments: " Credits: Bruttosozialprodukt, Learning one. This code is public domain. " Is that OK with you? ... make it move-able ... No problem :) OnMessage(0x201, "WM_LBUTTONDOWN") Cir...
by Learning one
02 Apr 2015, 05:08
Forum: Scripts and Functions
Topic: Circle progress bar
Replies: 24
Views: 10043

Re: Circle progress bar

I'm glad you like it guys :) Nice example fischgeek! Ferry, yes, you need Gdip_All.ahk, as FanaticGuru said. FanaticGuru, I don't get such errors... Bruttosozialprodukt, it seems I hijacked your thread :( I'm sorry do you want me to stop posting? In v1.03 (see updated second post of this thread) I a...
by Learning one
01 Apr 2015, 01:35
Forum: Scripts and Functions
Topic: Circle progress bar
Replies: 24
Views: 10043

Re: Circle progress bar

Nice work! :) I quickly rewrote it and used Class syntax, auto GDI+ on/off, auto clear-up, click through style and hopefully simplified usage. Edit : Added more options; ability to display text, draw background, added option to disable click through style, some minor drawing modifications... http://...
by Learning one
11 Feb 2015, 16:05
Forum: Scripts and Functions
Topic: RefinePath()
Replies: 11
Views: 4097

Re: RefinePath()

RefinePath() updated to v1.02 Thanks for demonstrating your attempt of this issue Tuncay.
by Learning one
07 Feb 2015, 04:05
Forum: Scripts and Functions
Topic: Class_ScrollGUI - updated on 2015-03-13
Replies: 75
Views: 14086

Re: Class_ScrollGUI

Very nice! Thanks :)
by Learning one
07 Feb 2015, 04:04
Forum: Scripts and Functions
Topic: RefinePath()
Replies: 11
Views: 4097

Re: RefinePath()

Ok, I plan to do the following changes : A_ScriptDrive - start with a backslash RefinePath("\SubFolder\button.png") ; example output: "C:\SubFolder\button.png" RefinePath("\SubFolder") A_ScriptDir - omit a backslash or start with ".\" RefinePath("SubFolder\button.png") ; example output: "C:\Scripts\...
by Learning one
29 Jan 2015, 15:25
Forum: Scripts and Functions
Topic: ObjRegisterActive
Replies: 43
Views: 12000

Re: ObjRegisterActive

Lexikos, this is fantastic! 8-)
Thank you so much! :)
by Learning one
29 Jan 2015, 15:24
Forum: Scripts and Functions
Topic: StringIPC class - send/receive strings between processes
Replies: 8
Views: 1610

Re: StringIPC class - send/receive strings between processes

@lexikos : That developer only said that I should avoid using it, and I didn't ask for details... :( Wow, ObjRegisterActive rocks! 8-) With such a powerful and flexible IPC method it really doesn't make sense to use StringIPC. Thank you for making & presenting ObjRegisterActive ! :) First post upda...
by Learning one
28 Jan 2015, 15:56
Forum: Scripts and Functions
Topic: Fun with GDIPlus (GDI+)
Replies: 25
Views: 11439

Re: Fun with GDIPlus

joedf wrote:Very nice!
+1 :)
Were you inspired by this? :)
by Learning one
28 Jan 2015, 15:50
Forum: Scripts and Functions
Topic: StringIPC class - send/receive strings between processes
Replies: 8
Views: 1610

Re: StringIPC class - send/receive strings between processes

@lexikos : I absolutely agree that using WM_COPYDATA would be simpler. I know for majkinetor's IPC, and for OnMessage() example in AHK help, which use WM_COPYDATA. However, one developer told me that I should avoid using WM_COPYDATA to exchange strings between processes. I also read about possible ...
by Learning one
26 Jan 2015, 18:29
Forum: Scripts and Functions
Topic: StringIPC class - send/receive strings between processes
Replies: 8
Views: 1610

StringIPC class - send/receive strings between processes

:!: EDIT: instead of StringIPC class, it's recommended to use ObjRegisterActive , which is more powerful and flexible StringIPC class allows you to exchange (send/receive) strings between processes. It doesn't use WM_COPYDATA, ClipBoard, FileMapping, COM, Mailslots, Pipes, Sockets, or similar; it's ...
by Learning one
23 Jan 2015, 10:47
Forum: Scripts and Functions
Topic: RefinePath()
Replies: 11
Views: 4097

Re: RefinePath()

@Chef : Ooops, thanks for report, I updated the code. Try again, it should work fine now. Btw, when you use variable, you have to add it to the variables collection first - see the documentation. See also changes below; res\folder is no longer valid - you have to use backslash at beginning; \res\fo...
by Learning one
22 Jan 2015, 12:34
Forum: Scripts and Functions
Topic: RefinePath()
Replies: 11
Views: 4097

RefinePath()

RefinePath() allows you to use relative paths, absolute paths, and it may ease your life if you are working with portable drives. Some examples: Run, % RefinePath("Joe USB3:\Music\Song.mp3") ; use drive name (label) instead of letter - useful for USB sticks. Run, % RefinePath("\Documents\Info.txt") ...
by Learning one
14 Jan 2015, 03:01
Forum: Wish List
Topic: Default action when running AutoHotkey.exe
Replies: 36
Views: 7432

Re: Default action when running AutoHotkey.exe

lexikos wrote:How's this Welcome page?
I like it. It shows minimal info and points new user in right direction. :thumbup:

Go to advanced search