Attachmate Reflections 사용 Standard Suite 2011 R2는 원본 데이터 집합에 Excel을 사용합니다. 내가 자동화하려고하는 터미널은 정보를 제출하기 위해 F9 키가 필요했지만 키를 보내려고하면 "해당 키가 사전에 존재하지 않았습니다"오류가 발생합니다. 터미널 응용 프로그램에 보내려고하는 다른 모든 키가 제대로 작동하는 것처럼 보입니다.Attachmate 리플렉션 VBA 자동화 오류
sub TerminalTest()
Dim app As Attachmate_Reflection_Objects_Framework.ApplicationObject
Dim frame As Attachmate_Reflection_Objects.frame
Set app = GetObject("Reflection Workspace")
Set frame = app.GetObject("Frame")
Set MGlobals.gScreen = frame.SelectedView.Control.Screen
With MGlobals.gScreen
.SendKeys "A"
.SendKeys "123"
.SendKeys "456"
.SendControlKey ControlKeyCode_Return
.SendKeys "780ABC"
.SendControlKey ControlKeyCode_Return
.SendKeys "ZYX"
.SendControlKey ControlKeyCode_Return
.SendKeys "TEST"
.SendControlKey ControlKeyCode_Return
.SendControlKey ControlKeyCode_F9
End with
End sub
반사 API 문서는 기능 키에 대한 ControlKeyCode_F9를 사용하는 방법을 보여줍니다하지만 코드가 오류를 던지고 때문에 나는 손실의 비트에있어 : 아래는 코드입니다.
도움이 필요합니다.