Search found 8786 matches
- Today, 02:42
- Forum: Ask for Help (v2)
- Topic: Clipboard unvisible items
- Replies: 6
- Views: 114
Re: Clipboard unvisible items
My script is certain in v2 the #Requires AutoHotkey v2+ is on thet top of my script Well, we don't know your actual script and have to go with the information provided. We actually encounter a lot of v1 questions which are initially posted in the v2 help subforums. When I moved your script, I based...
- Yesterday, 18:25
- Forum: Ask for Help (v2)
- Topic: Open a pdf file in Chrome New tab
- Replies: 4
- Views: 77
Re: Open a pdf file in Chrome New tab
I was pretty sure I posted this in AHK 2.0 section [Mod action: Topic moved from "Ask for Help (v2)" since this is v1 code.] :shock: Can I please get this script for AHK 2.0 I moved the topic back to v2 help. Generally, if you post v1 code and want it translated to v2, it would be good to state thi...
- Yesterday, 12:04
- Forum: Ask for Help (v2)
- Topic: InStr(...) gives error?
- Replies: 22
- Views: 163
Re: InStr(...) gives error?
I used the v1 some years without seeing this problem... I think this is a very important thing, then is important to explain it on the hel manual, usage and syntax. There are plenty of topics on the v1 forums about this. But if people don't read the docs - and the FAQs are an important part of the ...
- Yesterday, 11:55
- Forum: Ask for Help (v2)
- Topic: InStr(...) gives error?
- Replies: 22
- Views: 163
Re: InStr(...) gives error?
It is in the FAQ - and before it has been for ages in the AHK v1 FAQ (then, only UTF-8 with BOM was recommended; v2 doesn't necessarily need the BOM).
- Yesterday, 11:45
- Forum: Ask for Help (v2)
- Topic: InStr(...) gives error?
- Replies: 22
- Views: 163
Re: InStr(...) gives error?
I already linked to it above: https://www.autohotkey.com/docs/v2/FAQ.htm#nonascii
in Notepad - Save as:
In other editors, look for something similar...
in Notepad - Save as:
In other editors, look for something similar...
- Yesterday, 11:38
- Forum: Ask for Help (v2)
- Topic: InStr(...) gives error?
- Replies: 22
- Views: 163
Re: InStr(...) gives error?
You are obviously using ANSI encoding for your script file and not the recommended UTF-8 (with or without BOM). I was using UTF-8 with BOM in my test above.
When I try ANSI, I get 13... with UTF-8 and UTF-8 with BOM, I get 16.
- Yesterday, 11:27
- Forum: Ask for Help (v2)
- Topic: InStr(...) gives error?
- Replies: 22
- Views: 163
Re: InStr(...) gives error?
AHK v2.0.12:
- Yesterday, 08:40
- Forum: Ask for Help (v2)
- Topic: Boilerplate current time Topic is solved
- Replies: 5
- Views: 75
Re: Boilerplate current time Topic is solved
Hallo, perhaps?: :?*X:,time::Send A_Hour ":" A_Min Thanks for your quick answer to. I'm using V2 here it seems not to work. The answer of ntepa worked. Should work in v2. Add #Requires AutoHotkey v2.0 and try again (because if you have also installed v1, this hotstring code is likely too ambigious ...
- 16 Apr 2024, 17:20
- Forum: Ask for Help (v2)
- Topic: i need a script for only the alphabet
- Replies: 20
- Views: 426
Re: i need a script for only the alphabet
@vanove, please use code tags when posting code! Thank you.
- 16 Apr 2024, 16:42
- Forum: Ask for Help (v2)
- Topic: I'd be grateful were someone to convert this 'ComObject' code
- Replies: 7
- Views: 894
Re: I'd be grateful were someone to convert this 'ComObject' code
Thank you. Unfortunately, both of these give me Error: Unexpected reserved word. Text: in Windows if (Window.Name != "Internet Explorer") Window.Refresh() regKeyPath:=… Line: 1643 File: C:\Users\XXX\global_V2.ahk The program will exit. But only if I #include this file 'global_V2.ahk' in the script ...
- 16 Apr 2024, 07:10
- Forum: Ask for Help (v2)
- Topic: Help turning a string into calling a variable Topic is solved
- Replies: 2
- Views: 55
Re: Help turning a string into calling a variable Topic is solved
Try this
string is a reserved word in v2, and can't be used as a variable name.
For dereference operations, there is %Expr%.
Code: Select all
#Requires AutoHotkey v2.0
v1 := "q"
v2 := "e"
v3 := "r"
str := "123"
CurChar := SubStr(str, 1 , 1)
x::SendInput "{" %"v" CurChar% " down}"
For dereference operations, there is %Expr%.
- 16 Apr 2024, 04:46
- Forum: Ask for Help (v2)
- Topic: A_IsUnicode value
- Replies: 1
- Views: 32
Re: A_IsUnicode value
v2 is always Unicode
https://www.autohotkey.com/docs/v2/v2-changes.htm#built-in-variables wrote:Removed:
[...]
A_IsUnicode (v2 is always Unicode; it can be replaced with StrLen(Chr(0xFFFF)) or redefined with global A_IsUnicode := 1)
- 15 Apr 2024, 12:19
- Forum: Ask for Help (v1)
- Topic: Issue with AHK Script - Numpad1 and NumpadDel Conflict
- Replies: 8
- Views: 141
Re: Issue with AHK Script - Numpad1 and NumpadDel Conflict
Back to the original topic, however, I think (without seeing the OP's code) my original assessment of their problem would probably stand. Didn't Numpad1 & NumpadDel::msgbox with NumLock ON work for you like I described? In that direction, this is also the original Windows behaviour outside of AHK, ...
- 15 Apr 2024, 11:10
- Forum: Ask for Help (v1)
- Topic: Too few parameters error
- Replies: 1
- Views: 40
Re: Too few parameters error
But I wan to only disable it on my laptop keyboard and not my attached one. That's not what GetKeySC does - and it would require one non-optional parameter. For details, please have a look at the GetKeySC docs. (But this function won't help here, afaik.) Differentiating multiple keyboards is actual...
- 15 Apr 2024, 10:28
- Forum: Ask for Help (v1)
- Topic: Issue with AHK Script - Numpad1 and NumpadDel Conflict
- Replies: 8
- Views: 141
Re: Issue with AHK Script - Numpad1 and NumpadDel Conflict
RussF : Yeah, that sentence looks wrong and has confused me before, I think. NumLock has always been tricky - and the docs quite meager. I just remember from the past that when NumLock is OFF, you need these shifted hotkeys: +numpadend::msgbox % "Shifted Numpad End" +numpaddel::msgbox % "Shifted Nu...
- 15 Apr 2024, 08:03
- Forum: Ask for Help (v1)
- Topic: Issue with AHK Script - Numpad1 and NumpadDel Conflict
- Replies: 8
- Views: 141
Re: Issue with AHK Script - Numpad1 and NumpadDel Conflict
It is logically impossible to press Numpad1 and NumpadDel at the same time. It works here :) , although it's not a nice key combo... This code triggers when I press Numpad1 (keeping it pressed down) and then Shift and Numpad , (german layout has a Numpad comma instead of the dot, but it's still Num...
- 15 Apr 2024, 07:28
- Forum: Ask for Help (v1)
- Topic: Issue with AHK Script - Numpad1 and NumpadDel Conflict
- Replies: 8
- Views: 141
Re: Issue with AHK Script - Numpad1 and NumpadDel Conflict
If you have a problem with your script, I can only recommend to post it (between code tags please). Generally, your problem description could possibly hint at a missing return at the end of a multi-line hotkey so that code execution falls through to following code. But this is just guesswork without...
- 14 Apr 2024, 22:04
- Forum: Gaming
- Topic: Solving a captcha that appears in an idle game I dabble in
- Replies: 2
- Views: 43
Re: Script help: combine left click macro with another script which presses the "1" hotkey
@nath
The above post was moved here from a totally different topic (which in fact didn't have a gif) - but it looks like you actually looked for this topic.
The above post was moved here from a totally different topic (which in fact didn't have a gif) - but it looks like you actually looked for this topic.
- 13 Apr 2024, 18:43
- Forum: Gaming Help (v1)
- Topic: click on image text
- Replies: 11
- Views: 151
Re: click on image text
For games you can post here: https://www.autohotkey.com/boards/viewforum.php?f=18 Sure, new gaming topics should be created there. For already existing discussions like this, it is much more preferable to just move them. (I just did that, although Imagesearch questions are not necessarily limited t...
- 13 Apr 2024, 17:54
- Forum: Ask for Help (v2)
- Topic: Remap HAT POV
- Replies: 2
- Views: 44
Re: Remap HAT POV
raoulemilian2 , I merged your two topics which seem closely related. The second one was in the v1 help forum though. Since v1 is deprecated, I assume that you prefer to continue with your v2 topic. Please don't create multiple topics for the same question. Thank you! Here is an example how to check...