Chinacat55
Technical User
I'm still learning how to write these macros so I appreciate any suggestions.
Can anyone tell me how to insert a "tab" function into data I have collected from an Attachmate session. In the example below, I would like to insert a "tab" between AccountNumber and SSN so that when I use paste,
the AccountNumber will paste in one field, tab to the next field, and paste the SSN.
'Copies the Account number from the screen
Set MyArea1 = MyScreen.Area(5,21,5,25 , ,)
Sess0.Screen.WaitHostQuiet(g_HostSettleTime)
MyArea1.Select
MyArea1.Copy
AccountNumber = MyArea1
'Copies the SSN from the screen
Sess0.Screen.WaitHostQuiet(g_HostSettleTime)
Set MyArea2 = MyScreen.Area(6,21,6,31 , ,)
Sess0.Screen.WaitHostQuiet(g_HostSettleTime)
MyArea2.Select
Sess0.Screen.copyappend
SSN = MyArea2
I have written a macro that collects 5 pieces of data from different parts of the screen. I now want to paste this data using the paste tool in another application. When I paste, only the first field is populating. I figure if I can add a "tab" to each piece of info I've gathered, I would be able to paste the info in all the fields on the other application.
Thanks for any suugestions.
Can anyone tell me how to insert a "tab" function into data I have collected from an Attachmate session. In the example below, I would like to insert a "tab" between AccountNumber and SSN so that when I use paste,
the AccountNumber will paste in one field, tab to the next field, and paste the SSN.
'Copies the Account number from the screen
Set MyArea1 = MyScreen.Area(5,21,5,25 , ,)
Sess0.Screen.WaitHostQuiet(g_HostSettleTime)
MyArea1.Select
MyArea1.Copy
AccountNumber = MyArea1
'Copies the SSN from the screen
Sess0.Screen.WaitHostQuiet(g_HostSettleTime)
Set MyArea2 = MyScreen.Area(6,21,6,31 , ,)
Sess0.Screen.WaitHostQuiet(g_HostSettleTime)
MyArea2.Select
Sess0.Screen.copyappend
SSN = MyArea2
I have written a macro that collects 5 pieces of data from different parts of the screen. I now want to paste this data using the paste tool in another application. When I paste, only the first field is populating. I figure if I can add a "tab" to each piece of info I've gathered, I would be able to paste the info in all the fields on the other application.
Thanks for any suugestions.