Skip to main content

EMReadScreen

  • June 11, 2015
  • 2 replies
  • 4 views

Dominique Sacre
Forum|alt.badge.img+2

Hello!

Have an issue. I need to read three fields in Rumba 6.0. I have the following:

EMReadScreen Buf1, 12, 10, 7 -->> This line grabs account 111-111111-1
EMReadScreen Buf2, 12, 11, 7 -->> This line grabs account 222-222222-2
EMReadScreen Buf3, 12, 12, 7 -->> This line grabs account 333-333333-3

After this I have the macro paste (to isolate) an account followed by an enter statement:

EMSendKey "3333333333"
EMSendKey "<ENTER>"

And then rerun the EMReadScreen statements above again.

The result is baffling:

Buf1=333-333333-3
Buf2=222-222222-2
Buf3=333-333333-3

When in reality it should be:

Buf1=333-333333-3
Buf2=
Buf3=

Can you please help?


#Rumba

2 replies

André Escudero

Hello!

Have an issue. I need to read three fields in Rumba 6.0. I have the following:

EMReadScreen Buf1, 12, 10, 7 -->> This line grabs account 111-111111-1
EMReadScreen Buf2, 12, 11, 7 -->> This line grabs account 222-222222-2
EMReadScreen Buf3, 12, 12, 7 -->> This line grabs account 333-333333-3

After this I have the macro paste (to isolate) an account followed by an enter statement:

EMSendKey "3333333333"
EMSendKey "<ENTER>"

And then rerun the EMReadScreen statements above again.

The result is baffling:

Buf1=333-333333-3
Buf2=222-222222-2
Buf3=333-333333-3

When in reality it should be:

Buf1=333-333333-3
Buf2=
Buf3=

Can you please help?


#Rumba

Hi,

Can you double check the version number and the product name.. Is it Rumba or Web-to-Host ?

Please provide an example for reproduction

When posting a non-working script, please do so in the smallest amount of stand-alone code possible. If the code you post cannot run by itself on another person's computer, they will not be able to recreate the issue.

thank you.


Dominique Sacre
Forum|alt.badge.img+2

Hello!

Have an issue. I need to read three fields in Rumba 6.0. I have the following:

EMReadScreen Buf1, 12, 10, 7 -->> This line grabs account 111-111111-1
EMReadScreen Buf2, 12, 11, 7 -->> This line grabs account 222-222222-2
EMReadScreen Buf3, 12, 12, 7 -->> This line grabs account 333-333333-3

After this I have the macro paste (to isolate) an account followed by an enter statement:

EMSendKey "3333333333"
EMSendKey "<ENTER>"

And then rerun the EMReadScreen statements above again.

The result is baffling:

Buf1=333-333333-3
Buf2=222-222222-2
Buf3=333-333333-3

When in reality it should be:

Buf1=333-333333-3
Buf2=
Buf3=

Can you please help?


#Rumba

It's Rumba Desktop

Version 8.1.0 SPO Patch0

Code:

Sub Main

Dim Buf1 as String

Dim Buf2 as String

Dim Buf3 as String

Dim Auf1 as String

Dim Auf2 as String

Dim Auf3 as String

EMSendKey "DIVD"

EMSendKey "<ENTER>"

EMSendKey "AS"

EMSendKey  "454718107"

EMSetCursor 21, 41

EMSendKey "06012015"

EMSendKey "<ENTER>"

EMSetCursor 5, 4

EMSendKey "PF"

EMSendKey "<ENTER>"

EMReadScreen Buf1, 12, 10, 7

EMReadScreen Buf2, 12, 11, 7

EMReadScreen Buf3, 12, 12, 7

msgbox Buf1

msgbox Buf2

msgbox Buf3

Buf1=""

Buf2=""

Buf3=""

EMSetCursor 23, 13

EMSendKey "9690005521"

EMSendKey "<ENTER>"

EMReadScreen Auf1, 1, 10, 77

EMSendKey "<ENTER>"

EMReadScreen Auf2, 12, 11, 7

EMReadScreen Auf3, 12, 12, 7

msgbox Auf1

msgbox Auf2

msgbox Auf3

Buf1=""

Buf2=""

Buf3=""

End Sub