Help with Up and Down arrow keys Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Tim_H
Posts: 16
Joined: 05 Aug 2021, 19:43

Help with Up and Down arrow keys

05 Aug 2021, 20:02

Hi,

I want to create shortcuts for decreasing font size in Microsoft OneNote.

Font size can be decreased manually by performing the following actions:
press "alt" + type "r" + type "te" + hit "down arrow" + hit "up arrow" + hit "enter"

So I tried to translate this to the following code:

Code: Select all

#ifWinActive ahk_exe OneNote.exe
^+>::Send, !rte {Down} {Up} {Enter}
...But it doesn't work. :d


The first part works: up until

Code: Select all

!rte
But the arrows and hitting enter don't...


In case you didn't notice: I'm a complete newbie to AutoHotKey and to coding in general.

Any help would be appreciated!
User avatar
boiler
Posts: 16932
Joined: 21 Dec 2014, 02:44

Re: Help with Up and Down arrow keys  Topic is solved

05 Aug 2021, 20:52

I don't have OneNote, so I can't test it, but one problem may be that you are sending spaces in between several of the keys. Should be like this so that you don't send spaces between them:

Code: Select all

^+>::Send, !rte{Down}{Up}{Enter}
Tim_H
Posts: 16
Joined: 05 Aug 2021, 19:43

Re: Help with Up and Down arrow keys

06 Aug 2021, 20:03

Hell yeah! It works!!!! :)

Thank you so much, @boiler!!

I have been dreaming of creating this shortcut for years.
And now I got it! :)

You made my day...

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: doodles333 and 324 guests