Search found 1526 matches

by HotKeyIt
02 Dec 2017, 16:44
Forum: Ask For Help
Topic: [AHK_H v2]DropDownList Topic is solved
Replies: 1
Views: 38

Re: [AHK_H v2]DropDownList Topic is solved

See GuiControl Object:

Code: [Select all]GeSHi © Codebox Plus

ddl.Delete()
ddl.Add("e|f|g|h")
by HotKeyIt
02 Dec 2017, 09:21
Forum: Ask For Help
Topic: How to create HotStrings dynamically!
Replies: 6
Views: 131

Re: How to create HotStrings dynamically!

You can try using AutoHotkey_H, see addScript:

Code: [Select all]GeSHi © Codebox Plus

#InstallKeybdHook
hotstrings:={ahk:"AutoHotkey",btw:"By The Way"}
for k,v in hotstrings
script.="::" k "::" v "`n"
addscript(script)
by HotKeyIt
01 Dec 2017, 16:55
Forum: AutoHotkey_H
Topic: help assigning dynamically named variable to gui.add()
Replies: 2
Views: 40

Re: help assigning dynamically named variable to gui.add()

Try this: /* "cfg.ini" [Info] PartCount=5 [1] Name=AutoComplete File=CMS_Part_Recompiler.ahk [2] Name=Attributes File=CMS_Part_Attributes.ahk [3] Name=Globals File=CMS_Part_Globals.ahk [4] Name=Setup File=CMS_Func_Setup.ahk [5] */ #SingleInstance force global PartCount GoGUI: gui := GuiCre...
by HotKeyIt
30 Nov 2017, 20:41
Forum: AutoHotkey_H
Topic: Cmd line bug
Replies: 3
Views: 88

Re: Cmd line bug

No this is a feature to pass command line parameters by name, see here: https://github.com/HotKeyIt/ahkdll/blob ... t.cpp#L948
by HotKeyIt
30 Nov 2017, 14:41
Forum: AutoHotkey_H
Topic: Cmd line bug
Replies: 3
Views: 88

Re: Cmd line bug

It is not a bug, it is a feature but I forgot to mention it in docs. If you want to access passed parameters one by one you will need to use: Loop A_Args.length() MsgBox A_Index "`n" A_Args[A_Index] Additionally in your example you can access parameters by name: A_Args.first = "second...
by HotKeyIt
26 Nov 2017, 07:24
Forum: Ask For Help
Topic: [listview_library] V1 → AHK_H V2 Topic is solved
Replies: 5
Views: 144

Re: [listview_library] V1 → AHK_H V2 Topic is solved

Here you go. Try always to use Struct , makes things much easier ;) #singleinstance force #Persistent global _LVITEM:=" (Q UINT mask; int iItem; int iSubItem; UINT state; UINT stateMask; LPTSTR pszText; int cchTextMax; int iImage; LPARAM lParam; int iIndent; " ((SubStr(A_OsVersion,1,InStr(...
by HotKeyIt
25 Nov 2017, 07:06
Forum: Ask For Help
Topic: HotKeyIt scripts anyone know anything about them? Topic is solved
Replies: 4
Views: 92

Re: HotKeyIt scripts anyone know anything about them? Topic is solved

You surely mean WinApi, this is now included in AHK_H so you can simply call the function as if it was build in.
It shouldn't be difficult to adapt BinRun to run on ahk_l if it does not!
by HotKeyIt
24 Nov 2017, 20:09
Forum: Ask For Help
Topic: Difficulty passing class method to function? Topic is solved
Replies: 10
Views: 153

Re: Difficulty passing class method to function? Topic is solved

test(this, method){ return this[method]() } class Foo { bar(){ return "Hello world" } } msgbox % test(Foo,"bar") You can also pass optionally parameters test(this, method, p*){ return this[method](p*) } class Foo { bar(string:=""){ return string?string:"No Message...
by HotKeyIt
24 Nov 2017, 20:01
Forum: Ask For Help
Topic: HotKeyIt scripts anyone know anything about them? Topic is solved
Replies: 4
Views: 92

Re: HotKeyIt scripts anyone know anything about them? Topic is solved

Most of those are on github or have been incorporated in AutoHotkey_H and can be found in ahkdll resources or in library.
Note, they might require AutoHotkey_H!
by HotKeyIt
24 Nov 2017, 17:10
Forum: AutoHotkey_H
Topic: What is _USRDLL and why autohotkey.dll v2 (alpha) doesn't call UnregisterClass when it's defined?
Replies: 3
Views: 112

Re: What is _USRDLL and why autohotkey.dll v2 (alpha) doesn't call UnregisterClass when it's defined?

Which version are you using and how do you create additional threads?

_USRDLL is a directive for code that exists only for AutoHotkey.dll and not AutoHotkey.exe.
I have added UnregisterClass for AutoHotkey.dll.
by HotKeyIt
19 Nov 2017, 15:18
Forum: Ask For Help
Topic: Unknown Object Properties called with Brackets do not invoke __GET() Topic is solved
Replies: 4
Views: 71

Re: Unknown Object Properties called with Brackets do not invoke __GET() Topic is solved

I think the right way here would be : _oTestMetaFunctions := new TestMetaFunctions msgbox % _oTestMetaFunctions.aArray[ "foo" ] msgbox % _oTestMetaFunctions.aArray.foo return class TestMetaFunctions { __GET( sName, p* ) { if ( "aArray" = sName ) { this.aArray := this.getArray() r...
by HotKeyIt
19 Nov 2017, 14:17
Forum: Ask For Help
Topic: Unknown Object Properties called with Brackets do not invoke __GET() Topic is solved
Replies: 4
Views: 71

Re: Unknown Object Properties called with Brackets do not invoke __GET() Topic is solved

Because in that case "foo" is a parameter: _oTestMetaFunctions := new TestMetaFunctions msgbox % _oTestMetaFunctions.aArray[ "foo" ] return class TestMetaFunctions { __GET( sName, param ) { if ( "aArray" = sName ) { this.aArray := this.getArray() return this.aArray[para...
by HotKeyIt
17 Nov 2017, 18:55
Forum: Scripts and Functions
Topic: [AHK v2] ObjTree - Explore and Edit objects easily
Replies: 9
Views: 416

Re: [AHK v2] ObjTree - Explore and Edit objects easily

Update wrote:
  • Fixed Font option.
  • Added option KeyNoEdit=1, this will disable editing keys, so only values can be edited.
  • Added InputBox for new item name when inserting new Items.
by HotKeyIt
16 Nov 2017, 16:52
Forum: Scripts and Functions
Topic: [Lib] ObjDump / ObjLoad - Object Backup
Replies: 51
Views: 7407

Re: [Lib] ObjDump / ObjLoad - Object Backup

Both should work fine now.
by HotKeyIt
15 Nov 2017, 19:14
Forum: Scripts and Functions
Topic: [Lib] ObjDump / ObjLoad - Object Backup
Replies: 51
Views: 7407

Re: [Lib] ObjDump / ObjLoad - Object Backup

Thanks, that should be fixed now.
Note, your version converts everything to strings which is not appropriate and will increase memory and affect speed!
by HotKeyIt
14 Nov 2017, 20:01
Forum: Ask For Help
Topic: __New(...) and base constructor Topic is solved
Replies: 2
Views: 94

Re: __New(...) and base constructor Topic is solved

The base object in your case is mySubclass and __New is called here. The docs also describe this situation: myObj := new myClass() myObj.var:="Another value" test:=new myObj MsgBox % test.var class myClass { var := "" __New() { this.var := "Some default value" } } In yo...

Go to advanced search