Hi.
I have to read from from IBM terminal 3270. When the main menu is open I can send my keys and move the page forward. I mean I can send F6,F7,F2 and other keys to go to the page that I want. Then I am sending shift+F8.
When I am doing that the mouse will focus on a line that I have to write a name on it.
I have to read this from array that first time go and read the first name, then second name and so on. But because I was not successful to do it from array so I just wanted to test and say write this name but again I was not successful.
I would appreciate any help. - Private Sub Save_Record_Click()
-
-
Set ReflectionIBM = CreateObject("ReflectionIBM.Session")
-
AppActivate ("ref.rsf")
-
teamleader = "dfh"
-
-
SendKeys "{F6}"
-
SendKeys "{F7}"
-
SendKeys "{F2}"
-
SendKeys ("+{f8}")
-
-
End Sub
8 4411
Can you give us some idea of what you mean when you say it was "not successful"?
Sorry for not being clear.
it means that i cant read my array
now i did something like this it is working but nit working properly
Dim i As Long
Set ReflectionIBM = CreateObject("ReflectionIBM.Session")
AppActivate ("ref.rsf") 'Activate
MyTeamLeader = Array("DKK", "POI", "NJO", "MNU", "BJU", "DNM", "F7P", "PLM", "JKB", "JEF")
SendKeys "{F6}"
SendKeys "{F7}"
SendKeys "{F2}"
SendKeys ("+{f8}")
i = 0
Do Until i = 9
TL = MyTeamLeader(i)
SendKeys TL
SendKeys ("+{f8}")
i = i + 1
Loop
now it is going one page after but the problem is that it is writing the first two letters of the next team leader in front of first column (each row one letter) and the mouse is also located in 2nd row.
it seems that i do not have control of my screen.
thanks
Perhaps it's a timing issue. 3270 screens usually take a while to finish an operation and unlock the keyboard. Have you tried pausing in the loop, or using the "wait for this to be handled" option on the SendKeys?
By the way, I'd recommend using a For loop here rather than a Do loop.
I can't do sleep or wait, then it will give me an error.
Hi
I was thinking maybe if I can create a macro in my application and then copy the page and write into the text file and then read it from text file may be easier.
I could make a macro and also select the area that I want but now I don't know how I can paste or write it into a text file.
Is there any idea?
Thanks.
It certainly doesn't sound easier.
I think the best approach is to work out what is wrong and fix it, rather than using a much more complex workaround.
i really try every thing but not working
i cant put wait if i work like that so it will jumo to the second line.
and my .session is not working
but if i make the macro inside the application itself the i can do something like this
Sub Macro4()
'
'
'
With Session
.WaitForEvent rcEnterPos, "30", "0", 1, 1
.TransmitTerminalKey rcIBMPf6Key
.WaitForEvent rcKbdEnabled, "30", "0", 1, 1
.WaitForEvent rcEnterPos, "30", "0", 3, 60
.WaitForDisplayString "ID:", "30", 3, 55
.TransmitTerminalKey rcIBMPf7Key
.WaitForEvent rcKbdEnabled, "30", "0", 1, 1
.WaitForEvent rcEnterPos, "30", "0", 1, 1
.TransmitTerminalKey rcIBMPf2Key
.WaitForEvent rcKbdEnabled, "30", "0", 1, 1
.WaitForEvent rcEnterPos, "30", "0", 23, 55
.WaitForDisplayString "TEAM", "30", 23, 50
.TransmitTerminalKey rcIBMPf20Key
.WaitForEvent rcKbdEnabled, "30", "0", 1, 1
.WaitForEvent rcEnterPos, "30", "0", 23, 55
.WaitForDisplayString "TEAM", "30", 23, 50
.TransmitANSI "DDM"
.TransmitTerminalKey rcIBMPf20Key
.SetMousePos 1, 1
.TerminalMouse rcLeftClick, rcMouseRow, rcMouseCol
.GraphicsMouse rcLeftClick, rcCurrentGraphicsCursorX, rcCurrentGraphicsCursorY
.SetSelectionStartPos 1, 2
.WaitForEvent rcKbdEnabled, "30", "0", 1, 1
.WaitForEvent rcEnterPos, "30", "0", 1, 1
.ExtendSelectionRect 20, 80
.SetMousePos 10, 28
.CopySelection
End With
End Sub
but i dontr kn w how to wait in the other format.
thanks alot
Sign in to post your reply or Sign up for a free account.
Similar topics
by: G520 |
last post by:
Hi
I have been getting statistical rapports from a machine via a
telnet server. Until now it has been done manually. However
I want to automate the proccess, and scedule a PHP script to
run...
|
by: Etienne Charland |
last post by:
Hi, there is an application running on a remote desktop (under Citrix ICA,
but the same problem applies for RDC or PC Anywhere). Now, I want to send
keys to the remote application from a local app....
|
by: Greenhorn |
last post by:
Hi,
when i run the output file generated by using cc i get no output on
my terminal.
#include <stdio.h>
main()
{
printf("Testing the printf functionality");
}
|
by: col1blb |
last post by:
I have been writing vb6 and vb.net applications for years that use the
whllapi.dll file and a class that i built to interact with our 3270
emulator (QWS3270 Plus from Jolly Giant software). I got...
|
by: CptDondo |
last post by:
Let me explain my situation:
I have a PHP app that generates web pages on the fly based on some data
it reads from XML files. The pages are served up via a http server and
displayed with a...
|
by: MarkusJNZ |
last post by:
Hi, we have some datafeeds which pull info from external sources.
Unfortunately, we have to use screen scraping as there are no XML
feeds. The data feeds are located in a variety of different...
|
by: sunnyluthra1 |
last post by:
Hi Everyone,
I am working on a piece of code, that displays the properties(Name, Datatype, size & Description) of the table in the database.
Now I want to further Enhance the code.
I Have created...
|
by: Xionbox |
last post by:
Hello everybody,
The error I have seems very easy to solve, but for some odd reason I can't seem to solve it. Anyways, here's my "setup".
I created a server running on localhost:1200 (telnet...
|
by: amar elzaman |
last post by:
peace be upon u friends
i'm working on a project to send sms through pc and gsm modem(mobile)
and every thing is ok, i succeded to send but english sms only,
when i tried to send arabic the...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |