<:I720,0,0,0><:#568,9360>Message("WideOpen uninstalled-- The next time Ami Pro is started, WideOpen will not be used.")
<:I720,0,0,0><:#284,9360>StatusBarMsg("")
<:#284,9360>END FUNCTION
<:#293,9360><+!>
<:#293,9360><+!>
<:#293,9360><+!>FUNCTION InstallWideOpenMenus()
<:I720,0,0,0><:#284,9360>menu="&File"
<:I720,0,0,0><:#284,9360>mac="wideopen.smm"
<:I720,0,0,0><:#284,9360>StatusBarMsg("Installing WideOpen for Ami Pro")
<:I720,0,0,0><:#568,9360>changemenuaction(1, menu, "&Open... Ctrl+O", "{mac}!WideOpen", "Open an existing document using WideOpen (shift to disable)")
<:I720,0,0,0><:#568,9360>changemenuaction(1, menu, "&Open... ^O", "{mac}!WideOpen", "Open an existing document using WideOpen (shift to disable)")
<:I720,0,0,0><:#568,9360>changemenuaction(1, menu, "&Save Ctrl+S", "{mac}!WideSave", "Save document using WideOpen (shift to disable).")
<:I720,0,0,0><:#568,9360>changemenuaction(1, menu, "&Save ^S", "{mac}!WideSave", "Save document using WideOpen (shift to disable).")
<:I720,0,0,0><:#568,9360>changemenuaction(1, menu, "Save &As...", "{mac}!WideSaveAs", "Save document under a new name using WideOpen (shift to disable).")
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360>IF id = 0
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#568,9360> Message("Could not communicate with WideOpen. Please start WIDEN.EXE manually or deinstall WideOpen.")
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> EXIT FUNCTION
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#568,9360>DDEExecute(id, "open -filter 'Ami Pro|*.sam|Ami Pro Macro|*.smm|Rich Text Format|*.rtf|Windows Write|*.wri|Word for Windows 6.0|*.doc|All files|*.*|'")
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> format = 1
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> if Right$(FileName, 3) = "SAM" then
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> format = 1
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> elseif Right$(FileName, 3) = "DOC" then
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> FileType = "Word for Windows 6.0"
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> format = 16
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> elseif Right$(FileName, 3) = "TXT" then
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> FileOpen(FileName, format, FileType)
<:I720,0,0,0><:#284,9360>if name="" then name = GetDocInfo$(1) endif
<:I720,0,0,0><:#284,9360>dir = GetDocInfo$(2)
<:I720,0,0,0><:#852,9360>DDEExecute(id, "save -filter 'Ami Pro|*.sam|Ami Pro Macro|*.smm|ASCII|*.txt|Rich Text Format|*.rtf|Windows Write|*.wri|Word for Windows 6.0|*.doc|All files|*.*|' -file '{name}' -dir '{dir}' ")
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> if FileName = "::Default::" then
<:I720,0,0,0><:R><:#284,9360> SaveAs
<:I720,0,0,0><:#284,9360>elseif FileName <<<;> "" then
<:I720,0,0,0><:#284,9360>' Now choose the filetype and format for the open
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> If Right$(FileName, 3) = "SAM" then
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> format = 1
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> elseif Right$(FileName, 3) = "DOC" then
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> FileType = "Word for Windows 6.0"
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> format = 16
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> elseif Right$(FileName, 3) = "TXT" then
<:I540,0,0,0><:R1,12,1,1170,1,1440,1,2160,1,2880,1,3600,1,4320,1,5040,1,5760,1,6480,1,7200,1,7920,1,8640,><:#284,9360> FileOpen(FileName, format, FileType)