Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
kthomp24 Absent Member.
Absent Member.
1255 views

Independent Windows/Programs

We are attempting to use at "hot-key" statement in the cobol config file to allow a user to press a specific key (ctrl-q) from any where in the application to start a help screen.  The use of the 'hot-key' to start the program is working perfectly except for one thing....we would like this program to be independent of the current application running.  We would like the user to be able to have both screens up and be able to work in either, then be able to close the help screen when done.  The 'hot-key' statement we use to kick off the help screen is "KEYSTROKE HOT-KEY=[program name]  ^Q".

Does anyone have advice on how this can be accomplished?

0 Likes
3 Replies
Micro Focus Expert
Micro Focus Expert

RE: Independent Windows/Programs

You could use threads so that the hot-key program runs independently

0 Likes
kthomp24 Absent Member.
Absent Member.

RE: Independent Windows/Programs

I guess my question would be how do you call a program with a Hot-Key that is in a unique thread?

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: Independent Windows/Programs

How about the hot-key program, let's call it helpme does a call in thread "help". help being your Help program. So the hotkey launches a program who's sole purpose is the launch your help program.Or you could have the helpme program do a system call where you call a separate runtime to launch help.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.