SAP for Retail Discussions
Join conversations about personalization, omnichannel strategies, and operational excellence in retail using SAP for Retail software.
cancel
Showing results for 
Search instead for 
Did you mean: 

POS Xpress 9.5 & Send Keys

Former Member
0 Kudos

I have a deployment of POS Xpress 9.5 that I am attempting to get a simple script to automate the running of a manager code operational for. However the software does not respond to SendKeys "" as such. It does attempt a keystroke in place of enter. However I've not found a method of determining what it is registering, as other programs on the same machine accept the enter keystroke normally. I'm hoping someone here has some experience with this, and can point ,e at the correct way to get this running. Thank you for taking the time to read my question.

1 ACCEPTED SOLUTION

ray_seetaram
Explorer
0 Kudos

Hi Ben,

I am not very familiar with scripting using SendKeys, but I have seen the usage of Windows ScriptIt in the past that may assist you with what you are trying to achieve.

Ray

View solution in original post

5 REPLIES 5

ray_seetaram
Explorer
0 Kudos

Hi Ben,

You can try to define a macro on the POS using Manager Code 30 to learn the macro and Manager Code 32 to execute the macro. The newly created Macro ID can then be mapped to a menu button or to a key on the POS keyboard. The only problem is that this will need to be manually triggered.

With regards to the SendKeys function not registering, you can ensure that the POS application is in focus when your script is running by doing an Alt+Tab to ensure that the POS is truly in focus.

Hope that this helps,

Ray

0 Kudos

Ray,

Thanks for the feedback I appreciate it. I am using the appactivate method before each set of keystrokes to ensure the application is in focus, so that isn't the source of the problem. I also get a Press enter after cashier number message, which is how I know something is being registered in place of enter. So far as the macros go, I'm trying to eliminate user interaction, so although useful for other applications such as peripheral setup, not really applicable for what I am gunning for.

ray_seetaram
Explorer
0 Kudos

Hi Ben,

I am not very familiar with scripting using SendKeys, but I have seen the usage of Windows ScriptIt in the past that may assist you with what you are trying to achieve.

Ray

0 Kudos

Scripit is no longer available from Microsoft. It has been replaced by the VB scripting I was attempting. However I found an open source version called autoit, that may have promise depending on how it handles keyboard emulation. I'll let you know if it works.

Former Member
0 Kudos

AutoIt worked perfectly with POS Xpress. Thank you for the insight that lead me down this route.