Search found 4822 matches

by evilC
05 Aug 2014, 18:03
Forum: AutoHotkey Development
Topic: Proposed New GUI API for AutoHotkey v2
Replies: 249
Views: 115609

Re: Proposed New GUI API for AutoHotkey v2

Hmm, I think I worked it out, I used __Call to route Sets, Gets and Calls to the relevant places. I ended up with something like this (working code): #SingleInstance force test := new MyClass Class MyClass { __New(){ this.Gui := GuiCreate("First Title") ; Try some stuff with the regular this.Gui met...
by evilC
05 Aug 2014, 13:05
Forum: AutoHotkey Development
Topic: Proposed New GUI API for AutoHotkey v2
Replies: 249
Views: 115609

Re: Proposed New GUI API for AutoHotkey v2

I am trying to get my head around something, and could do with a little help. Setting a GUI's position like so: Gui.Show("x0 y0 w200 h50") results in the GUI being positioned relative to the current viewport, not the canvas. In other words, if you have one GUI parented to another via +Parent<hwnd> ,...
by evilC
04 Aug 2014, 11:26
Forum: Ask for Help (v2)
Topic: can you call a class method with OnMessage ?
Replies: 15
Views: 7630

Re: can you call a class method with OnMessage ?

OK, penny is maybe starting to drop here... The first param for a class method is "this"? I thought class methods did not have any parameters by default... So in order to preserve it, when calling a class method you would have to pass nothing to the first param? I finally found a reference to the "h...
by evilC
04 Aug 2014, 10:48
Forum: Ask for Help (v2)
Topic: can you call a class method with OnMessage ?
Replies: 15
Views: 7630

Re: can you call a class method with OnMessage ?

@evilC: What lexikos meant is the hidden this parameter in class methods w/c contains the reference to the object that invoked the method call. Now, if one were to use class methods as OnMessage handler(s), this becomes wParam which some OR most users might totally forget about (if careless). Thank...
by evilC
04 Aug 2014, 09:51
Forum: Ask for Help (v2)
Topic: can you call a class method with OnMessage ?
Replies: 15
Views: 7630

Re: can you call a class method with OnMessage ?

What "hidden This parameter" ? Surely if it is "hidden", I cannot think about it? Nonsense. Being hidden implies that it exists, and having read the documentation you would know it exists. It's also possible to think about nonexistent things. ;) C'mon man, I read AHK docs on a regular basis but the...
by evilC
03 Aug 2014, 15:14
Forum: AutoHotkey Development
Topic: Proposed New GUI API for AutoHotkey v2
Replies: 249
Views: 115609

Re: Proposed New GUI API for AutoHotkey v2

A virtual "Windows" environment comlpete with TaskBar and independently scrolling sub-windows (With mousewheel input redirected accordingly). You can also click TaskBar items to minimize / restore child windows. Scrollbars updated as you drag stuff around also :) http://screencast-o-matic.com/watch/...
by evilC
03 Aug 2014, 08:23
Forum: Ask for Help (v2)
Topic: can you call a class method with OnMessage ?
Replies: 15
Views: 7630

Re: can you call a class method with OnMessage ?

Many users, like evilC, don't think about the method's hidden this parameter and so would be confused by the results. v2 immediately alerts the user to the error. What "hidden This parameter" ? Surely if it is "hidden", I cannot think about it? IIRC you could do silly stuff like OnMessage(0x114, "M...
by evilC
02 Aug 2014, 20:08
Forum: AutoHotkey Development
Topic: Proposed New GUI API for AutoHotkey v2
Replies: 249
Views: 115609

Re: Proposed New GUI API for AutoHotkey v2

Really starting to make some progress now :) Two scrolling windows within a parent window - the left one holds the Child windows, the right one is going to be a "Task Bar" (Where Child Windows go when you minimize them). I decided against leaving the child windows on the main canvas when you minimiz...
by evilC
02 Aug 2014, 19:36
Forum: Ask for Help (v2)
Topic: can you call a class method with OnMessage ?
Replies: 15
Views: 7630

Re: can you call a class method with OnMessage ?

I think I found a reasonably good workaround. if scroll handles are dragged with a mouse, the onscroll message includes the hwnd of the window you dragged the scrollbar in - all good there. For hooking into the mousewheel, if you execute MouseGetPos(tmp,tmp,tmp,hwnd,2) you get the HWND of whatever t...
by evilC
02 Aug 2014, 14:14
Forum: Wish List
Topic: Dynamic includes? In compiled EXEs?
Replies: 20
Views: 10875

