Search found 4785 matches

by evilC
07 Aug 2014, 11:10
Forum: Ask For Help
Topic: Class based hotkey handling?
Replies: 4
Views: 1633

Re: Class based hotkey handling?

OK, I had a little time and experimented a bit and I get why IfWin does not work with my method. So I expanded it with ifwin support. Here is what I have now: #SingleInstance force HotkeyList := {} MyClass1 := new CMyClass("F2", "Notepad") MyClass1 := new CMyClass("F2") MyClass2 := new CMyClass("F3"...
by evilC
07 Aug 2014, 07:11
Forum: Ask For Help
Topic: Class based hotkey handling?
Replies: 4
Views: 1633

Re: Class based hotkey handling?

Of course, this won't work with Hotkey, IfWin either, unless the hotkey string is unique ("$F1" vs "F1" or similar). Thanks for that Lex. I am a little concerned about what you said regarding IfWin, I defo need full support for IfWin for this project... I should have some time tomorrow, I will do m...
by evilC
06 Aug 2014, 12:32
Forum: Ask For Help
Topic: Class based hotkey handling?
Replies: 4
Views: 1633

Class based hotkey handling?

Does anyone know a better way to have a class handle a hotkey than this? For example, are there possible hotkey strings that would not be a valid key name in HotkeyList? (FYI I am mainly using AHK v2 these days, so if there is a better way that required V2, I would certainly be interested in that) #...
by evilC
05 Aug 2014, 18:03
Forum: AutoHotkey v2 Development
Topic: Proposed New GUI API for AutoHotkey v2
Replies: 249
Views: 84773

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 v2 Development
Topic: Proposed New GUI API for AutoHotkey v2
Replies: 249
Views: 84773

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: AutoHotkey v2 Help
Topic: can you call a class method with OnMessage ?
Replies: 15
Views: 5728

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: AutoHotkey v2 Help
Topic: can you call a class method with OnMessage ?
Replies: 15
Views: 5728

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: AutoHotkey v2 Help
Topic: can you call a class method with OnMessage ?
Replies: 15
Views: 5728

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 v2 Development
Topic: Proposed New GUI API for AutoHotkey v2
Replies: 249
Views: 84773

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: AutoHotkey v2 Help
Topic: can you call a class method with OnMessage ?
Replies: 15
Views: 5728

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 v2 Development
Topic: Proposed New GUI API for AutoHotkey v2
Replies: 249
Views: 84773

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: AutoHotkey v2 Help
Topic: can you call a class method with OnMessage ?
Replies: 15
Views: 5728

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: 9530

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: 9530

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: 9530

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: 9530

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: 9530

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: 9530

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: 9530

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...

Go to advanced search