This is an FYI regarding the function sys_send_keys().
I just finished a project where I was using xbasic to send key strokes to a Hyper Terminal communication session window. Using an xbasic script, a number of procedures were completed, then xbasic opened Hyper Terminal, a number of commands where sent and the Hyper Terminal window was then closed. Xbasic would then process all the information.
During the Hyper Terminal session, a password was needed to be entered. It�s my belief that the function, sys_send_keys() will retain the case of the letter when it sends the key stroke.
However, my script would randomly fail for no apparent reason. Once failed, the computer would need a re-boot to correct the problem. The issue was masked as I was dealing with a password entry which would be displayed as asterisks. Luckily, I had other scripting which I could observe in the Hyper Terminal window. I noticed that the case of the letters being sent to the window was upper case when everything worked correctly and lower case when the script would fail. Initially, the password was upper case.
I then changed the password to lower case thinking that this would solve my problem. Unfortunately, this did not. Fortunately, I was able to make the password numeric. To date, the script has not failed.
I have no idea if the problem is the sys_send_keys() function or the Hyper Terminal session. I just thought that someone may need to know about this oddity.
I just finished a project where I was using xbasic to send key strokes to a Hyper Terminal communication session window. Using an xbasic script, a number of procedures were completed, then xbasic opened Hyper Terminal, a number of commands where sent and the Hyper Terminal window was then closed. Xbasic would then process all the information.
During the Hyper Terminal session, a password was needed to be entered. It�s my belief that the function, sys_send_keys() will retain the case of the letter when it sends the key stroke.
However, my script would randomly fail for no apparent reason. Once failed, the computer would need a re-boot to correct the problem. The issue was masked as I was dealing with a password entry which would be displayed as asterisks. Luckily, I had other scripting which I could observe in the Hyper Terminal window. I noticed that the case of the letters being sent to the window was upper case when everything worked correctly and lower case when the script would fail. Initially, the password was upper case.
I then changed the password to lower case thinking that this would solve my problem. Unfortunately, this did not. Fortunately, I was able to make the password numeric. To date, the script has not failed.
I have no idea if the problem is the sys_send_keys() function or the Hyper Terminal session. I just thought that someone may need to know about this oddity.