Find selection from Studio in PDF or MS Word

Hi Community, 

I want a script that works this way: I select a text somewhere in Studio (say, a portion of source segment) and press a magic key combination => Focus goes to a PDF or MS Word file already opened in another window and it finds the text I selected in Studio. Is it possible? I tried to google for it but to no avail.

Thanks

Parents Reply
  • Hi

    I am not a great programmer (disclaimer). However, this works for me. It will copy the marked text into Word's search field.

    Daniel

    #IfWinActive ahk_exe SDLTradosStudio.exe

    ^j::
    ClipboardBackup:=ClipboardAll
    Send, ^c
    Sleep, 100
    WinActivate, ahk_exe WINWORD.EXE
    Sleep, 500
    if WinActive("ahk_exe WINWORD.EXE") { ;is Word open and active?
    } else {
    MsgBox, 16, , Oops: Word expected to be active
    Exit
    }
    Send, ^f
    Sleep, 250
    SendRaw, %Clipboard%
    Sleep, 100
    Clipboard:=ClipboardBackup
    return

Children