Post Reply 
User define key + auto ENTER
10-26-2015, 03:36 PM
Post: #1
User define key + auto ENTER
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!
Find all posts by this user
Quote this message in a reply
10-26-2015, 06:12 PM
Post: #2
RE: User define key + auto ENTER
(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.

Sorry for my english
Find all posts by this user
Quote this message in a reply
10-27-2015, 01:48 PM
Post: #3
RE: User define key + auto ENTER
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!
Find all posts by this user
Quote this message in a reply
10-29-2015, 03:28 PM (This post was last modified: 10-29-2015 03:29 PM by ji3m.)
Post: #4
RE: User define key + auto ENTER
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.

I work with android Prime only for now on my
Galaxy Tab Pro/Note 2
Find all posts by this user
Quote this message in a reply
10-29-2015, 03:32 PM
Post: #5
RE: User define key + auto ENTER
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...

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
10-29-2015, 03:49 PM
Post: #6
RE: User define key + auto ENTER
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"

I work with android Prime only for now on my
Galaxy Tab Pro/Note 2
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)