Search found 17 matches

by HighArn
10 Aug 2023, 10:59
Forum: Ask for Help (v1)
Topic: One-shot (sticky) keys
Replies: 11
Views: 1032

Re: One-shot (sticky) keys

I'm really sorry, my english is not very good. I will try to write better. So I'm stopped to use Notepad as my code editor, download a VsCode with debugger, and things go a little better. So now this is my version of code, that works but have few bugs, that I can't fix. #InstallKeybdHook ih := Input...
by HighArn
09 Aug 2023, 13:32
Forum: Ask for Help (v1)
Topic: One-shot (sticky) keys
Replies: 11
Views: 1032

Re: One-shot (sticky) keys

So i follow the script line by line to understand what it does, and mostly I understand what it does but I stuck with some syntax misunderstanding. For example: 1) Switch section in this code for now doing that Alt key is an exception, so when Alt pressed the section after with if statement, loop an...
by HighArn
09 Aug 2023, 10:48
Forum: Ask for Help (v1)
Topic: One-shot (sticky) keys
Replies: 11
Views: 1032

Re: One-shot (sticky) keys

thanks for advice! If i understand you I dont need to write different code, but just add something in switch block? Like something:

Case "SC01E": ; Remapped LAlt
SoundBeep 1200 ; Customize this action for the remapped key

or it need to be different code, just based on this idea?
by HighArn
09 Aug 2023, 07:18
Forum: Ask for Help (v1)
Topic: One-shot (sticky) keys
Replies: 11
Views: 1032

Re: One-shot (sticky) keys

Thanks, it works! How can i change this code if i want it to work only with remapped modifiers? So actually my left and right alt remapped to change keyboard layers like this: LAlt:: last := layer, layer := 3 KeyWait, LAlt layer := A_Priorkey != "LAlt" ? last : last = 2 ? 1 : 2 Return RAlt:: last :=...
by HighArn
08 Aug 2023, 18:21
Forum: Ask for Help (v1)
Topic: One-shot (sticky) keys
Replies: 11
Views: 1032

One-shot (sticky) keys

Hi, unexpectedly cant find an autohotkey implementation of this problem. So what actually One-shot (sticky) keys are When you hold one of the modifiers Alt, Control, Shift, Command they work as usual, but when you tap it once they stick, so actually they stay pressed down, and wait for any other key...
by HighArn
08 Jun 2023, 10:41
Forum: Ask for Help (v1)
Topic: Two letters key combo
Replies: 4
Views: 423

Re: Two letters key combo

#Requires AutoHotkey v1.1.33 ~k:: KeyWait l, DT.1 If !ErrorLevel Send `b`b`b Return This help me to find that solution $k:: KeyWait l, DT.1 If !ErrorLevel Send {Backspace} else send {k} Return $l:: KeyWait k, DT.1 If ErrorLevel send {l} Return Works almost perfect for me, with sending only one back...
by HighArn
08 Jun 2023, 08:47
Forum: Ask for Help (v1)
Topic: Two letters key combo
Replies: 4
Views: 423

Re: Two letters key combo

With custom combinations, the keys are sent upon the release. #Requires AutoHotkey v1.1.33 k::k l::l k & l::Send `b Thanks, this works better than others that I found. But problem that k send only after release, and something with timings, sometimes l is typed with backspace together. It is possibl...
by HighArn
07 Jun 2023, 13:04
Forum: Ask for Help (v1)
Topic: Two letters key combo
Replies: 4
Views: 423

Two letters key combo

Hi, stuck with this. I just need that when I press K and L at one time the backspace would be pressed. K and L must act normally when pressed separately. I found a few solution that doesn't work well. ~k & l:: Send {Backspace} return This for example sends k with backspace, adding second backspace i...
by HighArn
05 May 2022, 13:42
Forum: Ask for Help (v1)
Topic: stuck with keyboard layers
Replies: 12
Views: 1076

Re: stuck with keyboard layers

