Search found 29 matches
- 04 Aug 2023, 23:46
- Forum: Ask for Help (v2)
- Topic: Recursion limit error when ExitApp executes.(sometimes) Topic is solved
- Replies: 14
- Views: 1406
Re: Recursion limit error when ExitApp executes.(sometimes) Topic is solved
Here’s a little script to retrieve Autohotkey’s recursion limit. #Requires AutoHotkey v2-<v3 ; prefer 64-bit Escape:: ExitApp A_Clipboard := Integer(0) ; Set Clipboard to zero for iteration. ; Comment One out: getRecursionLimit() ; 1417 ; getRecursionLimit_if() ; 825: Looks in the ballpark ; Set A_C...
- 04 Aug 2023, 21:41
- Forum: Ask for Help (v2)
- Topic: Text to Speech Topic is solved
- Replies: 2
- Views: 320
Re: Text to Speech Topic is solved
Look over the v2 changes
https://www.autohotkey.com/docs/v2/v2-changes.htm#library
https://www.autohotkey.com/docs/v2/v2-changes.htm#library
ComObjCreate() → ComObject, which is a class now
- 01 Aug 2023, 16:25
- Forum: Ask for Help (v2)
- Topic: modifier artifically up when physically held Topic is solved
- Replies: 3
- Views: 321
Re: modifier artifically up when physically held Topic is solved
You likely have other code interfering.
From the key history window:
"#=Disabled via #HotIf"
From the key history window:
"#=Disabled via #HotIf"
- 02 Jan 2023, 08:53
- Forum: General Discussion
- Topic: V2 Officially Released!
- Replies: 10
- Views: 2022
Re: V2 Officially Released!
Regarding going from v1 to v2, I did need to update the syntax to many of my scripts, and most were straightforward (apart from a Gosub I had to convert to a function, but even that wasn't tedious). Something weird though, I just downloaded v2.0.2, and the executable insists it's still v2.0.0. Is t...
- 02 Jan 2023, 06:17
- Forum: Ask for Help (v2)
- Topic: How to recognize the difference between a blank Notepad and a Notepad with text Topic is solved
- Replies: 8
- Views: 709
Re: How to recognize the difference between a blank Notepad and a Notepad with text Topic is solved
I think what you're looking for is SetTitleMatchMode(3) to match the exact title. #Requires AutoHotkey v2 #SingleInstance Force #n:: { SetTitleMatchMode(3) if WinExist("Untitled - Notepad") WinActivate else Run "Notepad.exe" } But to answer the title, you can use: Txt:=WinGetText("Notepad ahk_class ...
- 01 Jan 2023, 01:39
- Forum: Off-topic Discussion
- Topic: « What's on your mind? » Topic is solved
- Replies: 4893
- Views: 1394773
Re: « What's on your mind? » Topic is solved
Happy New Year!
- 31 Dec 2022, 17:58
- Forum: General Discussion
- Topic: Is AHK v1.1 Still Being Developed Now that v2.0 Has Been Released? Topic is solved
- Replies: 3
- Views: 1301
Re: Is AHK v1.1 Still Being Developed Now that v2.0 Has Been Released? Topic is solved
No, v1.1 has been done with development for some time now. v1.1 development is basically dying a slow death. I am basically not adding new features to it, especially in areas that have already been superseded by v2.0, such as objects. However, bug fixes may apply: I don't intend to do much more with...
- 26 Dec 2022, 21:07
- Forum: Ask for Help (v2)
- Topic: Error after installing v2
- Replies: 7
- Views: 764
Re: Error after installing v2
teadrinker I have long awaited the day you would join the v2 world. Happy to see your endeavor! :bravo: I look forward to your many works of art to come. :salute: Also I see the last window doesn't support non-ASCII simbols in paths. Interesting, it seems a matter of when a character exceeds Chr(25...
- 20 Dec 2022, 18:31
- Forum: Ask for Help (v2)
- Topic: Installing version 2 as update
- Replies: 2
- Views: 470
Re: Installing version 2 as update
It is not necessary to remove AHK V1, you can reinstall it. AHK V2 is not backwards compatible. Use #Requires at the top of your scripts, the launcher will automatically attempt to select the appropriate exe. Regarding the recycling bin, sometimes that causes an issue of a file "in use." Try rebooti...
- 20 Dec 2022, 06:14
- Forum: General Discussion
- Topic: V2 Officially Released!
- Replies: 10
- Views: 2022
V2 Officially Released!
v2.0.0
Congrats to the entire AHK community!
Especially well done @lexikos, you are the true prodigy!
No amount of words, bits, and bytes can convey my gratitude.
I am beyond eternally grateful to this incredible community.
Well done everyone! Thank you all!
Congrats to the entire AHK community!
Especially well done @lexikos, you are the true prodigy!
No amount of words, bits, and bytes can convey my gratitude.
I am beyond eternally grateful to this incredible community.
Well done everyone! Thank you all!
- 14 Dec 2022, 06:05
- Forum: Ask for Help (v2)
- Topic: {AutoHotkey v2-rc3} I need a script that remaps shift to alt in games I play
- Replies: 13
- Views: 1248
Re: {AutoHotkey v2-rc3} I need a script that remaps shift to alt in games I play
Your attitude has improved exponentially compared to a day ago. Well done… What you’re asking is extremely simple and really does not require more that glancing over the basics. You do not need to learn even a fraction of the "entire *" language. Read the basics, if you can’t figure it out the commu...
- 11 Dec 2022, 15:41
- Forum: Bug Reports
- Topic: [v2.0-rc.3] `#HotIf [string]` is always false Topic is solved
- Replies: 6
- Views: 1055
Re: [v2.0-rc.3] `#HotIf [string]` is always false Topic is solved
Simply use a ternary
Code: Select all
abc() => "Triggered"
#HotIf abc()
a::MsgBox(abc())
#HotIf abc()?true:false
b::MsgBox(abc()) ; Triggered
- 03 Dec 2022, 19:30
- Forum: Bug Reports
- Topic: Format not enough precise
- Replies: 5
- Views: 793
Re: Format not enough precise
I do not believe this is a bug. From the Docs: https://lexikos.github.io/v2/docs/Concepts.htm#pure-numbers Note: There are some decimal fractions which the binary floating-point format cannot precisely represent, so a number is rounded to the closest representable number. This may lead to unexpected...
- 05 Oct 2022, 14:27
- Forum: Ask for Help (v1)
- Topic: how can I assign more keys to this script? Topic is solved
- Replies: 8
- Views: 725
Re: how can I assign more keys to this script? Topic is solved
The reaction time for the above script is kind of slow, so I'm returning to my old script.. If you have got the time could you please review it, and let me know if I did it correctly, I added mouse_wheel_up:="8" and mouse_wheel_down:="7", and added the same lines from the above. Although I'm not su...
- 05 Oct 2022, 07:36
- Forum: Ask for Help (v1)
- Topic: Function can not contain function, a way around? Topic is solved
- Replies: 8
- Views: 585
Re: Function can not contain function, a way around? Topic is solved
Function_Test() Function_Test() ; Not that it matters...but I think you want Function_Test() instead of Fucntion_Test() { Clipboard := "" ;Click, Click ect Sleep, 500 Send, {Ctrl Down}c{Ctrl Up} ClipWait, 3 if ErrorLevel { MsgBox, Error } ; remove this line ; cell(str, oneCellRange, digits := 0) My...
- 05 Oct 2022, 06:51
- Forum: Ask for Help (v1)
- Topic: Function can not contain function, a way around? Topic is solved
- Replies: 8
- Views: 585
Re: Function can not contain function, a way around? Topic is solved
Autohotkey v1 you can use gosub within the function to try simulating nested functions or define separately like @mikeyww suggested.
Autohotkey v2 allows nested functions.
https://lexikos.github.io/v2/docs/Functions.htm#nested
Autohotkey v2 allows nested functions.
https://lexikos.github.io/v2/docs/Functions.htm#nested
- 05 Oct 2022, 06:42
- Forum: Ask for Help (v1)
- Topic: how can I assign more keys to this script? Topic is solved
- Replies: 8
- Views: 725
Re: how can I assign more keys to this script? Topic is solved
The way your function is currently defined requires 3 parameters but you are only passing 2. This should get it working: #NoEnv ; Recommended for performance and compatibility with future releases. SendMode Input ; Recommended due to its superior speed and reliability. GroupAdd, gw2, Guild Wars 2 Gr...
- 05 Oct 2022, 05:06
- Forum: Ask for Help (v1)
- Topic: how can I assign more keys to this script? Topic is solved
- Replies: 8
- Views: 725
Re: how can I assign more keys to this script? Topic is solved
Hi, welcome to the forums!
Try using else if for the 2nd else. Alternatively consider using switch. Hope this helps
Try using else if for the 2nd else. Alternatively consider using switch. Hope this helps
- 02 Oct 2022, 08:31
- Forum: Bug Reports
- Topic: Keyboard generated double click and Win10 taskbar window switching
- Replies: 7
- Views: 1464
Re: Keyboard generated double click and Win10 taskbar window switching
Can confirm this happens in Windows 7 for both v1 and v2. Not sure if this is particularly an ahk bug or just OS design. This is happening anytime MouseIsOver("ahk_class TaskListThumbnailWnd ahk_exe explorer.exe") or maybe even WinExist for that matter. From my perspective: The OS seems to be using ...
- 02 Oct 2022, 02:08
- Forum: Ask for Help (v1)
- Topic: Pressing 1 key changes a bunch of keybinds at once, pressing another key rewrites said keys to something else.
- Replies: 3
- Views: 403
Re: Pressing 1 key changes a bunch of keybinds at once, pressing another key rewrites said keys to something else.
Here's a sample template of how to do this in v2. Same concept as boiler . Substitute "ahk_exe notepad.exe" with your 3D program. Escape::ExitApp ; optional, use Escape for this script to exit. global brushMode:=0 global sculptMode:=0 #HotIf WinActive("ahk_exe notepad.exe") b::{ ; brushMode global s...