View Full Version : Active app thru LISP
bdining
06-05-2003, 05:33 AM
I have searched the documents and was unable to find the function to verify if WorkManager is running.
Could somebody let me know what function to use to verify if WM is running?
Dieter Kotsch
06-05-2003, 11:14 PM
HI
If your function has to work on a win OS you can use the DDE functions of the OSD Integration Kit. By using the functions you can check, if you can open a DDE-Channel. If you can't open a channel, so you can be sure, in the most situations your Application doesn't work. On the UX Os exists a similar command SD-INTF.
Sincerely
Dieter
fabrizio
06-11-2003, 07:43 AM
Hi. Maybe this can help you:
(defun workamanger-active-p ()
(not (eq (sd-dde-initiate "HP_WORKMANAGER" "GENERAL") :error))
)
I have written this function on the fly, without testing it... anyway it should work. But I am not sure of the dde service name of workmanager.
This function should return t if WorkManager is active and false otherwise.
fabrizio
bdining
06-11-2003, 10:04 AM
fabrizio
This works well.
Thank You
Where would I find a list of servicenames that would be used for this function?
The only thing I found was
SET wm_dde="HP_WORKMANAGER"
in a dv2sd.bat file.
What other topicnames could be used?
Thank You
BDining
Thom Ivancso
06-11-2003, 11:44 AM
Hello Bill,
These are the only other ones I know of.
"PESD" for SolidDesigner
"SD_ACCESS" for SolidDesigner Access
"ME10F" for ME10
Cheers
Thom
fabrizio
06-12-2003, 11:40 PM
For the topic, if I remember well, I have always used "GENERAL" for Me10, SolidDesigner and Workamanager.
Also the following pairs could be useful:
Service=WinWord Topic=System for MSWord
Service=Excel Topic=System for MSExcel
bYeZ
Fabrizio
Sinan
08-08-2003, 07:44 AM
Hi,
DDE only works on Windows platform
You should use
(sd-intf "HP PEWM IL" "WAIT 0") )
to check if yout WM server is UNIX based.
If you simply want to check whether the DataManagement module is set active
Simply use
(if (not (oli::sd-license-free-module-active-p "PEWMSD")) ....
Sinan
http://www.solidgenius.com
vBulletin® v3.8.4, Copyright ©2000-2024, Jelsoft Enterprises Ltd.