VBS for Macro (Green Screen)

Joined
Sep 27, 2007
Messages
1
Reaction score
0
Hi,



I would like to link an excel worksheet with AS-400 screen in the manner the series of item codes could be called from a excel worksheet and the value appearing on green screen at specific location could be copied and pasted it back on same excel worksheet. Below please find the macro for selection of data which is needed to be copied and pasted on excel.



I will be highly grateful for you assistance and support.

Regards

[PCOMM SCRIPT HEADER]
LANGUAGE=VBSCRIPT
DESCRIPTION=
[PCOMM SCRIPT SOURCE]
OPTION EXPLICIT
autECLSession.SetConnectionByName(ThisSessionName)
REM This line calls the macro subroutine
subSub1_
sub subSub1_()
autECLSession.autECLOIA.WaitForAppAvailable
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "
"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "
"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "
"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "
"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "
"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "[down]"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "[down]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
autECLMacro "[mark right]"
end sub​
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top