In my GUI window I'm trying to on hitting F1 in a case statement with HotKeySet() bring up a word document using a function called Word()..
Am I using this wrong? everytime I try it won't open the file I have tried opening just opens a blank document and it doesn't wait till I hit F1 it just opens when my GUI is run. here is my Word() function...
Func Word()
Local $name = _WordAttach(@ScriptDir & "example.docx", "FileName")
Local $word = _WordDocOpen($name, @ScriptDir & "example.docx" , 1, 1)
return $word
EndFunc