Jump to content

Recommended Posts

Posted

Sorry if this is posted in the wrong spot but usually when I dont know where to post it I post in general...

 

I've been learning AHK for some time now and I constantly edit ridiculously large send commands. To easily be able to open up my AHK file and without having to scroll a few miles to the right and locate what i'm looking for. I've been trying to get splitting a long line into a series of shorter ones to work and it does but every time I start a new line with a comma in ahk it literally sends the comma. I've also tried and, && in the beginning but same thing happens. Any help would be greatly appreciated!

 

 

For example

 

::unc::In relation to the work order you submitted about the account that needed to be created. 
,{Enter}I was able to create the account with no issues. Here are the credentials {Enter} 
,{Enter}Name: {Enter}Username: {Enter}Password: {Enter} 
,{Enter}If you have any more issues,please feel free to let us know. 
,{Enter} {Enter}Thank you,

 

but what comes out is below with commas I don't want in bold red.

 

In relation to the work order you submitted about the account that needed to be created. ,

I was able to create the account with no issues. Here are the credentials

,

Name:

Username:

Password:

,

If you have any more issues,please feel free to let us know. ,

 

Thank you,

Posted

New line in ahk can be done with `n , no need for {enter}. Try this for readability in the ahk file..

::UNC::

SentInput, replacement line 1 `n

SentInput, replacement line 2

Return

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...