Page 1 of 3

Function key detection

Posted: Wed Apr 08, 2015 2:00 pm
by rasaro
Can Genie's automatic function key detection coding be changed? It works great for F3=Cancel function key detection for example. But we have hundreds of screens that use "F3 - Cancel" text for example.

Re: Function key detection

Posted: Thu Apr 09, 2015 9:47 am
by Scott Wagers
Rick,

Yes, you can do some custom JavaScript to pick up the specific function key text. If you could zip up a copy of your Genie skin (located at /profoundui/userdata/genie skins/skin_name by default) and capture a screendump of one of the screens containing the "F3 - Cancel" text to send to support@profoundlogic.com I could try and put an example together for you to use.

To get the screendump you can open a screen with the text in Genie and press CTRL + F9, you should receive a prompt to save a file to your PC. Save this and send the file to me.

Re: Function key detection

Posted: Sat Apr 11, 2015 8:56 am
by rasaro
Scott,

Here is the zip file and screen dump.

Thanks.

Re: Function key detection

Posted: Wed May 06, 2015 2:47 pm
by rasaro
Scott, any update on this?

Thanks, Rick

Re: Function key detection

Posted: Wed May 06, 2015 3:20 pm
by Scott Wagers
I'm still working on the possibilities of what other key combinations there could be to determine this works properly. Do you have any other screens you could capture and send that might include something with a 2 digit 'F' key? (For example F12 - Back)

Re: Function key detection

Posted: Thu May 07, 2015 7:54 am
by rasaro
Ok, here are two screens with a lot of functions keys. Thanks.

Re: Function key detection

Posted: Thu May 07, 2015 10:03 am
by Scott Wagers
Thank you for the additional files. I should have something over to you shortly.

Re: Function key detection

Posted: Fri May 08, 2015 8:31 am
by rickflagler
Would this same technique be applicable to screens with text = "CMD - 7" in them? I know a site with S/36 environment screens with mostly no text on screens, Fkeys defined internally which Genie detects, but appears to miss the CMD - 7 on screen. Thanks.

Re: Function key detection

Posted: Fri May 08, 2015 9:47 am
by Scott Wagers
Rick,

It is certainly possible to write a custom script to detect that pattern and have Genie pick it up. Do you know if this is a single field in Genie, or are there other function keys in with the CMD - 7 text? In the other case all of these function keys were being detected as a single field by Genie, which made it very easy to pick up.

Re: Function key detection

Posted: Mon May 11, 2015 1:13 pm
by rickflagler
I'm not sure if all programs at this site work exactly the same. Will have to review more.

In the case I spoke of above, panel contained CMD 7- End on the screen with the standard buttons for: Enter, Page Up, Page Down, Keypad at the bottom. Pressing either the Genie keypad and F7 or F7 key on the keyboard activated the CMD 7 behavior.

A quick look at some other source shows that sometimes, CMD 7- End, Cmd 7 --Cancel, Cmd 7--Do NOT update and CMD 7--End are present. Also, Cmd 9-Delete and a variety of other keys. In all cases, the CF01, CF07 definition exists in the DSPF, so as long as the user can interpret the screen, the program reacts appropriately.

Seems like for applications not to be obsoleted, it would be ideal to remove the CMD 7- End from the screen and place F7=End on a button at the bottom, similar to how standard OS screens appear. If possible, it might be nice to set up generic handling on any occurrence of CMD n- xxxxx or Cmd nn--xxxxx that would handle various screen coding of similar functions? Is that possible? Obviously, I am new to Genie.

New Info - I was able to detect CMD 10, for example, and change to a button, but where can you find the script to modify this to be more generic?