Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

How to make autohotkey enter a string


  • Please log in to reply
3 replies to this topic
Macce
  • Guests
  • Last active:
  • Joined: --
Hi!

Sorry for this newbie question, but I don't know what to search for really. I want to specify a string in a variable and then have AHK to type each character as I would have pressed the keyboard (no paste).

I could do a bunch of "IF's", but is there any easier way?

Macce
  • Guests
  • Last active:
  • Joined: --
Ok, I guess the only way is to extract a sub-string of one char at the time and do "IF ch = 'a' " and so on..

If anyone has a better way, please let me know!

Hm, would it be possible to use ascii-codes maybe?

Macce
  • Guests
  • Last active:
  • Joined: --
Stumbled upon the "Send" and "SendRaw" command when browsing the help.

That does exactly what I want. Sorry for taking your time!

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
Rather than trying to learn just by looking through the commands, you can save a lot of time by reading the Quick-start Tutorial