Hi, just bumped into the following problem:
Code: Select all
!v::
Clipboard := ;Clear clipboard
Clipboard := MyFunc() ;MyFunc() returns "hello world", write this string to clipboard
SendInput, ^v ;Paste clipboard contents (should paste "hello world")
Return
MyFunc()
{
Clipboard := "hello world" ;Put "hello world" in Clipboard
MyVar := ClipboardAll ;Write Clipboard to MyVar. MyVar now contains "hello world"
Return MyVar ;Return MyVar i.e. function returns "hello world"
}