这不完全正确。
https://www.autohotkey.com/docs/v2/Variables.htm#ref
https://www.autohotkey.com/docs/v2/lib/MouseGetPos.htm#Examples
您可能试图用 AHK v1 运行 AHK v2 脚本。
Search found 8846 matches
- 10 May 2024, 02:24
- Forum: 请求帮助
- Topic: 錯誤怎麼處理 Topic is solved
- Replies: 2
- Views: 655
- 08 May 2024, 18:46
- Forum: Ask for Help (v2)
- Topic: [v2.0.13+ bug] "up" and "down" states make hotkeys invalid
- Replies: 4
- Views: 339
Re: [v2.0.13+ bug] "up" and "down" states make hotkeys invalid
I can't reproduce this. Nothing crashes here with v2.0.14. The code above works as expected. (But of course, down shouldn't be used on the left side of :: , following a key name. And for a remapping , up shouldn't be used either, as already noted. It could still be used for a hotkey definition.) Wha...
- 08 May 2024, 12:36
- Forum: Scripts and Functions (v2)
- Topic: AutoCorrect for v2
- Replies: 136
- Views: 14407
Re: AutoCorrect for v2
@kunkel321, for a real mention, you need mention-tags around the user name.
You can also type @ and then the beginning of the user name, and then choose from the dropdown as soon as it populates. This will add the tags automatically:
-->
You can also type @ and then the beginning of the user name, and then choose from the dropdown as soon as it populates. This will add the tags automatically:
-->
- 08 May 2024, 11:50
- Forum: Ask for Help (v2)
- Topic: [v2.0.13+ bug] "up" and "down" states make hotkeys invalid
- Replies: 4
- Views: 339
Re: [v2.0.13+ bug] "up" and "down" states make hotkeys invalid
Your remappings used to rely on a bug or rather missing error detection, which is now fixed since v2.0.13: The purpose of a remapping is to remap one key to another, not the release of a key to another key. Try instead: + up::Send("{WheelUp}") - up::Send("{WheelDown}") Space up::Send("{Enter}")
- 07 May 2024, 15:13
- Forum: Gaming
- Topic: Solving a captcha that appears in an idle game I dabble in
- Replies: 4
- Views: 285
Re: Solving a captcha that appears in an idle game I dabble in
I have no experience with automating games - but this looks hard to solve with AHK. I can't help here.
- 07 May 2024, 10:56
- Forum: Gaming Help (v1)
- Topic: Help With script. Topic is solved
- Replies: 24
- Views: 1413
Re: Help With script. Topic is solved
Since you always posted v1 code in your posts above, I would expect that you have AHK v1 already installed (apparently along with AHK v2, which is fine) and used it before. The shown error message seems to indicate that now you tried to run the script from an editor like eg SciTE4AHK; so make sure t...
- 07 May 2024, 08:51
- Forum: Gaming Help (v1)
- Topic: Help With script. Topic is solved
- Replies: 24
- Views: 1413
Re: Help With script. Topic is solved
You are obviously trying to run AHK v1 code with AHK v2. Either use v1 or change the syntax to v2.
btw, please use code tags when posting code:
btw, please use code tags when posting code:
- 07 May 2024, 07:43
- Forum: Ich brauche Hilfe
- Topic: Formatierte Signatur in Thunderbird Topic is solved
- Replies: 13
- Views: 572
Re: Formatierte Signatur in Thunderbird Topic is solved
Ich habe gesehen das es z.B. Word programmspezifisch funktionieren soll. Ich muss ehrlich gestehen, das suchen in diesem Forum ist eine Qual und funktioniert zum teil gar nicht. Ich bekomme immer die Meldung ich hätte eben schon gesucht und solle es in 30 Sekunden noch mal versuchen. Benutz doch un...
- 06 May 2024, 19:24
- Forum: Ask for Help (v1)
- Topic: The best software similar to Lua
- Replies: 1
- Views: 380
Re: The best software similar to Lua
Since you posted in the AHK help forum, I would suggest AutoHotInterception (AHI) by evilC (also available as a v2 libary) as an alternative (wrapping a third-party driver which can also be used with other programming languages). If it's better than using Lua, I don't know, but it can differentiate ...
- 06 May 2024, 17:27
- Forum: Ask for Help (v2)
- Topic: Send and the Emoji Panel
- Replies: 7
- Views: 520
Re: Send and the Emoji Panel
I can reproduce it (being on Win11 right now).
Different send modes, key delays or running as admin don't seem to help. Even pasting the clipboard via AHK doesn't work.
Different send modes, key delays or running as admin don't seem to help. Even pasting the clipboard via AHK doesn't work.
- 06 May 2024, 17:23
- Forum: Ask for Help (v2)
- Topic: Odd hotstring behavior. XXwholeword triggers...
- Replies: 4
- Views: 293
Re: Odd hotstring behavior. XXwholeword triggers...
On v2.0.14?
On v2.0.13, I don't see it. Edit: Correction: I just discovered that I am still on v2.0.12 on this computer. Will update later.
lexikos fixed a hotstring bug on the latest version - perhaps it has side effects...
lexikos fixed a hotstring bug on the latest version - perhaps it has side effects...
- 06 May 2024, 15:02
- Forum: Bug Reports
- Topic: Error trying to download the V1 and V2 files with current version number
- Replies: 18
- Views: 1527
Re: Error trying to download the V1 and V2 files with current version number
Interestingly, the respective codes from example #4 (asynchronous HTTP request) work for me in v1 and v2:
https://www.autohotkey.com/docs/v2/lib/Download.htm#ExXHR
https://www.autohotkey.com/docs/v1/lib/URLDownloadToFile.htm#XHR
https://www.autohotkey.com/docs/v2/lib/Download.htm#ExXHR
https://www.autohotkey.com/docs/v1/lib/URLDownloadToFile.htm#XHR
- 05 May 2024, 03:23
- Forum: Ich brauche Hilfe
- Topic: :cx*:: - Problem bei Autohotkey v1.1.33.10
- Replies: 1
- Views: 207
Re: :cx*:: - Problem bei Autohotkey v1.1.33.10
Willkommen im Forum! Warum? Weil du den Hotstring innerhalb eines "Wortes" (direkt hinter 22,33) tippst. Damit der Hotstring trotzdem auslöst, solltest du die ? -Option hinzufügen. Die C -Option (case-sensitive) ist in diesem Fall überflüssig, afaics. Und die X -Option bräuchtest du nur, wenn du ein...
- 05 May 2024, 02:18
- Forum: Ask for Help (v2)
- Topic: Error in COM Word object when using a relative path to add a picture
- Replies: 2
- Views: 238
Re: Error in COM Word object when using a relative path to add a picture
The dot in the file path looks wrong: xrelPath := ".\media\MonaLisa.jpg"
What's the plan here? I don't think that a single . can be a valid name for a folder in Windows.
What's the plan here? I don't think that a single . can be a valid name for a folder in Windows.
- 04 May 2024, 16:55
- Forum: Ask for Help (v1)
- Topic: HoverScroll and Microsoft Edge
- Replies: 23
- Views: 3095
Re: HoverScroll and Microsoft Edge
After restart it's working without shutting down. But I can't detect the change in wheel motions like it used to work before. I don't know what's wrong with it. Is there a changes in wheel motion? For testing, I simply suggested a hotkey for the down arrow key on the keyboard. Since my crystal ball...
- 04 May 2024, 12:28
- Forum: Ask for Help (v1)
- Topic: HoverScroll and Microsoft Edge
- Replies: 23
- Views: 3095
Re: HoverScroll and Microsoft Edge
I don't really know how to use functions of AutoHotKey. i tried to edit script file to add down::Hoverscroll() at last line like this. is this way right that you suggested? ;f(t) = At + B A := (MaxLines - MinLines) / (MinInterval - Threshold) B := MaxLines - (A * MinInterval) Lines := Round(A * T +...
- 04 May 2024, 11:41
- Forum: Ask for Help (v1)
- Topic: HoverScroll and Microsoft Edge
- Replies: 23
- Views: 3095
Re: HoverScroll and Microsoft Edge
There is some documentation included in the original topic by Scoox (on the archived forums): https://www.autohotkey.com/board/topic/99405-hoverscroll-verticalhorizontal-scroll-without-focus-scrollwheel-acceleration/
- 04 May 2024, 11:25
- Forum: Ask for Help (v1)
- Topic: HoverScroll and Microsoft Edge
- Replies: 23
- Views: 3095
Re: HoverScroll and Microsoft Edge
I tried just now with now with v1.1.37.02 - and I added a hotkey at the end (see my post above), which will also make the script #persistent.
On Firefox and my editor, it worked.
On Firefox and my editor, it worked.
- 04 May 2024, 11:21
- Forum: Ask for Help (v1)
- Topic: HoverScroll and Microsoft Edge
- Replies: 23
- Views: 3095
Re: HoverScroll and Microsoft Edge
Afaics, the script above wouldn't do anything by itself - it's just a library, without any defined hotkeys, which could be included in a main script which contains the hotkeys calling the functions (of course, these hotkeys could also be created in the script itself). So, it's the expected result th...
- 04 May 2024, 11:06
- Forum: Ask for Help (v1)
- Topic: HoverScroll and Microsoft Edge
- Replies: 23
- Views: 3095
Re: HoverScroll and Microsoft Edge
So, the uncompiled scripts don't work either? Then, compiling them usually won't help a bit. If you only have problems with the exe-files, it could still be an antivirus false positive issue. Which version did you use to run/compile? In doubt, I would try the lastest v1 version first, and then - if ...