Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
664 views
in Technique[技术] by (71.8m points)

c# - How to move/drag a GUITree node to another sibiling node in SAP

In SAP GUI application I need to automate the dragging of a node in GuiTree and dropping onto another node.

The type of element is shown as below:

(GuiShell (122) - SubType: Tree)
session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[0]/shell/shellcont[1]/shell[1]").selectNode "   3".

Is there any way to drag?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can't. Choose another software to automate this kind of user action. Search the Web for a list of tools. You will need the coordinates of GuiTree nodes in number of pixels, that you may retrieve with the methods GetNodeTop, GetNodeLeft, etc.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...