Search found 21 matches

by Larkal
22 Nov 2022, 21:52
Forum: AutoHotkey Development
Topic: AutoHotkey-jk Thoughts?
Replies: 1
Views: 624

AutoHotkey-jk Thoughts?

What are people's thoughts on AutoHotkey-jk? https://github.com/Lexikos/AutoHotkey-jk Personally, I'm a much bigger fan of the Javascript syntax more than the native AutoHotkey syntax and as such I've already started to move a lot of my daily use scripts into this syntax as well as making all my new...
by Larkal
04 May 2021, 04:30
Forum: Ask for Help (v2)
Topic: Set MsgBox Button Text? a133 Topic is solved
Replies: 4
Views: 803

Re: Set MsgBox Button Text? a133 Topic is solved

Thanks lexikos , that was exactly right. I was able to get it working using DetectHiddenWindows true and WinExist. Here's what I finally got working OnMessage(0x44, OnMsgBox) gMsgBoxTitle := "Hello Autohotkey" MsgBox("Hello, world!", gMsgBoxTitle, 0x4243) OnMsgBox(wParam, lParam, msg, hwnd) { global...
by Larkal
30 Apr 2021, 22:51
Forum: Ask for Help (v2)
Topic: Set MsgBox Button Text? a133 Topic is solved
Replies: 4
Views: 803

Re: Set MsgBox Button Text? a133 Topic is solved

If I try just using hwnd it complains
Error: Target control not found.
by Larkal
30 Apr 2021, 17:09
Forum: Ask for Help (v2)
Topic: Set MsgBox Button Text? a133 Topic is solved
Replies: 4
Views: 803

Set MsgBox Button Text? a133 Topic is solved

Can someone tell me what I'm doing wrong and how to get a message box with customized button text? OnMessage(0x44, OnMsgBox) msgboxResult := MsgBox("Hello, world!", "This is AutoHotkey", 0x4243) OnMsgBox(wParam, lParam, msg, hwnd) { wintitle := "ahk_id " hwnd ControlSetText "This", "Button1", wintit...
by Larkal
29 Apr 2021, 21:45
Forum: Scripts and Functions (v2)
Topic: CliSAK class - 2022/11/12 - beta.15
Replies: 29
Views: 7798

Re: CliSAK class - 2021/03/09 - a128

Any chance of an update soon for v133? I really love this and use it on a few of my scripts!
by Larkal
24 Apr 2021, 16:41
Forum: Ask for Help (v2)
Topic: Help Updating Lexikos ShellRun for Latest AutoHotkey 2 Release Topic is solved
Replies: 9
Views: 4473

Re: Help Updating Lexikos ShellRun for Latest AutoHotkey 2 Release Topic is solved

Awesome thanks a lot! I use this function every day so I really appreciate it.
by Larkal
24 Apr 2021, 02:09
Forum: Ask for Help (v2)
Topic: Help Updating Lexikos ShellRun for Latest AutoHotkey 2 Release Topic is solved
Replies: 9
Views: 4473

Re: Help Updating Lexikos ShellRun for Latest AutoHotkey 2 Release Topic is solved

Just updated to v2.0-a132-8673ba2f and it's broken again. swagfag 's code was previously working. I've tried to update it but this is a bit beyond me. I was reading the documentation for the ComObj changes, but I'm still mystified. Here's swagfag's code with the changes I tried making that don't wor...
by Larkal
06 Dec 2020, 16:22
Forum: AutoHotkey Development
Topic: Key name synonyms
Replies: 4
Views: 4122

Re: Key name synonyms

Curdflappers wrote: I agree with @jeeswg on all accounts, switching to these names would:

- be simpler
- be consistent
- remove confusion with keywords (e.g. return, break)
Same, 100% agree.
by Larkal
09 Aug 2020, 18:59
Forum: AutoHotkey Development
Topic: Community Question - What Built In Variables Would You Add?
Replies: 0
Views: 1522

Community Question - What Built In Variables Would You Add?

If you had your choice to add built-in variables to the main branch of AHK2 what would you add and why? For me, I would personally add A_AhkDir (AutoHotkey_H ftw), A_AppDataLocal, A_ProgramData (looking at you A_AppDataCommon). A_AhkDir, because I use it often enough. A_AppDataLocal, so I don't have...
by Larkal
01 Aug 2020, 02:40
Forum: Scripts and Functions (v2)
Topic: [v2] Yaml and JSON parser
Replies: 32
Views: 14867

Re: [v2] Yaml and JSON parser

