Couple questions
It does both.
For instance, when I run it here it comes up with 166 items.
*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************
—–Original Message—–
From: omnisdev-en [mailto:omnisdev-en-bounces@lists.omnis-dev.com] On Behalf Of Alan Schmidt
Sent: Monday, September 25, 2017 2:25 PM
To: OmnisDev List – English <omnisdev-en@lists.omnis-dev.com>
Subject: Re: Couple questions
I’m not a “Windows guy” so this isn’t familiar to me- but looks like it reads through open app windows?
Can it find services running w/o open windows? In my case I’m trying to determine if the ODB is running or not.
Also, I haven’t rec’d the lib yet… odd.
-Alan
On 9/25/17, 10:57 AM, “omnisdev-en on behalf of Michael Mantkowski” <omnisdev-en-bounces@lists.omnis-dev.com on behalf of michaelj@clientrax.com> wrote:
Try this… The A and W are dependent on what version of Omnis you are running. A for Non-Unicode, W for Unicode.
Register DLL (‘user32′,’GetWindow’,’IJJ’)
Call DLL (‘user32’,con(‘FindWindow’,pick(inU,’A’,’W’)),”#NULL#”,0,0) Returns %hwnd
Begin reversible block
Set current list fvAppList
End reversible block
Define list {cvHandle,fvWindName,fvClassName}
While %hwnd
Call DLL (‘user32′,’GetWindow’,%hwnd,2) Returns handle ;; 2=GW_HWNDNEXT
Call DLL (‘user32′,’GetWindowTextW’,Handle,windName,255) Returns %textlen
Call DLL (‘user32′,’GetClassNameW’,Handle,className,255) Returns %err
If %textlen>0
Add line to list
End If
Calculate %hwnd as cvHandle
End While
Quit method
*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************
—–Original Message—–
From: omnisdev-en [mailto:omnisdev-en-bounces@lists.omnis-dev.com] On Behalf Of Alan Schmidt
Sent: Monday, September 25, 2017 1:40 PM
To: OmnisDev List – English <omnisdev-en@lists.omnis-dev.com>
Subject: Re: Couple questions
Hi Michael,
I haven’t rec’d the lib yet but I’ll thank you in advance!
I don’t suppose it also has an example of how to test if a service is running?
-Alan
On 9/25/17, 10:22 AM, “omnisdev-en on behalf of Michael Mantkowski” <omnisdev-en-bounces@lists.omnis-dev.com on behalf of michaelj@clientrax.com> wrote:
In case anyone is curious, I sent Alan my OpsLocks library off list that shows how to read and write Windows Registry Entries.
*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************
—–Original Message—–
From: omnisdev-en [mailto:omnisdev-en-bounces@lists.omnis-dev.com] On Behalf Of Alan Schmidt
Sent: Monday, September 25, 2017 12:51 PM
To: OmnisDev List – English <omnisdev-en@lists.omnis-dev.com>
Subject: Couple questions
1) How can Studio read/write registry entries?
2) And because I’m certain my question has been asked before, where is the current list archive?
Thank you,
-Alan
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com