crt.Dialog.FileOpenDialog ([title, [buttonLabel, [defaultFilename, [filter]]]]) - PullRequest
0 голосов
/ 12 июня 2019

Когда я пытаюсь найти файл, используя crt.Dialog.FileOpenDialog (атрибуты по требованию), окно просмотра не появляется сверху, оно появляется за некоторыми другими окнами.

Я пытался использоватьфокус, но не получил желаемого результата.

CommDecodeFileNameSelected = crt.Dialog.FileOpenDialog("Select csv Filename to upload", "Upload", "", "All Files (*.txt)|*.log||")                
CommDecode_g_objIE.Document.All("filename").value = CommDecodeFileNameSelected

Я ожидаю, что окно просмотра появится сверху.

1 Ответ

0 голосов
/ 13 июня 2019

Перед двумя вышеуказанными строками добавить

CommDecode_g_objIE.Document.All("ButtonHandler").Value = "Nothing Clicked Yet"
CommDecode_g_objIE.Visible = False
CommDecodeFileNameSelected = crt.Dialog.FileOpenDialog("Select csv Filename to upload", "Upload", "", "All Files (*.txt)|*.log||")                
CommDecode_g_objIE.Document.All("filename").value = CommDecodeFileNameSelected
...