![]() |
|
|||||||
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sap gui 7.20 | macropus | SAP Manuals | 0 | 12-16-2010 03:42 AM |
| Cannot refresh test box | Pepa | SAP BASIS | 2 | 07-20-2010 11:44 PM |
| How to find information for SAP GUI | Pepa | SAP BASIS | 2 | 06-21-2010 05:29 PM |
| SAP Gui hangs | Golfi | SAP BASIS | 4 | 06-06-2010 03:59 PM |
| Can't refresh test box | Micro | SAP BASIS | 2 | 05-09-2010 04:46 PM |
| Aprenda SAP! |
|
|
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Dear experts, I have a question if it is possible to solve?
I need the script to recognize that there is a dialog box and perform the actions at the time: if, see below: If IsObject(vbApplicationModal) Then session.findById("wnd[1]/tbar[0]/btn[0]").press session.findById("wnd[0]/usr/cntlTREE_CONTAINER_0200/shellcont/shell").pressToolbarButton "SAVE" session.findById("wnd[1]/usr/btn[0]").press Else session.findById("wnd[0]/usr/cntlTREE_CONTAINER_0200/shellcont/shell").pressToolbarButton "SAVE" session.findById("wnd[1]/usr/btn[0]").press End If I tried the following types, but without success: If DialogBox = vbApplicationModal Then If vbApplicationModal Then If vbApplicationModal = show Then If vbApplicationModal = appear Then If dlgAnswer = vbApplicationModal Then If dlgAnswer Then If dlgAnswer = DialogBox Then If 0 Then If 1 Then If DialogBox Then If showMessageBox Then If box Then I await your help. Thank you very much. ERP |
| Sponsors |
|
#2
|
|||
|
|||
|
Hi ERP,
That is possible: Code:
if session.findbyid("wnd[1]").text = "Information / Error" Then ' <- here goes the text of the Dialogbox !
session.findbyid("wnd[1]").sendvKey 0
session.findById("wnd[0]/usr/cntlTREE_CONTAINER_0200/shellcont/shell").pressToolbarButton "SAVE"
session.findById("wnd[1]/usr/btn[0]").press
else
session.findById("wnd[0]/usr/cntlTREE_CONTAINER_0200/shellcont/shell").pressToolbarButton "SAVE"
session.findById("wnd[1]/usr/btn[0]").press
end if
Perhaps you have to check for an Error on runtime via on error resume next and then to close the Dialog... Regards, Lala |
|
#3
|
|||
|
|||
|
Thanks Lala! I'll test the code on the system and keep you informed.
Regards, ERP |
| Entre a los Links relacionados |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|