Any chance of an update? I would love to use YAML as a configuration format for a project I am working on.
by Larkal
29 Jul 2020, 00:26
Forum: Ask for Help (v2)
Topic: Problem With Dynamically Generated TrayMenu Topic is solved
Replies: 2
Views: 2224

Re: Problem With Dynamically Generated TrayMenu Topic is solved

Thanks, I managed to get it working with func/bind. #SingleInstance Force A_TrayMenu.Delete ; Remove the default tray menu. global testArray := [ 21, 32, 54] Loop testArray.Length { A_TrayMenu.Add "testArray[" A_Index "] = " testArray[A_Index], Func("WhatsTheNumber").Bind(A_Index) } A_TrayMenu.Add ;...
by Larkal
26 Jul 2020, 22:27
Forum: Ask for Help (v2)
Topic: Problem With Dynamically Generated TrayMenu Topic is solved
Replies: 2
Views: 2224

Problem With Dynamically Generated TrayMenu Topic is solved

#SingleInstance Force A_TrayMenu.Delete ; Remove the default tray menu. global testArray := [ 21, 32, 54] Loop testArray.Length { A_TrayMenu.Add "testArray[" A_Index "] = " testArray[A_Index], (*) => WhatsTheNumber(A_Index) } A_TrayMenu.Add ; Separator A_TrayMenu.Add "Exit", (*) => ExitApp() WhatsT...
by Larkal
19 Jul 2020, 07:47
Forum: Scripts and Functions (v2)
Topic: MsgBox Creator for AHK [v2]
Replies: 33
Views: 11614

Re: MsgBox Creator for AHK v2 - a115

Awesome! Thanks, amazing work! I used to use the one for AHK 1 as well, much appreciated.
by Larkal
12 Jul 2020, 00:03
Forum: Ask for Help (v2)
Topic: Help and Questions about RegisterWindowMessage Topic is solved
Replies: 1
Views: 1860

Help and Questions about RegisterWindowMessage Topic is solved

I'm playing around with SKAN's RegisterWindowMessage Shellhook. (https://autohotkey.com/board/topic/80644-how-to-hook-on-to-shell-to-receive-its-messages/) From what I understand the ShellMessage function should only be receiving 2 parameters (wParam and lParam). However, when I use it it's receivin...
by Larkal
04 Jul 2020, 18:54
Forum: Ask for Help (v2)
Topic: Help Updating Lexikos ShellRun for Latest AutoHotkey 2 Release Topic is solved
Replies: 9
Views: 4473

Help Updating Lexikos ShellRun for Latest AutoHotkey 2 Release Topic is solved

I'm trying to get Lexikos's ShellRun running on AutoHotkey 2, but I'm running into problems. I'm not good with DllCalls and COM objects, so I'm at a bit of a loss. I'm running into these errors and I don't know what to do: Error: No valid COM object! ---> shellObj := ComObject(9, pdisp, 1).Applicati...
by Larkal
09 Apr 2020, 02:06
Forum: AutoHotkey_H
Topic: AutoHotkey_H v2 A_TrayMenu Problem
Replies: 2
Views: 1977

Re: AutoHotkey_H v2 A_TrayMenu Problem

Awesome thanks that fixed it!
by Larkal
08 Apr 2020, 05:59
Forum: AutoHotkey_H
Topic: AutoHotkey_H v2 A_TrayMenu Problem
Replies: 2
Views: 1977

AutoHotkey_H v2 A_TrayMenu Problem

A_TrayMenu.Add "Exit", "ExitApp" This was working in a previous version of AutoHotkey_H 2, but I just updated to the latest release ( as of 2 days ago ) and now this code throws an error Error: Invalid number of parameters. Line# ---> 002: A_TrayMenu.Add("Exit", "ExitApp") The current thread will e...
by Larkal
08 Mar 2019, 23:49
Forum: AutoHotkey_H
Topic: AutoHotkey_H 2 vs AutoHotkey v2
Replies: 1
Views: 2046

AutoHotkey_H 2 vs AutoHotkey v2

So I'm trying to figure out what I should transition to in regards to AutoHotkey 2 or AutoHotkey_H 2. I have a large collection of scripts written for AutoHotkey 1.1 that I'm currently converting to AHK v2. Is AutoHotkey_H 2 suitable as a standalone scripting environment or is it designed solely to ...
by Larkal
08 Mar 2019, 23:43
Forum: AutoHotkey Development
Topic: Why Should I Switch to AHK v2?
Replies: 4
Views: 2238

Re: Why Should I Switch to AHK v2?

Thanks for the input! Anything you can tell me about the improved performance?
Also is AHK 2 feature complete when compared to 1.1 does it — in it's current state, have all the same features as AHK 1.1?

Go to advanced search