get <text as input> modify <text> and send it

Get help with using AutoHotkey and its commands and hotkeys
Bigjuergo
Posts: 4
Joined: 15 Apr 2018, 12:25

get <text as input> modify <text> and send it

15 Apr 2018, 12:31

hi,

is it possible to get text as input when starting a *.ahk file
the text will be modified inside the script
text modified text should be send as output e.g: send <modified text>

thank you for help!
User avatar
Cuadrix
Posts: 203
Joined: 07 May 2017, 08:26

Re: get <text as input> modify <text> and send it

15 Apr 2018, 13:13

Depends on how you want it to be modified.
If you want to replace the whole string, then you can do this:

Code: Select all

InputBox, Input , Title, Write your text:,, 200, 150
Out := StrReplace(Input, Input, "The text was modified!")
	Send % Out
----
Bigjuergo
Posts: 4
Joined: 15 Apr 2018, 12:25

Re: get <text as input> modify <text> and send it

16 Apr 2018, 03:41

how do i have to start test.ahk script that it gets textinput
test.ahk <text>

in the script:
send <text>

Return to “Ask For Help”

Who is online

Users browsing this forum: No registered users and 111 guests