Search found 486 matches
- Yesterday, 20:00
- Forum: Scripts and Functions (v2)
- Topic: ChildProcess
- Replies: 1
- Views: 90
Re: ChildProcess
Finally! I've been waiting for this.
- 08 Apr 2024, 06:32
- Forum: Other Utilities & Resources
- Topic: Best way to automate web forms?
- Replies: 1
- Views: 97
Re: Best way to automate web forms?
Check out UIAutomation and FindText.
- 02 Apr 2024, 03:01
- Forum: Wish List
- Topic: Break, continue - allow expression mode
- Replies: 28
- Views: 9988
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
- 01 Apr 2024, 02:07
- Forum: General Discussion
- Topic: How many have Spinning HDs vs SSDs?
- Replies: 12
- Views: 208
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 ...
- 30 Mar 2024, 10:06
- Forum: Other Utilities & Resources
- Topic: General purpose config editor?
- Replies: 2
- Views: 125
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
- 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: 118
Re: Why the interpreter complains about multiple statements inside an arrow function?
That's fantastic!lexikos wrote: ↑28 Mar 2024, 19:51However, v2.1-alpha.3+ permits function definition expressions, where you just write a proper function definition inline (without =>, and optionally omitting the name).
- 27 Mar 2024, 23:04
- Forum: Scripts and Functions (v2)
- Topic: LV_GridColor()
- Replies: 3
- Views: 1056
Re: LV_GridColor()
Can you backport this to v1? I can't find a v1 version of this.
- 26 Mar 2024, 22:34
- Forum: Other Utilities & Resources
- Topic: General purpose config editor?
- Replies: 2
- Views: 125
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,...
- 26 Mar 2024, 05:25
- Forum: Ask for Help (v2)
- Topic: copy on one machine, paste on another machine...
- Replies: 5
- Views: 147
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...
- 25 Mar 2024, 21:11
- Forum: Ask for Help (v2)
- Topic: DirCreate deny access Topic is solved
- Replies: 3
- Views: 88
- 25 Mar 2024, 05:10
- Forum: Ask for Help (v2)
- Topic: Is there a "DriverSelect" function Topic is solved
- Replies: 3
- Views: 99
Re: Is there a "DriverSelect" function Topic is solved
Did you mean drive? Here's my implementation: SelectedDrive := DriveSelect() If SelectedDrive MsgBox "Selected " SelectedDrive Else MsgBox "Drive selection canceled." DriveSelect(PreselectDrive?, Prompt?, OwnerHwnd?) { Local Drives := StrSplit(DriveGetList()), Submission SelectGui := Gui(IsSet(Owner...
- 23 Mar 2024, 11:03
- Forum: Ask for Help (v2)
- Topic: Idea for using AHK on mobile (through a PC)
- Replies: 4
- Views: 114
- 21 Mar 2024, 23:39
- Forum: Ask for Help (v1)
- Topic: confused about #include
- Replies: 10
- Views: 191
Re: confused about #include
It is possible to do what you wanted. I wanted something similar earlier, here's a demonstration. Runner.ahk: ;@Ahk2Exe-Base %A_AhkPath%, Main.exe ;@Ahk2Exe-ResourceID #1 ;@Ahk2Exe-AddResource *6 Main.ahk, MAIN_SCRIPT #NoTrayIcon #NoEnv #SingleInstance Force SetWorkingDir %A_ScriptDir% ScriptName :=...
- 21 Mar 2024, 20:56
- Forum: Ask for Help (v2)
- Topic: Does SetTimer use polling to track the time? Topic is solved
- Replies: 1
- Views: 86
Does SetTimer use polling to track the time? Topic is solved
How is SetTimer actually implemented? Does it calculate a future timestamp for the next activation and periodically check if the current timestamp is >= than that timestamp? Is there any difference in energy cost between the two below? ; A SetTimer fn, -(60-A_Sec)*1000 ; B SetTimer chk, 1000 chk() {...
- 21 Mar 2024, 06:05
- Forum: Ask for Help (v1)
- Topic: How to dynamically access a objects properties?
- Replies: 1
- Views: 80
Re: How to dynamically access a objects properties?
In v1, you will have to use the bracket notation for dynamic properties (e.g. _ditto.search[thisProperty]).
In v2, you can use either obj.%dynaprop% for Object or mapobj[dynaprop] for Map Object.
In v2, you can use either obj.%dynaprop% for Object or mapobj[dynaprop] for Map Object.
- 20 Mar 2024, 03:04
- Forum: Ask for Help (v1)
- Topic: COM Word Replace Error 0x800A16DE - String parameter too long
- Replies: 2
- Views: 91
Re: COM Word Replace Error 0x800A16DE - String parameter too long
You can overcome the Replace limit by putting the long replacement text in the clipboard and putting ^c into the Replace field. Thanks Russ, I saw ^c being mentioned elsewhere and thought it meant Ctrl+C which didn't make quite much sense. Turns out it means the clipboard in MS Word. :lol: This app...
- 19 Mar 2024, 03:36
- Forum: Ask for Help (v1)
- Topic: COM Word Replace Error 0x800A16DE - String parameter too long
- Replies: 2
- Views: 91
COM Word Replace Error 0x800A16DE - String parameter too long
The following works perfect for short replacements, but not for long ones. It seems like there is a 255 character limit for the replace parameter. How does one overcome such limit? Text := "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel sapien facilisis, iaculis lacus nec, eleife...
- 19 Mar 2024, 00:12
- Forum: Ask for Help (v2)
- Topic: Send Japanese character to Amazon Workspace
- Replies: 3
- Views: 78
Re: Send Japanese character to Amazon Workspace
This client probably only recognises keystrokes. Try setting the text to clipboard, then sending Ctrl+V.
- 15 Mar 2024, 09:44
- Forum: Ask for Help (v2)
- Topic: How to make the gui DateTime's default focus on day Topic is solved
- Replies: 8
- Views: 187
Re: How to make the gui DateTime's default focus on day Topic is solved
My attempt
Code: Select all
#Requires AutoHotkey v2.0
MyGui := Gui()
MyGui.SetFont('s10')
MyGui.Opt("AlwaysOnTop")
;MyGui.AddEdit()
DTM := MyGui.Add("DateTime", "vMyDateTime", "LongDate")
DTM.OnEvent("Focus", E:=(Ctl, *) =>( ControlSend("{Left}", Ctl), Ctl.OnEvent("Focus", E, 0)) )
MyGui.Show()
- 10 Mar 2024, 10:10
- Forum: Ask for Help (v2)
- Topic: Does anyone have the v2 function to get the current URL?
- Replies: 3
- Views: 458
Re: Does anyone have the v2 function to get the current URL?
#Requires AutoHotkey v2.0 F1::Msgbox GetUrl() ; Version: 2023.10.05.1 ; https://gist.github.com/7cce378c9dfdaf733cb3ca6df345b140 GetUrl() { ; Active Window Only static S_OK := 0, TreeScope_Descendants := 4, UIA_ControlTypePropertyId := 30003, UIA_DocumentControlTypeId := 50030, UIA_EditControlTypeI...