Here's the code I've been using, I need this to affect multiple windows, if possible:
Code: Select all
x::
While ("x", "P") {
SendEvent, {c down}
Sleep, 15
SendEvent, {c up}
}
return
Code: Select all
x::
While ("x", "P") {
SendEvent, {c down}
Sleep, 15
SendEvent, {c up}
}
return
Code: Select all
; Opensruby interperter
#IfWinActive
!`:: ; Opensruby interperter, sends common text
Run, %ComSpec% /K "C:\Users\lifeweaver\Desktop\test\ruby\uru 193", %A_Desktop%\blah\blah,,cmd_pid
SetKeyDelay, 0, 10
ControlSend,, {Shift up}{Alt up}, ahk_pid %cmd_pid%
ControlSend,, require 'test'{Enter}, ahk_pid %cmd_pid%
ControlSend,, require 'test1'{Enter}, ahk_pid %cmd_pid%
ControlSend,, include test{Enter}, ahk_pid %cmd_pid%
ControlSend,, include test1{Enter}, ahk_pid %cmd_pid%
return
I'm sorry to hear that, perhaps another, basic example, will help?JakeK0202 wrote:I looked at this a little bit, the problem being, I don't really know how to write a script to do what I want. I don't know how to use controlsend, and after reading about it, I still don't fully understand
Code: Select all
Run, notepad,,, notepad_pid1
Run, notepad,,, notepad_pid2
Sleep 500
SetKeyDelay, 0, 10
ControlSend,, test message to first notepad, ahk_pid %notepad_pid1%
ControlSend,, test message to second notepad, ahk_pid %notepad_pid2%