HP Forums

Full Version: User define key + auto ENTER
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I want to create a user define key to run a program call ENG().
The key define program is :
KEY K_Mul()
BEGIN
RETURN "ENG(Ans)";
END;

This program work fine. "ENG(Ans)" is on the entry line when press the user define key.
Then I need to press ENTER to run it.
My question is: Is it possible to run the ENG() automatically. I mean no need to press ENTER.
Similar to C language: printf("This is a test /n") .

Thanks!
(10-26-2015 03:36 PM)cclinus Wrote: [ -> ]Hello,

I want to create a user define key to run a program call ENG().
The key define program is :
KEY K_Mul()
BEGIN
RETURN "ENG(Ans)";
END;

This program work fine. "ENG(Ans)" is on the entry line when press the user define key.
Then I need to press ENTER to run it.
My question is: Is it possible to run the ENG() automatically. I mean no need to press ENTER.
Similar to C language: printf("This is a test /n") .

Thanks!

Hello
Code:

KEY K_Mul()
BEGIN
 ENG(Ans);
END;
should work.
Hi,

Thanks for your suggestion.
But it is just partially successful.
The result of ENG() is came out right after pressing the key.
But, it is placed on the entry line. I still need to press Enter to complete the process.

Here is the ENG program:
EXPORT ENG(X)
BEGIN
STRING(X,4,6);
END;

THANKS!
Ive asked this question before.
The deal is you want to "press enter" from a program.
Seems like it cant be done.

I have the problem with user defined keys as well.

If i override a key, how do i execute the default function of that key?

It seems that we cant do any if this.

In my case i would like to invoke default menus from
a program. No luck.

It seems like the applications we can create with ppl are not as privileged as the built in ones.

Maybe in a future release we might get such privilages.
Yes, user keys are definitely in need of updating to enhance capability. Basically, what is in there right now is NOT what we wanted to do with them. However, if we didn't put something in then the feature probably never could have been added or improved later on...
I guess a new rule should be:

"What you can do with your finger(button) should be doable from a program"

not

"just what you touch is what you get"
Reference URL's