Menu
  • HOME
  • TAGS

Why are dead keys not working with some letters in AutoHotkey?

Tag: keyboard-shortcuts,autohotkey,globalization,keyboard-hook,dead-key

In an AutoHotkey script, why do dead keys not work with some letters? As an example, when running AutoHotkey with the following script:

#InstallKeybdHook
EndKeys = {LControl}{RControl}{LAlt}{RAlt}{LShift}{RShift}{LWin}{RWin}{AppsKey}{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}{Left}{Right}{Up}{Down}{Home}{End}{PgUp}{PgDn}{Del}{Ins}{BS}{Capslock}{Numlock}{PrintScreen}{Pause}

<^>!`::
Input, SingleKey, L1, EndKeys
IfInString,SingleKey,a
Send,{U+00E0} ;à
IfInString,SingleKey,e
Send,{U+00E8} ;è
return
return

then pressing the combination of Alt-Gr & Grave, followed by an 'a', i get à, OK, but Alt-Gr & Grave, followed by an 'e' does NOT produce è.

The issue is not related to grave (`), the same thing happens with any other dead keys (like circumflex, acute, macron etc.)

In my particular case, the letters not working are: e y s d k n. Could it have something to do with the keyboard layout? (I am using a UK English). Any ways of approaching the issue to ensure the dead keys will work?

Thank you!

Best How To :

In my particular case, the letters not working are: e y s d k n

Try reorganizing these letters. I find this very hillarious indeed. Please insert any expression of laughter yourself, for it would not be welcomed on stackoverflow if I did.

You forgot to include your %'s. It should be

Input, SingleKey, L1, %EndKeys%

Otherwise, only e, n, d, k, y, s will be recognized as EndKeys

AHK key combination issue

autohotkey,transliteration

You could either try to build up something yourself using Input. Or, more comfortably, use Polythene's dynamic regEx-Hotstring library: #persistent #include hotstrings.ahk hotstrings("s([^h])", "c%$1%") ; s followed by any non-h-character return :*:h::x :*:sh::? ...

Goto method of class shortcut

java,eclipse,eclipse-plugin,keyboard-shortcuts

Eclipse jdt doesn't have it yet, but I believe an open method dialog similar to the open type dialog is in the works.. Please create a bug at bugs.eclipse.org if one doesn't exist describing what you would want in such a dialog.

How to have Autohotkey 'listen' for a change to a file?

autohotkey

Check out WatchDirectory() Just make sure you're running the latest version of AHK. To get it up and running, first download these three scripts and save them to your /lib folder. WatchDirectory.ahk _Struct.ahk sizeof.ahk After that, simply point to to wherever you want to look, provide a callback function and...

Surrounding text with a method call

php,templates,keyboard-shortcuts,phpstorm

You can create and use Live Template that will do what you want (surround current selection with predefined template): separate template for each method call. http://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program -- the last section "Creating Surround Templates" is what you need in particular....

How to resize and alternatively shift+resize?

autohotkey

Just Me on the Autohotkey forum solved this perfectly: #NoEnv #SingleInstance Force SetBatchLines, -1 ; important !!! AppTitle := "ShiftResize" MinSize := False MarginX := 4 Gui, +Hwnd%AppTitle% +Resize Gui, Margin, %MarginX% Gui, Add, Edit, vEdit1 HwndhEdit1 w100, Gui, Add, Edit, vEdit2 HwndhEdit2 w100 x+4, Gui, Show, , %AppTitle% Return...

is it possible to combine pixelsearch and pixelgetcolor

autohotkey

