HP Forums
User define key + auto ENTER - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: User define key + auto ENTER (/thread-5013.html)



User define key + auto ENTER - cclinus - 10-26-2015 03:36 PM

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!


RE: User define key + auto ENTER - Tyann - 10-26-2015 06:12 PM

(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.


RE: User define key + auto ENTER - cclinus - 10-27-2015 01:48 PM

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!


RE: User define key + auto ENTER - ji3m - 10-29-2015 03:28 PM

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.


RE: User define key + auto ENTER - Tim Wessman - 10-29-2015 03:32 PM

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...


RE: User define key + auto ENTER - ji3m - 10-29-2015 03:49 PM

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"