#include #include ;$sFile="C:\Users\Analytics\Documents\Repository\myfile.twbx" ;_WinAPI_ShellExecute($sFile, '', '', 'open') _DebugSetup("Check", 4, "C:\Analytics\test.txt", True) ; start displaying debug environment ;Local $hand = WinWaitActive("appname", 20) _DebugOut("Open") ;WinActivate("appname") ; interact with Tableau ;Send("{F5}") Sleep(3000) ;Send("^!S") _DebugOut("Save") ;WinClose($hand) _DebugOut("Close")