Skip to main content
Hi Can anybody give an example script to copy a string from one location and paste it in another location. For example i need to copy a date 091714 from rumba position 3,18 and paste to position 5,18. Also please tell me how to add "wait for screen" in script. i tried a script but few datas not getting pasted in excel because it runs so fast. what i request is if we send a key F10 script should wait until the result comes. these doubts are silly i think but your help is so much appritiated sice im unable to find the information anywhere else.thank you

#Rumba
Hi Can anybody give an example script to copy a string from one location and paste it in another location. For example i need to copy a date 091714 from rumba position 3,18 and paste to position 5,18. Also please tell me how to add "wait for screen" in script. i tried a script but few datas not getting pasted in excel because it runs so fast. what i request is if we send a key F10 script should wait until the result comes. these doubts are silly i think but your help is so much appritiated sice im unable to find the information anywhere else.thank you

#Rumba

Sub Main

Emulation "TN5250"

dim buff as string

rem copy 10 characters from row 2, col 70 into buff

emreadscreen buff,10,2,70

set cursor position (optional)

SetCursor 21,30

rem paste the contents of buff

EMSendKey buff

Stop

End Sub

I find Rumba wait for keyboard input anyway, I have no problem with typing too fast... (unlike Client Access)


Hi Can anybody give an example script to copy a string from one location and paste it in another location. For example i need to copy a date 091714 from rumba position 3,18 and paste to position 5,18. Also please tell me how to add "wait for screen" in script. i tried a script but few datas not getting pasted in excel because it runs so fast. what i request is if we send a key F10 script should wait until the result comes. these doubts are silly i think but your help is so much appritiated sice im unable to find the information anywhere else.thank you

#Rumba

sorry should be EMSetCursor

should not have edited it after testing :-)


Hi Can anybody give an example script to copy a string from one location and paste it in another location. For example i need to copy a date 091714 from rumba position 3,18 and paste to position 5,18. Also please tell me how to add "wait for screen" in script. i tried a script but few datas not getting pasted in excel because it runs so fast. what i request is if we send a key F10 script should wait until the result comes. these doubts are silly i think but your help is so much appritiated sice im unable to find the information anywhere else.thank you

#Rumba

thank you so much Adrian it worked!


Hi Can anybody give an example script to copy a string from one location and paste it in another location. For example i need to copy a date 091714 from rumba position 3,18 and paste to position 5,18. Also please tell me how to add "wait for screen" in script. i tried a script but few datas not getting pasted in excel because it runs so fast. what i request is if we send a key F10 script should wait until the result comes. these doubts are silly i think but your help is so much appritiated sice im unable to find the information anywhere else.thank you

#Rumba

yes i added this. your script is perfectly working. thanks alot :)