Send Text List

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Atamo
Posts: 17
Joined: 20 Oct 2018, 00:33

Send Text List

19 Nov 2018, 09:32

Hi everyone, I'm here. I'm Atamo, I live in Chile and I have a small query, I'm doing a script but I can not find a way to send text from a list, I mean

I have a text list and I want that every time I start again the script write the word that followed the first one.

!a::
Run, Chrome.exe.
Send, Hi, ho, hu, he
Return

first sequence, command Hi
then Ho

I do not want me to send everything together hi, ho, hu, he

I am new and I have been reading the tutorial, but I still can not find what I am looking for, if someone could help me I would thank you eternally. regards


once pressed the button and says Hi, I press again says Ho, I press again and says hu
garry
Posts: 3770
Joined: 22 Dec 2013, 12:50

Re: Send Text List

19 Nov 2018, 15:47

examples , quit script with ESC
see script from user Flipeador :
https://autohotkey.com/boards/viewtopic ... 40&t=59145

Code: Select all

#warn
#SingleInstance Force
setworkingdir,%a_scriptdir%
;SetKeyDelay,20,25

i=0
pr=notepad.exe
sc=ahk_exe notepad.exe
IfWinNotExist,%sc%
 {
 Run, %pr%,,,pid2
 WinWait,%sc%
 }
IfWinNotActive ,%sc%,,WinActivate,%sc%
    WinWaitActive,%sc%
txt=
(Ltrim join`r`n
Line1  aaa
Line2  bbb
Line3  ccccccc
Line4  dd
)
stringsplit,k,txt,`n
           total:=k0
return
esc::exitapp

$!a::
i++
if (i>total)
return         ;- si más de total no hacen nada
d:= % k%i%
;controlsendraw,,%d%,ahk_pid %pid2%
sendinput, % "{raw}" . d
return

Code: Select all

i=0
txt:="https://www.youtube.com/watch?v=EFSZnC3-E4A;http://www.metoc.navy.mil/jtwc/jtwc.html;https://www.timeanddate.com/worldclock/chile/santiago;https://ast.wikipedia.org/wiki/Mar%C3%ADa_Dolores_Pradera"
stringsplit,c,txt,`;
return
esc::exitapp
 
$!a::
i++
if (i>4)
return       
d:= % C%i%
run,%d%
return
;=============== END test script  =====================
Atamo
Posts: 17
Joined: 20 Oct 2018, 00:33

Re: Send Text List

20 Nov 2018, 22:07

ty for the script i will test :D

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, inseption86, jaka1, LuckyJoe, Rohwedder and 325 guests