Joy Conner
15th July 2003, 16:07
I have an application in production that runs in GUI mode and my users are not happy using the mouse and the tab key. So, I'm playing with the ascii interface and I have a problem.

Currently the program uses a scanner to read the production order number, the user MUST key the number of pieces and press the tab key. Then the program executes a vb script that reads weight data through the serial port where a scale attached.

I am using commands such as app_start() and app_status(). The return value from app_start is a positive number so I believe this is appropriate. But when the command app_status() is executed, the program hangs in debug mode. I cannot tell that the program is running using my task manager.

Can someone enlighten me? Are these commands not appropriate in ascii mode?

mark_h
15th July 2003, 16:33
Well the app_start would require a connection to the client, which I do not think exists when running in ASCII mode. I have only played with ASCII mode, but I do not think app_start & app_status would work.

Mark

bamnsour
15th July 2003, 16:42
app_start will get your ASCII session to hang. You should remove every mention of this function if you want to use ASCII interfaces.

This is also true if you want to run this session in cron.


- Bader

OmeLuuk
16th July 2003, 10:26
Joy Conner: ...But when the command app_status() is executed, the program hangs in debug mode. I cannot tell that the program is running using my task manager.Try to open a ttstpshell (in ASCI mode - Reflection for instance - press F6 - choose "start process"; in BW open the option dialog - press button "Start Shell"). Then you can request the process list within the bshell with "ps". You be resume debugsessions with "debug #" where # is the PID of the debug process. Kill a running process with "kill #" or close all processes with "killall". If you want to know if your processes are still running (getting processor ticks), you can issue the command "ps" a number of times. Compare the processor ticks of each process between runs.

rupertb
16th July 2003, 11:25
Hi Joy - there is only so much that you can do to accomodate users... if you change to ascii they'll have to user the enter key to 'tab' between fields and yes they'll loose the mouse but the bottom line is that your program would still require key-strokes... rather tell your users that jobs are scarce and people are many!

Regards,
Rupert

OmeLuuk
16th July 2003, 13:30
rupertb: ... rather tell your users that jobs are scarce and people are many!used to be the other way around though when these users where hired in the first place...