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
Send Text List
Re: Send Text List
examples , quit script with ESC
see script from user Flipeador :
https://autohotkey.com/boards/viewtopic ... 40&t=59145
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 =====================
Re: Send Text List
ty for the script i will test
Who is online
Users browsing this forum: Chunjee, inseption86, jaka1, LuckyJoe, Rohwedder and 325 guests