How to make the following hotstring?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Sqrt-1
Posts: 1
Joined: 07 Feb 2023, 06:37

How to make the following hotstring?

Post by Sqrt-1 » 07 Feb 2023, 06:56

I am trying to make a hotstring, which would replace "#1//#2" with "{}^{\Large{#1}}\!/\!_{\Large{#2}}"; however, I have no idea how it is even possible for Autohotkey to do that, and neither was I able to figure out *how [Mod edit: Removed expletive.]* do you send those curly brackets and special symbols (I tried escpaing, but that didn't work).

this is the current state of my, uh, code, for your amusement, I guess; although it isn't really helpful because it *doesn't work*—

Code: Select all

/frac::{{}{}}`^{{}\Large{{}`#{}}/`!`_{{}\Large{{}`#{}}{}}
Last edited by gregster on 07 Feb 2023, 08:06, edited 1 time in total.
Reason: Please mind your language!

User avatar
mikeyww
Posts: 26596
Joined: 09 Sep 2014, 18:38

Re: How to make the following hotstring?

Post by mikeyww » 09 Feb 2023, 15:54

Welcome to this AutoHotkey forum!

I would back up and see if you can create a simple hotstring first, using AHK v2, the current version of AutoHotkey. See Introduction and simple examples.

After you have a working hotstring, you can modify it. Try the option for text mode.

Avastgard
Posts: 133
Joined: 30 Sep 2016, 21:54

Re: How to make the following hotstring?

Post by Avastgard » 10 Feb 2023, 10:40

I'm not sure I understand your request, but if what you want is to type #1//#2 and have it transform into {}^{\Large{#1}}\!/\!_{\Large{#2}}, then this will work:

Code: Select all

:*:#1//#2::
SendRaw, {}^{\Large{#1}}\!/\!_{\Large{#2}}
return

Post Reply

Return to “Ask for Help (v1)”