Sending texts from the EditBox separated by a + sign

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
CarPiotr
Posts: 40
Joined: 11 Dec 2019, 08:21

Sending texts from the EditBox separated by a + sign

Post by CarPiotr » 28 Nov 2022, 07:34

Hello !
I can't cope and I'm asking for help.
gui code snippet

Code: Select all

Gui,2: Add, Edit, hWndhEdtValue x10 y490 w190 h25 vSetpat  +Center -VScroll
At the moment, I enter the text into the EditBox and press the send button:
SendRaw, set:pat 'arb"%Setpat%"'
I would like to send more queries separating the text with a + sign, e.g.:
white+red+black+......
How many characters + how many queries sent

The sent text would have to come out in the form:
set:pat 'arb"white"+arb"red"+arb"black"+....'

thanks for any help

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

Re: Sending texts from the EditBox separated by a + sign

Post by mikeyww » 28 Nov 2022, 07:51

Code: Select all

Gui, +AlwaysOnTop
Gui, Font, s10
Gui, Add, Edit  , w330 vsetpat Center
Gui, Add, Button, wp   Default, Go
Gosub, F3
F3::
GuiControl,, setpat
Gui, Show, x900 y300, Pat (F3 = show again)
Return

ButtonGo:
Gui, Submit
SendInput % "{Text}" (text ? "`b+" : text := "pat '") "arb""" setpat """'"
Gosub, F3
Return

GuiEscape:
GuiClose:
text =
Gui, Hide
Return

Post Reply

Return to “Ask for Help (v1)”