Search found 1056 matches
- Yesterday, 20:34
- Forum: Scripts and Functions (v2)
- Topic: AutoCorrect for v2
- Replies: 104
- Views: 9410
Re: AutoCorrect for v2
1) when I type something into a box and then tab to the next box, if the thing that I put into the first box is a hotkey then the translation mostly gets put into the second box. I'm not sure I understand what you mean... First I want to make sure you mean "hotkey" such as #h::, rather than "hotstr...
- Yesterday, 20:13
- Forum: Scripts and Functions (v2)
- Topic: Sequence generator
- Replies: 8
- Views: 1247
Re: Sequence generator
Ah yes, I see that now -- LOL!
And thanks for the extended explanation!
- Yesterday, 16:46
- Forum: Scripts and Functions (v2)
- Topic: AutoCorrect for v2
- Replies: 104
- Views: 9410
Re: AutoCorrect for v2
I think Jasonosaj is the one who suggested scanning the entire code when doing validity checks (rather that just stopping after the first identified duplicate/conflict.) That has been added in the GitHub repo. Interestingly, this created a dilemma... If a user puts a really short 'word-middle' multi...
- Yesterday, 15:04
- Forum: Scripts and Functions (v2)
- Topic: Sequence generator
- Replies: 8
- Views: 1247
Re: Sequence generator
Pretty cool thing! I'm playing around with the Template: value... I don't really understand what is happening. I looked in the code, then found my way to this https://www.autohotkey.com/docs/v2/lib/Format.htm I'm just experimenting with some of the values in that ahk docs page... If I set the Stop t...
- 21 Apr 2024, 13:30
- Forum: Ask for Help (v2)
- Topic: How to use Window Spy with multiple monitors
- Replies: 21
- Views: 220
Re: How to use Window Spy with multiple monitors
How do I use that in the ControlClick syntax? The ControlClick syntax is here: https://www.autohotkey.com/docs/v2/lib/ControlClick.htm Unfortunately, it probably won't matter. If you were able to isolate the control, you'd know, because WinSpy would put a little highlighted rectangle around it and ...
- 21 Apr 2024, 10:43
- Forum: Ask for Help (v2)
- Topic: Split a text file based on a delimiter
- Replies: 3
- Views: 82
Re: Split a text file based on a delimiter
Try this, makes the SplitArray Building on Banaanae's... #SingleInstance #Requires AutoHotkey v2+ Text := " ( SPLIT LINE HERE text line #1a text line #2a text line #3a text line #4a SPLIT LINE HERE text line #1b text line #2b text line #3b text line #4b SPLIT LINE HERE text line #1c text line #2c t...
- 21 Apr 2024, 10:33
- Forum: Ask for Help (v2)
- Topic: How to use Window Spy with multiple monitors
- Replies: 21
- Views: 220
Re: How to use Window Spy with multiple monitors
What app has the 'save' buttons? Is it Chrome Browser, or a Windows App? AHK Has "ControlGet" which can sometimes isolate a button for pressing (no coordinates needed). It won't work in Chrome Browser web apps though. Try dragging the WinSpy crosshairs over the button to see if you can capture its i...
- 19 Apr 2024, 08:06
- Forum: Ask for Help (v2)
- Topic: Focus after exiting Program
- Replies: 3
- Views: 76
Re: Focus after exiting Program
Hi there, I was having trouble understanding your question, so I pasted it into ChatGPT. The response is below. Has ChatGPT correctly understood your question? Bassman has an AutoHotkey script that uses various shortcuts, which is set to run automatically when the computer starts (likely placed in t...
- 19 Apr 2024, 07:20
- Forum: Scripts and Functions (v2)
- Topic: [Function] MsgBoxTBI - Display a MsgBox window with an icon in the title bar
- Replies: 14
- Views: 551
Re: [Function] MsgBoxTBI - Display a MsgBox window with an icon in the title bar
Yes, thank you! No error messages for me this time. No icon on the first msgbox, but the next three does have them. Final box has: --------------------------- TBI text box icons.ahk --------------------------- 77346937 77348000 SetTitleBarIcon 77348015 HSHELL_WINDOWCREATED 77349000 HSHELL_WINDOWDEST...
- 18 Apr 2024, 20:12
- Forum: Scripts and Functions (v2)
- Topic: [Function] MsgBoxTBI - Display a MsgBox window with an icon in the title bar
- Replies: 14
- Views: 551
Re: [Function] MsgBoxTBI - Display a MsgBox window with an icon in the title bar
Getting a different error message with AHK v1.0.12 Maybe it's a "run as admin" problem? Error: (5) Access is denied. 054: DetectHiddenWindows(true) 055: WinExist('ahk_class #32770') ▶ 056: SendMessage(WM_SETICON, ICON_SMALL, hIconSmall) 057: SendMessage(WM_SETICON, ICON_BIG, hIconBig) 058: OnMessage...
- 18 Apr 2024, 20:06
- Forum: Ask for Help (v2)
- Topic: How to start a program and hide it immediately?
- Replies: 5
- Views: 101
Re: How to start a program and hide it immediately?
....To see the differences/lack of differences: #Requires AutoHotkey v2.0 target1 := "C:\Program Files\Google\Chrome\Application\chrome.exe" " https://www.autohotkey.com/docs/v2/lib/Run.htm" target2 := "C:\Program Files\Google\Chrome\Application\chrome.exe https://www.autohotkey.com/docs/v2/lib/Run...
- 18 Apr 2024, 16:33
- Forum: Ask for Help (v2)
- Topic: How to start a program and hide it immediately?
- Replies: 5
- Views: 101
Re: How to start a program and hide it immediately?
If I'm reading the help docs correctly, this should work:
It doesn't seem to be starting minimized though....
Code: Select all
#Requires AutoHotkey v2+
;Note space before webpage.
target := "C:\Program Files\Google\Chrome\Application\chrome.exe" " https://www.autohotkey.com/docs/v2/lib/Run.htm"
Run target,, "Min"
- 18 Apr 2024, 07:58
- Forum: Scripts and Functions (v2)
- Topic: ApplicationSwitcher for v2
- Replies: 5
- Views: 356
Re: ApplicationSwitcher for v2
This is really cool -- Thanks for sharing it!
- 18 Apr 2024, 07:35
- Forum: Scripts and Functions (v2)
- Topic: [Function] MsgBoxTBI - Display a MsgBox window with an icon in the title bar
- Replies: 14
- Views: 551
Re: [Function] MsgBoxTBI - Display a MsgBox window with an icon in the title bar
Cool idea. I'm getting errors though... I'm on Win 10 with RaptorX's AHKToolBox, to test your self contained example. It has AHK v2.0.2. First two message boxes work, but there is no icon... Third msgbox causes error: Error: Expected a Number but got an empty string. 069: If wParam = HSHELL_WINDOWDE...
- 17 Apr 2024, 13:31
- Forum: Wish List
- Topic: Notify if not UTF-8?
- Replies: 3
- Views: 99
Notify if not UTF-8?
It seems like lots of folks have run into the problem of not having their ahk files encoded as UTF-8. Should AutoHotKey (during validation) detect if there are Unicode characters, then return a warning, if the ahk file is not UTF-8 (??)
- 17 Apr 2024, 13:27
- Forum: Ask for Help (v2)
- Topic: InStr(...) gives error?
- Replies: 24
- Views: 304
Re: InStr(...) gives error?
Can anyone tell me how I can automatically substitute all "xE9" special character ( and other similar ) with another character I want? I use the SciTE4AutoHotkey editor. Thank you very much. Did these "xE9" characters appear when you changed the file to UTF encoding? If so, see my previous recommen...
- 17 Apr 2024, 12:12
- Forum: Ask for Help (v2)
- Topic: InStr(...) gives error?
- Replies: 24
- Views: 304
Re: InStr(...) gives error?
Editing it with the UTF-8 encode, shows all characters "è" like "xE9": how I can automatically substitute all chars? My autocorrect tool has a bunch of accented-words. Something I remember running in to, is that, if your characters are already messed up, then changing the formatting to UTF won't fi...
- 17 Apr 2024, 11:40
- Forum: Ask for Help (v2)
- Topic: InStr(...) gives error?
- Replies: 24
- Views: 304
Re: InStr(...) gives error?
Weird... Sorry, I don't know why.
Does this give you '5' ?
Also, sorry, I put "UDF-8 with BOM" but I meant "UTF-8 with BOM." (unicode text format)
Does this give you '5' ?
Code: Select all
#SingleInstance
#Requires AutoHotkey v2+
sOriginalString := "123456789"
sSubStr := "5"
msgbox iTest := Instr(sOriginalString, sSubStr, 0,,)
- 17 Apr 2024, 11:34
- Forum: Ask for Help (v2)
- Topic: InStr(...) gives error?
- Replies: 24
- Views: 304
- 17 Apr 2024, 11:30
- Forum: Ask for Help (v2)
- Topic: InStr(...) gives error?
- Replies: 24
- Views: 304
Re: InStr(...) gives error?
I think it might make a difference if your ahk file is not saved as format "UDF-8 with BOM." With the below, I get 15. I think the accented o character might get converted to two characters(?) #SingleInstance #Requires AutoHotkey v2.0 sOriginalString := "qweQWEghjklpoiqwe123456df" sSubStr := "QWE" m...