Search found 1049 matches
- Today, 08:06
- Forum: Ask for Help (v2)
- Topic: Focus after exiting Program
- Replies: 2
- Views: 55
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...
- Today, 07:20
- Forum: Scripts and Functions (v2)
- Topic: [Function] MsgBoxTBI - Display a MsgBox window with an icon in the title bar
- Replies: 14
- Views: 499
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...
- Yesterday, 20:12
- Forum: Scripts and Functions (v2)
- Topic: [Function] MsgBoxTBI - Display a MsgBox window with an icon in the title bar
- Replies: 14
- Views: 499
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...
- Yesterday, 20:06
- Forum: Ask for Help (v2)
- Topic: How to start a program and hide it immediately?
- Replies: 5
- Views: 87
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...
- Yesterday, 16:33
- Forum: Ask for Help (v2)
- Topic: How to start a program and hide it immediately?
- Replies: 5
- Views: 87
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"
- Yesterday, 07:58
- Forum: Scripts and Functions (v2)
- Topic: ApplicationSwitcher for v2
- Replies: 5
- Views: 315
Re: ApplicationSwitcher for v2
This is really cool -- Thanks for sharing it!
- Yesterday, 07:35
- Forum: Scripts and Functions (v2)
- Topic: [Function] MsgBoxTBI - Display a MsgBox window with an icon in the title bar
- Replies: 14
- Views: 499
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: 70
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: 247
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: 247
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: 247
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: 247
- 17 Apr 2024, 11:30
- Forum: Ask for Help (v2)
- Topic: InStr(...) gives error?
- Replies: 24
- Views: 247
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...
- 17 Apr 2024, 11:20
- Forum: Ask for Help (v2)
- Topic: InStr(...) gives error?
- Replies: 24
- Views: 247
Re: InStr(...) gives error?
I'm getting 17...
- 16 Apr 2024, 10:00
- Forum: Scripts and Functions (v2)
- Topic: AutoCorrect for v2
- Replies: 101
- Views: 9201
Re: AutoCorrect for v2
.... I assumed you had an updated list of single words that you then convert to multiple matching. Unfortunately, no. There's no table that indicates each original 'whole-word' item, and the 'multi-match' items that were derived from them. It occurred to me after converting the list, that I should ...
- 16 Apr 2024, 08:01
- Forum: Off-topic Discussion
- Topic: Beginner to VSCode/GitHub/GitDeskop.
- Replies: 11
- Views: 393
Re: Beginner to VSCode/GitHub/GitDeskop.
lol... No... just discovered it, but I came back here to mention that I am getting a 404 error when trying to access the course page. So I'm not sure if it is just me or not. Can you access the course page? Same here. It seemed like it was installing, then when I tried to choose a repo... 404. Than...
- 15 Apr 2024, 20:48
- Forum: Ask for Help (v2)
- Topic: Best way to ensure single instance of GUI?
- Replies: 5
- Views: 118
Re: Best way to ensure single instance of GUI?
These are all excellent approaches. Thanks Folks!
- 15 Apr 2024, 20:47
- Forum: Off-topic Discussion
- Topic: Beginner to VSCode/GitHub/GitDeskop.
- Replies: 11
- Views: 393
Re: Beginner to VSCode/GitHub/GitDeskop.
Very cool! Have you been using this?andymbody wrote: ↑15 Apr 2024, 20:26I am also new to GitHub. Are you aware of the GitHub learning lab?
- 15 Apr 2024, 10:06
- Forum: Ask for Help (v2)
- Topic: Best way to ensure single instance of GUI?
- Replies: 5
- Views: 118
Best way to ensure single instance of GUI?
With some help from gpt, then some additional tweaking, I got the below code working. Is this the best way to ensure that I don't get multiple instances of g2? (Assume that the user clicks the g1 'make' button over and over.) It occurs to me to keep g2 in RAM and just show/hide it... Should I do tha...
- 15 Apr 2024, 09:26
- Forum: Scripts and Functions (v2)
- Topic: AutoCorrect for v2
- Replies: 101
- Views: 9201