I would like for someone to try and help me with a script. It would help me a lot for my classes.
I will be using to programs. Notepad and Aegisub subtitle editor
I want to have a script that will automatically send a PASTE command, in Aegisub subtitle editor after it detects I have copied text from notepad.
Thanks to anyone that can help. I am sorry to bother anyone for scripts, I just am no good at creating more than grade school level scripts without spending hours.
Copy & Paste Between 2 APPS
Re: Copy & Paste Between 2 APPS
Code: Select all
f3::
clip_Save := ClipboardAll
Clipboard := "" ; empty
WinActivate, ahk_exe notepad++.exe
Send ^c ; copy selection
ClipWait
WinActivate, ahk_exe aegisub32.exe
send ^v ; paste
sleep 200 ; wait for the paste to be over
Clipboard := clip_Save
return
Re: Copy & Paste Between 2 APPS
Try:
Code: Select all
#Persistent
OnClipboardChange:
if (A_EventInfo = 1) && WinActive("ahk_exe notepad++.exe") {
ControlSend, ahk_parent, ^v, ahk_exe aegisub32.exe
}
return
Re: Copy & Paste Between 2 APPS
This script doesn't work consistently. It will send my clipboard to aegisub32.exe once, and then seemingly stops working after that...
Is anyone able to make this script work every time the clipboard is changed, not just from notepad++.exe?
I am using the mouse to copy lines of text.
Is anyone able to make this script work every time the clipboard is changed, not just from notepad++.exe?
I am using the mouse to copy lines of text.
Re: Copy & Paste Between 2 APPS
Just remove && WinActive("ahk_exe notepad++.exe")thebib622 wrote:Is anyone able to make this script work every time the clipboard is changed, not just from notepad++.exe?
Who is online
Users browsing this forum: filipemb and 157 guests