Search found 16 matches

by Arrivest
16 Sep 2020, 13:23
Forum: Ask For Help
Topic: How to access values of the Windows native env variables?
Replies: 2
Views: 54

Re: How to access values of the Windows native env variables?

Thanks very much! Now I see it's actually mentioned in the beginning of the docs, in the Concepts and Conventions page. However when I google "ahk env var", the build-in variables page comes first, so I didn't find the answer initially.
by Arrivest
16 Sep 2020, 12:11
Forum: Ask For Help
Topic: How to access values of the Windows native env variables?
Replies: 2
Views: 54

How to access values of the Windows native env variables?

There are native window env variables that AHK doesn't have with `A_variable`s. For instance, the %HOMEPATH% env variable of windows points to C:\Users\{username}, but there's no equivalent A_HOMEPATH. Another example is %LOCALAPPDATA% which points to C:\Users\{username}\AppData\Local. Is there a wa...
by Arrivest
28 Apr 2019, 23:47
Forum: Ask For Help
Topic: I set alt+up:: to do something, but it fires on pressing alt+ctrl+up too
Replies: 3
Views: 677

Re: I set alt+up:: to do something, but it fires on pressing alt+ctrl+up too

Hi @StefOnSteroids and @swagfag, thanks so much for your inputs. I don't know what I did, but my issue disappeared on its own, it's really strange. I'll report back if I find out why. But thanks for your help!
by Arrivest
25 Apr 2019, 20:05
Forum: Ask For Help
Topic: I set alt+up:: to do something, but it fires on pressing alt+ctrl+up too
Replies: 3
Views: 677

I set alt+up:: to do something, but it fires on pressing alt+ctrl+up too

I did something like this: ; In VSCode, use alt + ↑↓←→ to move cursor fast #IfWinActive ahk_exe Code.exe !Left::Send {left 10} !Right::Send {right 10} !Up::Send {Up 5} !Down::Send {Down 5} #IfWinActive It works as intended, but the problem is when I press ctrl + alt + ↑↓←→ , they fire too, which ren...
by Arrivest
13 Dec 2018, 16:31
Forum: Ask For Help
Topic: Hotstring doesn't trigger when it contains remapped key
Replies: 0
Views: 397

Hotstring doesn't trigger when it contains remapped key

Suppose I remapped my / this way: ; semicolon + k = / `; & k::/ ; restore semicolon `;::; Now, if I want to have the following hotstring: ; never forget adding a space after // :*://:://{space} It won't fire if I use my remapped / , but will fire if I use the native / . Is there a way to make both w...
by Arrivest
02 Nov 2018, 00:02
Forum: Bug Reports
Topic: Weird behavior when hotstring contains remapped keys
Replies: 1
Views: 918

Weird behavior when hotstring contains remapped keys

I have this hotstring: itll::it'll It works as intended. However, sometimes I forget I have it, and I manually type out it'll , then it'd turn into iit'll . At first I didn't know why, but then I found out it's because my ' (apostrophe) was a remapped key. If I use the original ' on the keyboard as ...
by Arrivest
25 Jul 2018, 20:17
Forum: Ask For Help
Topic: Trying to use InputLevel to make hostrings containing remapped keys
Replies: 3
Views: 695

Re: Trying to use InputLevel to make hostrings containing remapped keys

Hi Rohwedder,
Thanks for your answer! Does it work on your computer?
by Arrivest
24 Jul 2018, 21:18
Forum: Ask For Help
Topic: Trying to use InputLevel to make hostrings containing remapped keys
Replies: 3
Views: 695

Trying to use InputLevel to make hostrings containing remapped keys

A simplified example: 1::a 2::b ::ab::hello I want to trigger Line 3 by typing 12, but it will only trigger on typing ab, not on 12. By some googling, I found people saying it could be done by InputLevel , I tried, but not successful. I also found people saying it could be done by separating them in...
by Arrivest
03 Mar 2018, 13:38
Forum: Ask For Help
Topic: Special Unicode character and encoding issue
Replies: 1
Views: 689

Special Unicode character and encoding issue

Suppose I have this hotstring in my script: ::star::★ If I write my script with Sublime Text, and save as UTF-8, the hotstring will output some gabled text like 鈽�. If I then open this script with notepad, and save again, the issue will be fixed. The hotstring will correctly output ★. But if I then ...
by Arrivest
28 Dec 2017, 14:49
Forum: Ask For Help
Topic: Why the order matters here
Replies: 3
Views: 792

Re: Why the order matters here

Thanks for your answer Noesis, is this how it's supposed to work? Is it in the documentation? Thanks!
by Arrivest
27 Dec 2017, 19:29
Forum: Ask For Help
Topic: Why the order matters here
Replies: 3
Views: 792

Why the order matters here

Hi, I have a question, when I did this:

Code: Select all

^=:: Send ^{=}
=::End
It worked as intended. However if I flip the order of these two lines, the ^= stops working and functions as ^{End}. So it seems the order counts, but I didn't find the reference in the help file about such ordering ?
by Arrivest
22 Dec 2017, 18:18
Forum: Ask For Help
Topic: remap a key without remapping modifier+thisKey
Replies: 1
Views: 524

remap a key without remapping modifier+thisKey

Hi, I remapped my "l" key to right arrow: l::Right however I don't want to change the original behavior of ^l #l !l +l etc, so I figured I could do: #InputLevel 1 l::Right #InputLevel 0 ^l::^l #l::#l +l::+l !l::!l ^!l::^!l ^+l::^+l !+l::!+l but this is pretty ugly, so my first question is : Is there...
by Arrivest
12 Dec 2017, 11:26
Forum: Ask For Help
Topic: Toggle off ScrollLock when any key is pressed, except for w,a,s,d or shift
Replies: 0
Views: 405

Toggle off ScrollLock when any key is pressed, except for w,a,s,d or shift

Hi, what is the cleanest way to write "if ScrollLock is on, toggle it off when any key is pressed, except for w,a,s,d or shift"? Thanks very much! Background: I remapped my RAlt to ScrollLock, and want to use w,a,s,d as arrow keys when ScrollLock is on, but want to toggle back when any key is pressed
by Arrivest
11 Dec 2017, 01:56
Forum: Ask For Help
Topic: ^!Backspace::Send ^{Delete}
Replies: 4
Views: 4260

Re: ^!Backspace::Send ^{Delete}

I like the first one! It does the job! Thanks so much!
by Arrivest
11 Dec 2017, 01:38
Forum: Ask For Help
Topic: ^!Backspace::Send ^{Delete}
Replies: 4
Views: 4260

Re: ^!Backspace::Send ^{Delete}

Yes, I edited that, because it was very misleading. In the original OP, I said I did two things:A. !Backspace::Send {Delete} B.^!Backspace::Send ^{Delete} A was very natural, because it's exactly how you press delete on a mac. Originally I thought A was the reason why B triggered Ctrl-Alt-Delete, ho...
by Arrivest
11 Dec 2017, 01:00
Forum: Ask For Help
Topic: ^!Backspace::Send ^{Delete}
Replies: 4
Views: 4260

^!Backspace::Send ^{Delete}

For some personal reason, I need to set this:

Code: Select all

^!Backspace::Send ^{Delete}
However, it doesn't work as intended, because it triggers the Windows Ctrl-Alt-Delete.
The weird thing is I didn't even press Delete, what I pressed was Backspace.
Is there a way to fix it? Thanks very much!!

Go to advanced search