You are missing a very essential part of programming in all non-lowlevel-programming languages: Braces. (In AutoIt, I think you don't use braces but if and endif / wends etc. instead which is basically the same It is important to understand that the compiler in AutoHotkey does not care about the...

Visual Studio new MVC View shortcut

asp.net-mvc,visual-studio-2013,keyboard-shortcuts

None out the box but if you go to Tools->Options->Environment->Keyboard and search for add.view you can create your own keyboard shortcut.

Autohotkey - ControlClick inside window

autohotkey

too much to comment on, I'll make it an answer instead: a::Left s::Down d::Right w::Up Loop{ ... Key remappings (s::Down) bring a return with them implicitly. Same way as a hotkey like s::msgbox, hi is only the short form for s:: msgbox, hi return , key remappings are only a...

Why does this operation break when turned into a function (AutoHotKey/AHK)

function,com,macros,ms-office,autohotkey

You're calling return before the function can finish. This causes the script to stop processing that function and return to the caller. ReplaceAndLink(FindText, ReplaceWith) { ; Word Constants vbTrue := -1 wdReplaceNone := 0 wdFindContinue := 1 return <---------- HERE try oWord := ComObjActive("Word.Application") catch return Try removing that and...

run command in autohotkeys n number of time

windows,scripting,autohotkey

::t:: input, count, I T5, {Enter} if count is Integer { loop, %count% send test } return After pressing t, Tab, this will give you 5 seconds to type any number (accept it by pressing Enter, remove digits by pressing Backspace) and immediately send test as much times. See also:...

How to wrap currently selected text in ``

autohotkey

Your approach is pretty good already. Try this: $`:: clp_tmp := ClipboardAll send ^c currently_selected := Clipboard stringReplace, currently_selected, currently_selected, `r,, All Clipboard := clp_tmp sendraw ``%A_Space% sendraw %currently_selected% sendraw ``%A_Space% return $ is needed because otherwise, sendraw `` would re-trigger this hotkey. The built-in variable clipboard / clipboardAll contains...

AutoHotkey script triggered by Shift + g + AppsKey

autohotkey

You're trying to make a three-key combination, which isn't supported by this short syntax. Making such a hotkey requires an additional if-statement. You need to choose two keys that will enter the function, let's say Apps+g, and then use GetKeyState for the third key. So, the solution is as follows:...

Sublime 3 toggle comment command doesn't work in Windows

keyboard-shortcuts,sublimetext3,preferences

I solved my problem: [ { "keys": ["ctrl+keypad_divide"], "command": "toggle_comment", "args": { "block": false } }, { "keys": ["ctrl+shift+keypad_divide"], "command": "toggle_comment", "args": { "block": true } }, ] Just replace '/' by 'keypad_divide'...

Eclipse: quickly create method template from definition in interface

eclipse,keyboard-shortcuts

I have used Eclipse for years and years, and I feel fairly confident to say that the feature you are searching for is not supported. So, unless you want to write your own plugin, I will supply the way I usually (quite quickly if you don't have tons of implementations)...

Keyboard shortcut for 'new blank activity' in Android Studio

android-studio,keyboard-shortcuts

You can assign a shortcut to any action you want. Go to File > Settings > Keymap and search for Blank Activity. Now right click the item and select Add Keyboard Shortcut....

SHIFT+7 = ALT - bizarre behaviour [on hold]

excel,keyboard-shortcuts

This is by design, the / acts like Alt. (Thay say it has something to do with Lotus compatibility.) You can go to the Options, Advanced, find Lotus compatibility, and turn off this feature....

How to remove button border style?

button,styles,autohotkey

JoeDF has a nice example, but I didn't want to add such a big library (it does waaay more than I needed. So, I just used a picture control. gui, add, picture h16 w16 vMyButton gMyProcedure, icon0, mydll And then I wrote up a teeny library called Mousey that will...

hotkeys does not work when send is in loop

autohotkey

It's because your loop is blocking any other execution. Unless that loop is the only thing in your script, you generally want to avoid using loops and use timers instead. Timers don't block further execution but act more like their own thread. Here's an example using a timer: slashTimerActive :=...

AutoHotkey's for the arrow keys

autohotkey

Hello and welcome to AutoHotkey, you might want to have a look at the basic introduction to the heart of AHK, Hotkeys: https://www.autohotkey.com/docs/Hotkeys.htm Configuring hotkeys which do nothing but send another key is fairly simple. For example, alt + spacebar for the up key could be translated into !Space:: send...

Using to letter activation of autohotkey

autohotkey

"to" = two? ctrl+n+o+i opens chrome #if getKeyState("n") & getKeyState("o") ^i::run chrome.exe #if ...

Auothotkey: Remove string, placement string in subject box

internet-explorer,autohotkey

Instead of: LSN := pTable.rows[9].GetElementsByTagName("TD")[1].outerHTML Try: LSN := pTable.rows[9].GetElementsByTagName("TD")[1].innerText Here's an explanation. If that doesn't work you can try StringReplace: StringReplace, LSN, LSN, <TD>,, ALL As far as your code that is not sending your text to the End of you document try ControlFocus, ControlClick, and Sleep ;Set focus on...

Want AutoIt3 HotKeySet to Emulate AutoHotKey Application Filtering

autohotkey,autoit

In case the GUI you are trying to control is your own GUI: If you want hotkeys that are not system wide, you should use GUISetAccelerators ( accelerators [, winhandle] ) GUISetAccelerators Sets the accelerator table to be used in a GUI window. Parameters accelerators A 2 dimensional array holding...

How can others connect on my AHKsocket winsock server? External IP?

connection,ip,autohotkey,tcp-ip,winsock2

Did you forward the appropriate ports in your router/firewall? The IP should be correct. This was the solution, I did something wrong in my router...

Autohotkey get user domain variable

variables,dns,autohotkey,var

Found using google in less than a min.. http://www.autohotkey.com/board/topic/77940-detect-current-windows-domain/...

Alt shortcuts in Java?

java,keyboard-shortcuts

You have to pragrammatically set this shortcut for each button. For example: enterButton = new JButton("Enter"); enterButton.setMnemonic(KeyEvent.VK_ENTER); // Shortcut: Alt + Enter ...

How do I change Alt+Enter keyboard shortcut in IntelliJ/Android Studio?

intellij-idea,android-studio,keyboard-shortcuts

You find it in the Keymap settings under Other->Show Intention Actions ...

In TOAD, is there a way to comment out arbitrary blocks of code (i.e not whole lines)?

keyboard-shortcuts,toad

Not exactly, but you can get there by a lesser known feature. The Search and Replace macro. In the Editor hit Ctrl+R to get to the replace dialog. On the toolbar click the right-most button to get to the macro editor. Copy the entire contents, below, and paste into that...

AUTOHOTKEY: RegExMatch() a series of numbers and letters

regex,match,autohotkey

You had to many ( ) This is the correct implementation: test := RegExMatch("1234AB123","[0-9]{4,4}([A-Z]{2})[0-9]{1,3}") Edit: So what I noticed is you want this pattern to match, but you aren't really telling it much. Here's what I was able to come up with that matches what you asked for, it's probably...

Replace a middle string in .bat file using AutoHotKey without deleting file

autohotkey

Fileappend will always append to the end of a file. Why do you want to prevent a temporary deletion of your batch file? Typically, in ahk, you'd do it like this.. batFile = C:\standalone.bat output := "" Loop, read, %batFile% { Line = %A_LoopReadLine% IfInString, Line, Xmx1426M { StringReplace, Line,...

How to assign Control + . as a shortcut key?

c#,keyboard-shortcuts

Keys.Decimal on the US layout and Keys.OemPeriod on the German layout are what you're looking for.

Jump into interface in Eclipse by shortcut

eclipse,keyboard-shortcuts

Goto to "Window" -> "Preferences" -> "General" -> "Keys There search for "Open Super Implementation" and create a key binding for that. ...

Which is better for MFC application hot key or Accelerator?

c++,windows,visual-c++,mfc,keyboard-shortcuts

Hotkeys added via RegisterHotKey (or its equivalent in MFC) are definitely system global and you should not use them to trigger functions in your program unless you specifically want the user to be able to trigger them from anywhere. (e.g. your application might be a screenshot app, and so triggering...

AutoHotKey code to receive ctrl+x while pressing ctrl+c twice

autohotkey

Assuming we are talking about Ctrl+C, not V, and assuming you want to keep the original Ctrl+C function but also use it for Ctrl+X when pressing twice in a short time: #persistent Transform, cC, Chr, 3 ; store the value of ctrlC into cC. hotkey, $^c, ctrlC, ON ; this...

How to detect shift + right arrow + some other key in angular

javascript,angularjs,keyboard-shortcuts,keyboard-events,keyup

As said in the comment. Your code works actually well . Using chrome on macOS, when i press "SHIFT + P + RIGHT ARROW" and release the keys i see both messages.

click specific area inside pixelsearch?

autohotkey

You could simply alter the click coordinates, couldn't you? PixelSearch, X, Y, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, 0x00FF00, 0, fast if(ErrorLevel=0) { newX := X + 50 newY := Y + 50 MouseClick, left, %newX%, %newY% } Another suggestion: use ImageSearch instead of PixelSearch...

AutoHotKey Internet Explorer Object Retreive Span tag Text

html,internet-explorer,autohotkey

planID := wb.document.getElementsByClassname("textOnMed")[0].innerText ...

rename or re-alias builtin vim command to make completion unambiguous

vim,keyboard-shortcuts

Sorry, there is no way to delete or rename a built in Vim command. Vim won't even let us create all lowercase commands. We have to resort to tricks like cabbrev to create "aliases". The best advice is to come up with a different name or maybe a nicer alias.

How to concatenate a number and a textstring in auto hotkey

autohotkey

You used NewText += % ColorNumber thisChar + is used for adding up numbers. But the operator for concatenating strings is . in AutoHotkey. Note that this all varies from language to language. So it should be: NewText .= ColorNumber . thisChar which is the same as NewText := NewText...

XCode Formatting

xcode,formatting,keyboard-shortcuts

Is there a short cut or some quick way for Xcode to format this code Yes. Use the Editor->Structure->Re-indent command (the default keyboard equivalent is control-I). If you don't have anything selected, I think it just indents the line with the insertion point. If you select multiple lines and...

Loop Error in AutoHotkey [closed]

autohotkey

Assuming you want to start it by Ctrl+P, you simply have to put the loop inside the hotkey execution body: ^p:: loop { Send, {Space} Sleep, 50 } return Note: It's good programming style to end your hotkeys with return, but please know that this return will never be reached!...

Shortcuts key replacemento with AutoHotkey

autohotkey

You don't need the { } around the hotkey body. Hotkeys simply start with :: and end with return. Braces are only needed in functions afaik. send {LControl down}{tab}{LControl up} could be expressed easier by send ^{tab} which is Ctrl+Tab. The tab-switch in VS also works with right RCtrl. In...

comment lines with syntax error

eclipse,syntax-error,keyboard-shortcuts

There is no one short cut to do what you require, but you could use a combination. Windows Short Cuts Go to the next error: Ctrl + . Go to the previous error: Ctrl + , Then Comment that error: Ctrl + / Extra If you really wanted you could...

AutoHotKey: How to disable a Skype hotkey and make your keyboard behave normally

autohotkey,skype

Please note that this #IfWinActive, ... !^r:: #If is no valid deactivation of a hotkey: attach the return keyword, so it is !^r::return. Otherwise, after pressing alt ctrl r, any code further down below will also be executed. Also, if you only want to remap the AltGr hotkey, you should...

Autohotkey ClipboardAll in function does not work

copy,clipboard,autohotkey,paste

Seems that AutoHotkey's arrays cannot store the contents of clipboardAll. Someone should report this... Instead, if you use pseudo arrays, it'll work. So you can either go for this global clips0,clips1,clips2,clips3,clips4 ; ... copy(index){ Send ^c clips%index% := ClipboardAll } paste(index){ Clipboard := clips%index% Send ^v } ^q:: copy(0) !q::...

AutoHotKey macro scripting to open Outlook and create appointment

macros,autohotkey

It is not particularly robust or elegant but the code below works well on my machine. Have outlook running open to inbox without other outlook windows present for testing. Pressing 'window + u' will first look for an approximate window match (you can also use ahk_class) and send keystrokes to...

Autohotkey F4 script does not work on Excel 2013

excel,autohotkey,excel-2013

I've figured out a way here, thanks for the comments. By using the $ operator, we can then use the Send method, which forces the active application to override its default keys and receive the corresponding keystroke. Here's the workaround $#4:: #IfWinActive ahk_class XLMAIN Send {F4} return #IfWinActive ...

Switching between windows

internet-explorer,autohotkey

Fix It! Adding sleep, 2000 before WinActivate, ahk_class IEFrame save the world...

Autohotkey: copy paste

email,outlook,autohotkey,copy-paste

(REFERRING TO YOUR INITIAL QUESTION) Note: You don't need to empty the clipboard before refilling it. Simply append the ; to each result and store it in a global variable. Once you want to release the variable's contents, press Win+V. all_mails := "Run, mailto: " #x:: ; store e-mail ;Copy...

Keyboard Keys to Paste Text with AutoHotKey

text,keyboard,autohotkey,paste

You can do this just fine with AHK. Use a continuation section (check out Method #2) section and SendInput. myText = (LTrim Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend ultrices metus, a auctor tellus vulputate eu. Praesent sed quam vitae tortor venenatis tempor. Duis a pretium eros....

Autohotkey and Cisco Jabber - Click to call

clipboard,autohotkey

Give this a shot: ~$^D:: Send {ctrl down}{c down}{ctrl up}{c up} ClipWait, clipboard = %clipboard% StringReplace, tel, clipboard, %A_SPACE%, , All tel := RegExReplace(tel, "\(.*\)", "") Run, tel:%tel% Return ...