Re: Dynamic includes? In compiled EXEs?

But! if you are willing to use the AHK_H.exe instead of AHK_L.exe to run the script, its even easier and you don't have to mess with running a new thread from the .dll. This is pretty cool. I am not really sure I understand enough to decide if I should go that way. My only real requirements are: I ...
by evilC
02 Aug 2014, 12:48
Forum: Wish List
Topic: Dynamic includes? In compiled EXEs?
Replies: 20
Views: 10875

Re: Dynamic includes? In compiled EXEs?

Hmm, so I saved the files into a folder. Downloaded the zip from your V2 link above and extracted x64w\AutoHotkey.dll into the same folder as the scripts. I then ran Wrapper.ahk All I see is "Closing Wrapper.ahk" I should be able to just assemble these 4 files and regardless of what AHK I have insta...
by evilC
02 Aug 2014, 12:32
Forum: Wish List
Topic: Dynamic includes? In compiled EXEs?
Replies: 20
Views: 10875

Re: Dynamic includes? In compiled EXEs?

Oh wow you seem to have all the bases covered.

Thanks so much for your help, I will have a play and let you know.
by evilC
02 Aug 2014, 12:29
Forum: Wish List
Topic: Dynamic includes? In compiled EXEs?
Replies: 20
Views: 10875

Re: Dynamic includes? In compiled EXEs?

This would be assuming that I have ahk files associated with the v2 exe?

Currently I do not, I run v2 files by editing them in SciTE4AHK and hitting F5

Could this be done some way other than renaming files to .ahk2? That breaks debugging in scite
by evilC
02 Aug 2014, 12:15
Forum: Wish List
Topic: Dynamic includes? In compiled EXEs?
Replies: 20
Views: 10875

Re: Dynamic includes? In compiled EXEs?

Oh my! OK, so let me get this straight... I can use AddScript from within a compiled exe to include the code from an .ahk extension text file? Is it an easy process to build my own version? For example, fincs has just released test binaries for the proposed v2 GUI, would it be possible to "bake" tha...
by evilC
02 Aug 2014, 11:14
Forum: Wish List
Topic: Dynamic includes? In compiled EXEs?
Replies: 20
Views: 10875

Re: Dynamic includes? In compiled EXEs?

guest3456 wrote:Use HotKeyIt's AHK_H/ahk.dll
http://www.autohotkey.net/~HotKeyIt/AutoHotkey/
Ultimate goal is probably going to involve AHK v2

Correct me if I am wrong but ahk.dll does not support v2 yet?
by evilC
02 Aug 2014, 11:13
Forum: Wish List
Topic: Dynamic includes? In compiled EXEs?
Replies: 20
Views: 10875

Re: Dynamic includes? In compiled EXEs?

Coco wrote:You would need to tweak the DllCalls to be compatible with latest AHK.
Oh I thought that version was compatible with the latest AHK?
By "latest" you mean latest v1 right?
I am not trying to get this to work with v2 yet...
by evilC
02 Aug 2014, 09:50
Forum: Wish List
Topic: Dynamic includes? In compiled EXEs?
Replies: 20
Views: 10875

Re: Dynamic includes? In compiled EXEs?

Yeah, am trying to understand that code but it is pretty hard work, I can't even get the example to work on v1.

It seems to involve reloading the parent script, which would be a little annoying, but not a show-stopper.

Was kind of hoping for something a little more user-friendly...
by evilC
02 Aug 2014, 08:41
Forum: Wish List
Topic: Dynamic includes? In compiled EXEs?
Replies: 20
Views: 10875

Dynamic includes? In compiled EXEs?

Something I would love to see in V2.

AKA a plugin system.

Specifically, I would love to be able to, at run time, include a script which extends an existing class.

Bonus points for being able to include an .ahk file from a compiled .exe in this way.
by evilC
02 Aug 2014, 08:33
Forum: AutoHotkey Development
Topic: GUI suggestions
Replies: 50
Views: 20015

Re: GUI suggestions

Fincs has indeed changed text to label in his release binaries. IMHO, I think Text is probably more descriptive - sometimes it is not really a "label" - in my mind, a label is for exactly one object, however not all text in a gui pertains to exatly one item - it may pertain to zero other items (eg s...

Go to advanced search