pastes text bypassing the clipboard, into notepad, just fine.
but im trying to pass text into the console in Valheim, a Unity game, and i tried these:
Code: Select all
s=Blocking 44
Control, EditPaste,% "resetskill " RegExReplace(s, "^(\w*).*", "$1"),,Valheim ahk_class UnityWndClass
Control, EditPaste,% "resetskill " RegExReplace(s, "^(\w*).*", "$1"),,Valheim
Control, EditPaste,% "resetskill " RegExReplace(s, "^(\w*).*", "$1"),,ahk_class UnityWndClass
send,{enter}
I then tried
Code: Select all
clipboard:="resetskill " RegExReplace(s, "^(\w*).*", "$1")
send,^v{enter}
CONTROL, EDITPASTE, text,,Wintitle&Class stuff so it works with Valheim console window?
EDIT: I've also tried
Code: Select all
winActivate, Valheim ahk_class UnityWndClass
WinGetActiveTitle, ValheimTitle
Control, EditPaste,% "TESTING!",,%ValheimTitle%
send,{enter}
and still no luck. I really want to start relying on the speed of {Control, EditPaste,,,} but it is such a pain to get working and nearly never works for the applications i need it to. Please some one help?
---Still trying Edit:-----
Code: Select all
winActivate, Valheim ahk_class UnityWndClass
WinGetActiveTitle, ValheimTitle
WinGet,ValheimID,ID
Control, EditPaste,% "TEST!",,ahk_id %ValheimID%
send,{enter}
Other then Send which types it out slowly, is there no way to get EditPaste to output the text in? Is bloaty busy MS Clipboard the ONLY way?