Some issues with dc_isapprunning()
the documentation shows an example:
IF DC_IsAppRunning('XbpDialog',,'MYAPP.EXE',.t.)
RETURN .f.
ENDIF
but, this will not run... the second parameter (title) must be used.
if the title doesn't match EXACTLY, it never gets to this code further down in the function:
if !Upper( cTitle ) $ Upper( cWinTitle ) .and. !Upper( cFile ) $ Upper( cWinFile )
Return( .f. )
End
This function now requires an exact match in the title..
a partial match in the title, or using the filename would be a major improvement...
We were hoping to display the appsize in the titlebar after the app name..
dc_isapprunning()
dc_isapprunning()
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Re: dc_isapprunning()
If you look at the source code for DC_IsAppRunning() it makes several calls to Windows API functions.
I have not yet found a better way to do this.
I have not yet found a better way to do this.
The eXpress train is coming - and it has more cars.
Re: dc_isapprunning()
the code i included in my response was from the source....rdonnay wrote:If you look at the source code for DC_IsAppRunning() it makes several calls to Windows API functions.
I have not yet found a better way to do this.
Maybe jimmy will jump in on this one...
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Re: dc_isapprunning()
you can try this : WildFindWindow.zipbwolfsohn wrote:Maybe jimmy will jump in on this one...
- Attachments
-
- WildFindWindow.zip
- need ot4xb
- (2.25 KiB) Downloaded 875 times
greetings by OHR
Jimmy
Jimmy
Re: dc_isapprunning()
does it help ?
other Solution : get Array of Tasklist and scan for your Application Note : c:\exp19\Source\Dclipx\_dcfunct.prg does have same DLL Function !
other Solution : get Array of Tasklist and scan for your Application Note : c:\exp19\Source\Dclipx\_dcfunct.prg does have same DLL Function !
greetings by OHR
Jimmy
Jimmy
-
- Posts: 42
- Joined: Mon Dec 23, 2013 2:10 pm
- Contact:
Re: dc_isapprunning()
Hi,
I use this function and it works very well:
IsApprunning (Namexe, Title, lRestore)
you have the choice between a single parameter (exe Name or Title) or both.
Attached is a text file containing the source, you can adapt it to therefore replace DC_Isaprunning Function
Best regards,
Messaoud Mohamed Lazhar
I use this function and it works very well:
IsApprunning (Namexe, Title, lRestore)
you have the choice between a single parameter (exe Name or Title) or both.
Attached is a text file containing the source, you can adapt it to therefore replace DC_Isaprunning Function
Best regards,
Messaoud Mohamed Lazhar
- Attachments
-
- isaprun.zip
- (1.64 KiB) Downloaded 800 times