Search found 496 matches

by william_ahk
25 Apr 2024, 03:14
Forum: Ask for Help (v2)
Topic: Reposition a MsgBox?
Replies: 5
Views: 221

Re: Reposition a MsgBox?

Draken I didn't discover this message code. It was well established in v1 in this thread , I just translated it into v2. It appears to be WM_COMMNOTIFY according to this table https://www.autoitscript.com/autoit3/docs/appendix/WinMsgCodes.htm but I have no idea what that means. :D The AND operator ...
by william_ahk
24 Apr 2024, 21:30
Forum: Ask for Help (v2)
Topic: Reposition a MsgBox?
Replies: 5
Views: 221

Re: Reposition a MsgBox?

This method is more reliable

Code: Select all

OnMessage(0x44, CB := (*)=>(DetectHiddenWindows(True), WinExist("ahk_class #32770 ahk_pid " ProcessExist()) && WinMove(A_ScreenWidth-300)))
MsgBox("Right")
OnMessage(0x44, CB, 0)
MsgBox("Normal")
by william_ahk
22 Apr 2024, 19:30
Forum: Ask for Help (v2)
Topic: Gui Edit control accept file paste? Topic is solved
Replies: 4
Views: 144

Re: Gui Edit control accept file paste? Topic is solved

Yeah I guess I'll have to make a custom context menu in that case. But anyway, this is sufficient to me :D
by william_ahk
22 Apr 2024, 19:21
Forum: Scripts and Functions (v2)
Topic: Sequence generator
Replies: 8
Views: 1327

Re: Sequence generator

Template is fed into the Format function, supporting any format option defined in the docs. kunkel321 I have mentioned this in the post :D For the format string you tested, the syntax of the first parameter of Format is {Index:Format} . Index can only be 1 in this case as only a single value is pro...
by william_ahk
22 Apr 2024, 06:36
Forum: Ask for Help (v2)
Topic: Gui Edit control accept file paste? Topic is solved
Replies: 4
Views: 144

Re: Gui Edit control accept file paste? Topic is solved

Yes that's just what I need :thumbup:
This would cover most cases. But just a thought - is there any wizardry we can apply to Context Menu - Paste (or Shift+Ins) without modifying the clipboard?
by william_ahk
22 Apr 2024, 02:57
Forum: Scripts and Functions (v2)
Topic: Sequence generator
Replies: 8
Views: 1327

Re: Sequence generator

Like so MainGui := Gui("+AlwaysOnTop", "Series Generator")
by william_ahk
21 Apr 2024, 23:21
Forum: Scripts and Functions (v1)
Topic: SelectArea() improved
Replies: 0
Views: 146

SelectArea() improved

Modified the return value type to associative array, added built-in mouse drag support and cross cursor style. Feel free to improve the structure and report any bugs. Function: SelectArea(Options:="") { ; original by Learning One https://www.autohotkey.com/board/topic/57646-function-selectarea/ /* R...
by william_ahk
21 Apr 2024, 21:05
Forum: Ask for Help (v2)
Topic: Gui Edit control accept file paste? Topic is solved
Replies: 4
Views: 144

Gui Edit control accept file paste? Topic is solved

How can we make the Edit control to recognize the CF_HDROP format as a string, so that when we paste a file into it the filepath would be taken in? I don't want to register hotkeys to achieve this like ^v::MyGui.FocusedCtrl.Value := A_Clipboard
by william_ahk
20 Apr 2024, 19:09
Forum: Scripts and Functions (v2)
Topic: Sequence generator
Replies: 8
Views: 1327

Re: Sequence generator

peter_ahk wrote:
20 Apr 2024, 16:06
very nice, would it be ok if i add this as a tool to my macro lancher in there i am working on a setup gui to batch change button postions and this would be a great tool to include in there to generate a position list
Of course :)
by william_ahk
14 Apr 2024, 20:00
Forum: Scripts and Functions (v2)
Topic: ChildProcess
Replies: 1
Views: 169

Re: ChildProcess

Finally! I've been waiting for this. :bravo:
by william_ahk
02 Apr 2024, 03:01
Forum: Wish List
Topic: Break, continue - allow expression mode
Replies: 28
Views: 10011

Re: Break, continue - allow expression mode

Another way I just discovered, braces are used but lines are saved, also makes semantic sense.

Code: Select all

for index, item in list {
} until item = input && found := index
by william_ahk
01 Apr 2024, 02:07
Forum: General Discussion
Topic: How many have Spinning HDs vs SSDs?
Replies: 12
Views: 249

Re: How many have Spinning HDs vs SSDs?

I used to have the system installed on an HDD and there was this one software that writes its config periodically to the disk, and I can hear the noise every 2 seconds. It was absolutely annoying and I uninstalled it. :lol: But in the case of logs I suppose there is no other way around the constant ...
by william_ahk
30 Mar 2024, 10:06
Forum: Other Utilities & Resources
Topic: General purpose config editor?
Replies: 2
Views: 246

Re: General purpose config editor?

list Thanks! This seems really interesting, I will use it in one of my projects. During my re search, I found that this sort of control is called PropertyGrid and is well established in the .NET world. I also found this fully functional demo . It doesn't feature a TreeView though. configeditor.png
by william_ahk
28 Mar 2024, 22:01
Forum: Ask for Help (v2)
Topic: Why the interpreter complains about multiple statements inside an arrow function?
Replies: 3
Views: 123

Re: Why the interpreter complains about multiple statements inside an arrow function?

lexikos wrote:
28 Mar 2024, 19:51
However, v2.1-alpha.3+ permits function definition expressions, where you just write a proper function definition inline (without =>, and optionally omitting the name).
That's fantastic! :clap:
by william_ahk
27 Mar 2024, 23:04
Forum: Scripts and Functions (v2)
Topic: LV_GridColor()
Replies: 3
Views: 1171

Re: LV_GridColor()

Can you backport this to v1? I can't find a v1 version of this.
by william_ahk
26 Mar 2024, 22:34
Forum: Other Utilities & Resources
Topic: General purpose config editor?
Replies: 2
Views: 246

General purpose config editor?

Oftentimes I have to design a GUI for user settings that doesn't really require much embellishment on the input data. I have used Ini for such applications where the user can edit the config file with any text editor. Although, it becomes unwieldy when it comes to lists and nested entries. Moreover,...
by william_ahk
26 Mar 2024, 05:25
Forum: Ask for Help (v2)
Topic: copy on one machine, paste on another machine...
Replies: 5
Views: 154

Re: copy on one machine, paste on another machine...

ntfy.sh is perfect for this. Here's a preliminary implementation (text-only): #Requires AutoHotkey v2 #SingleInstance Force Persistent HOST := "ntfy.sh" SECRET := "XXXXXXXX" ; Replace this with an arbitrary string OnClipboardChange ClipSender ClipSender(DataType) { Global CS If DataType != 1 Return...

Go to advanced search