First of all need to say sorry for my english. But hopefully most of you can understand my question:
I wrote a script to save a file when i press in menu "Save" i get window of library where i want to save, but when i press cancel window disappears and i get message box about do i want to save "Yes" or "No". When i press "Yes" afterwards then script detects button "Yes" and save file without getting window and to get a choose where i want to save it or name the file. Can someone tell me how to solve this problem?
I need to get it when i press "yes" again to get window up to select name and folder where i want to save the file.
Code: Select all
FileSelectFile, OutputVar, S
Msgbox 0x4,, Do you want save?
IfMsgBox Yes, {
Splitpath, OutputVar, , , ext
(ext = "")
OutputVar .= ".doc"
MsgBox % OutputVar
FileAppend, , %OutputVar%
return
}
IfMsgBox No, {
MsgBox, Document was not saved
}
return