Search found 8778 matches

by gregster
Today, 17:20
Forum: Ask for Help (v2)
Topic: i need a script for only the alphabet
Replies: 19
Views: 399

Re: i need a script for only the alphabet

@vanove, please use code tags when posting code! Thank you.

ctags.png
ctags.png (14.18 KiB) Viewed 17 times
by gregster
Today, 16:42
Forum: Ask for Help (v2)
Topic: I'd be grateful were someone to convert this 'ComObject' code
Replies: 6
Views: 857

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 ...
by gregster
Today, 07:10
Forum: Ask for Help (v2)
Topic: Help turning a string into calling a variable Topic is solved
Replies: 2
Views: 48

Re: Help turning a string into calling a variable Topic is solved

Try this

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}"
string is a reserved word in v2, and can't be used as a variable name.
For dereference operations, there is %Expr%.
by gregster
Today, 04:46
Forum: Ask for Help (v2)
Topic: A_IsUnicode value
Replies: 1
Views: 31

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)
by gregster
Yesterday, 12:19
Forum: Ask for Help (v1)
Topic: Issue with AHK Script - Numpad1 and NumpadDel Conflict
Replies: 8
Views: 132

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, ...
by gregster
Yesterday, 11:10
Forum: Ask for Help (v1)
Topic: Too few parameters error
Replies: 1
Views: 38

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...
by gregster
Yesterday, 10:28
Forum: Ask for Help (v1)
Topic: Issue with AHK Script - Numpad1 and NumpadDel Conflict
Replies: 8
Views: 132

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...
by gregster
Yesterday, 08:03
Forum: Ask for Help (v1)
Topic: Issue with AHK Script - Numpad1 and NumpadDel Conflict
Replies: 8
Views: 132

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...
by gregster
Yesterday, 07:28
Forum: Ask for Help (v1)
Topic: Issue with AHK Script - Numpad1 and NumpadDel Conflict
Replies: 8
Views: 132

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...
by gregster
14 Apr 2024, 22:04
Forum: Gaming
Topic: Script help: combine left click macro with another script which presses the "1" hotkey
Replies: 3
Views: 59

Re: Script help: combine left click macro with another script which presses the "1" hotkey

My original post did include a gif but now it isn't showing. There is really no gif in your first post, not even a broken one. But you shouldn't post your code as a picture anyway, but as plain text between code tags, so that people can easily inspect or copy and paste it from the resulting code bo...
by gregster
13 Apr 2024, 18:43
Forum: Gaming Help (v1)
Topic: click on image text
Replies: 11
Views: 144

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...
by gregster
13 Apr 2024, 17:54
Forum: Ask for Help (v2)
Topic: Remap HAT POV
Replies: 2
Views: 43

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...
by gregster
12 Apr 2024, 07:28
Forum: Ask for Help (v2)
Topic: need help about variable(about assign global and default value) Topic is solved
Replies: 8
Views: 144

Re: need help about variable(about assign global and default value) Topic is solved

@Seven0528
Yeah, the codeboxes still work with v1 syntax and the multi-line comment syntax changed in v2. This can be misleading.
by gregster
12 Apr 2024, 06:23
Forum: Ask for Help (v2)
Topic: Managing glossaries with the DeepL API
Replies: 10
Views: 214

Re: Managing glossaries with the DeepL API

I see. Well, the DeepL docs seem to provide cURL examples.
Iirc, there should be one or two libcurl wrappers for AHK v2. Perhaps this could simplify the web requests.
by gregster
12 Apr 2024, 05:59
Forum: Ask for Help (v2)
Topic: Managing glossaries with the DeepL API
Replies: 10
Views: 214

Re: Managing glossaries with the DeepL API

it may not be as versatile as other languages when it comes to keyboard control, as its name suggests I always thought that AHK is pretty good for keyboard control , but I don't see how this is related to the original request. The request seems to be about using a specific WebAPI via https requests...
by gregster
12 Apr 2024, 03:49
Forum: Ask for Help (v2)
Topic: Managing glossaries with the DeepL API
Replies: 10
Views: 214

Re: Managing glossaries with the DeepL API

Imo, the community offers a great deal of guidance and assistance - and all helpers (including the moderators and admins) are pure volunteers who spend lots of hours to keep these forums running. And it is still there for you, if you decide to use it. But we also have to take into account the motiva...
by gregster
11 Apr 2024, 19:13
Forum: Pulovers Macro Creator
Topic: Is Pause - Random Delay Option broken?
Replies: 7
Views: 1809

Re: Is Pause - Random Delay Option broken?

I did that, that's why i said i believe it does not work properly upon export. But then again, i just started ahk/pulover 3 days ago and i may have done something wrong on export and overall i don't quite know what i am doing. Sure, your fellow Pulover user rockitdontstopit seems to confirm this pr...
by gregster
11 Apr 2024, 11:38
Forum: Pulovers Macro Creator
Topic: Is Pause - Random Delay Option broken?
Replies: 7
Views: 1809

Re: Is Pause - Random Delay Option broken?

Crazy idea from a non-Pulover (but AutoHotkey) user: If you export it to AHK v1 code anyway, the Random command (or a related user-defined function ) should be easy to test and debug with a few AHK basics. I even heard that there is an official AHK support forum somewhere nearby. You could start wit...

Go to advanced search