Asking for help again. Now i'm stucked with two problems. First I want to LAlt + Space always bring me to layer 1. What i tried; LAlt & Space:: layer := 1 return but this work when I holding this hotkey, after I release LAlt it switches layer again. Second I tried to hotkey that switch to layer 6 if...
by HighArn
02 May 2022, 15:59
Forum: Ask for Help (v1)
Topic: stuck with keyboard layers
Replies: 12
Views: 1076

Re: stuck with keyboard layers

Thanks again, you saved a day like always. I only add layer := 1 after SetCapsLockState, On
because for some reason without this after pressing space and some key, script hit hotkeys from layer 3 that mapped to that key. But now is work like i wished.
by HighArn
02 May 2022, 14:09
Forum: Ask for Help (v1)
Topic: stuck with keyboard layers
Replies: 12
Views: 1076

Re: stuck with keyboard layers

Thanks that works a lot better for me! Maybe to not create new topic, i can ask another question? Why this code isn't working? #If (layer = 3) Space:: CapsLock Input, OutputVar, L1 #if (ErrorLevel = "Max") Send, {CapsLock} The idea is, turn capslock with space, but after pressing any button turn it ...
by HighArn
30 Apr 2022, 17:36
Forum: Ask for Help (v1)
Topic: stuck with keyboard layers
Replies: 12
Views: 1076

Re: stuck with keyboard layers

My bad that I explained it not very clever. What we have now: 1) LAlt press and held - delay for layer 3(even if timeout short, delay still exist) 2) LAlt pressed and quicky released - instant level 2 My goal is: 1) LAlt press and held instant layer 3 (It's kinda worked like that with "#If GetKeySta...
by HighArn
30 Apr 2022, 15:23
Forum: Ask for Help (v1)
Topic: stuck with keyboard layers
Replies: 12
Views: 1076

Re: stuck with keyboard layers

Thanks! Sorry for many questions, but maybe you or someone else can help help with another. In yours code when LAlt pressed and held it goes through level 2 and then after short time lands on layer 3. Even if change timer digits to lowest it's still a little delay if i want go to level 3. Can it be ...
by HighArn
30 Apr 2022, 14:24
Forum: Ask for Help (v1)
Topic: stuck with keyboard layers
Replies: 12
Views: 1076

Re: stuck with keyboard layers

layer = 1 ; Auto-execute section LAlt:: KeyWait, LAlt, T.4 If ErrorLevel { ; Held last := layer, layer := 3 SoundBeep, 1900 ToolTip, Layer = %layer% KeyWait, LAlt layer := last } Else layer := 3 - layer ToolTip, Layer = %layer% SoundBeep, 700 + 300 * layer Return #If (layer = 1) F3::Send 1 #If (lay...
by HighArn
30 Apr 2022, 12:58
Forum: Ask for Help (v1)
Topic: stuck with keyboard layers
Replies: 12
Views: 1076

stuck with keyboard layers

Hi i'm pretty new in scripting. Just want to do keyboard more convenient. So what i need is 3 layers in keyboard, layer1, layer2 that activates when i press once LAlt, and it must go back to layer1 when i press Lalt again, and layer3 that activates when i press and HOLD LAlt, and it must go back whe...
by HighArn
20 Oct 2021, 10:58
Forum: Ask for Help (v1)
Topic: Simple script lagging
Replies: 3
Views: 814

Re: Simple script lagging

mikeyww wrote:
20 Oct 2021, 10:07
Could try instead:

Code: Select all

*Space::Send {Shift down}
*Space Up::Send % (A_PriorKey = "Space" ? " " : "") "{Shift up}"
Same. Did it work for you normally? Maybe issue with my computer, is pretty old with intel 2500k, but all other scripts work just fine. But thank you for replying!
by HighArn
20 Oct 2021, 08:37
Forum: Ask for Help (v1)
Topic: Simple script lagging
Replies: 3
Views: 814

Simple script lagging

Hi i'm new here. Just hanging around and trying some scripts. All of them works fine but this little script that add to Space botton Shift function when it pressed -lagging. So problem with it that when i'm typing, letters sometimes appearing with latency, and typing is uncomfortable. I tried turnin...

Go to advanced search