Code: Select all
Loop{
If WinActive("Sin título: Bloc de notas")
{
Clipboard := "Esto es una prueba"
Send ^v
Send {Enter}
ExitApp
}
}
Moderator: Flipeador
Code: Select all
Loop{
If WinActive("Sin título: Bloc de notas")
{
Clipboard := "Esto es una prueba"
Send ^v
Send {Enter}
ExitApp
}
}
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
loop{
If WinActive("Sin título: Bloc de notas")
{
Clipboard := "Esto es una prueba"
clipwait, 0
Send ^v
Send {Enter}
ExitApp
}
sleep 100
}
Users browsing this forum: No registered users and 44 guests