Re: [U2] Monitoring Program: Can This Be Done?

2013-06-27 Thread Michael Pflugfelder
I was going to recommend AHK as well, but Tony beat me to it.  We use AHK here 
for automating logins to customers.  It basically interacts with your desktop 
based on your script.  

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Tony Gravagno
Sent: Wednesday, June 26, 2013 6:55 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Monitoring Program: Can This Be Done?

Dove-tailing with Ian's response, AHK would be an excellent solution,
not only for acting on the client PC but also for monitoring window
usage, PC transition to screensaver or hibernate, etc. It's also free
- but a hefty learning curve if you're not familiar with the scripting
language.

To answer your question, yes, with C# this is also do-able, free, and
with no new languages to learn. If you want to do this on your own,
find some freeware that listens for Win32 events - though that area
can present as much of a learning curve as AHK. You want a tray app
that runs on system startup or with the SB client, to identify the
SBClient window when it opens, then check for various events like
minimize and window activated. You also want a timer that periodically
checks to see if the screensaver is running. (The first mechanism is
reactive, the second is proactive.) You will need to DllImport
user32.dll for this.

A search on the topic reveals many hits, including this helpful blog
with a C# solution that you should be able to tweak for your purposes:
http://bit.ly/1afWhF3

If you do Not want to do that on your own, you can email me to discuss
development services.

HTH

Tony Gravagno   
Nebula Research and Development 
TG@ remove.pleaseNebula-RnD.com 
Nebula RD sells mv.NET and other Pick/MultiValue products  
worldwide, and provides related development services
http://Nebula-RnD.com/blog  
Visit http://PickWiki.com! Contribute!  
http://Twitter.com/TonyGravagno 
http://groups.google.com/group/mvdbms   



 From: McGowan, Ian 
 For your original question, I don't know about how to capture the
 timestamp for SB activity, but http://www.autohotkey.com/ is an
 amazing piece of software that can definitely switch to the SBClient
 window and hit escape a bunch of times.  I have used it several
times
 to 'scrape' data from one system and plug it into another, when more
 elegant solutions wouldn't work for whatever reason...


 From: Al DeWitt 
 I have been asked to inquire if there is a way I can write a C#
program
 to be installed on certain (shop floor) PCs to log SBClient activity
 (keystrokes?) with a timestamp.  This program would then read the
 last activity timestamp, compare it to the current time and if the
 interim is greater than a certain number of minutes execute a series
of
 Escape strokes to back the app out to the close screen and thus free
 up licenses.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] OT: Monitoring Program: Can This Be Done?

2013-06-27 Thread John Hester
We have AUTOLOGOUT in every user's VOC entry.  It doesn't result in a
clean exit from whatever they're sitting in, but the vast majority of
our programs are written well enough that either a transaction will get
rolled back or things won't be left in a partially done state.  There
are some exceptions, and I handle those with cleanup code executed by
the UV ON.EXIT VOC entry that always gets executed when a session
terminates.  That works well provided you know what might need to be
cleaned up 100% of the time.

-John

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Adrian Overs
Sent: Wednesday, June 26, 2013 2:42 PM
To: U2 Users List
Subject: Re: [U2] OT: Monitoring Program: Can This Be Done?

Have you thought of using AUTOLOGOUT in your VOC LOGIN paragraph. 
AUTOLOGOUT nn - where nn is a number of minutes Or AUTOLOGOUT 0 to turn
it off

HTH - Adrian

Sent from my iPhone

On 27/06/2013, at 7:22, Al DeWitt adew...@stylmark.com wrote:

Tried sending this to sbsolutions but it didn't appear  to get there so
I'll try here in hopes some of you are using SB+/SBClient

We are having an issue where we are using all of our licenses by midday.

Our current procedure is to send out a broadcast e-mail asking those who
are not using the application to log off SBClient.

We believe that what is happening is that certain PCs on the shop floor
have SBClient started; some activity recorded and then the user walks
away from the workstation leaving the particular screen open.

I have been asked to inquire if there is a way I can write a C# program
to be installed on certain (shop floor) PCs to log SBClient activity
(keystrokes?) with a timestamp.  This program would then read the last
activity timestamp, compare it to the current time and if the interim is
greater than a certain number of minutes execute a series of Escape
strokes to back the app out to the close screen and thus free up
licenses.

Has anybody attempted this?  If so can you share what you did?

Thanks.

Albert DeWitt, CPIM
Sr. Programmer Analyst

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


[U2] Creating files within XLr8 Eclipse IDE [ad]

2013-06-27 Thread Doug Averch
Although a lot of you have different ideas what tools can do for you, we
continually dream up and add to our XLr8 Tools features that we have wanted
for years.  XLr8 version 3.7.9 which was released yesterday allows you to
create files using XLr8.

You simply right click on the Universe or Unidata account and then answer
the prompts from the file creation wizard.  We found this to be important
feature in development or just copying data when we need to save it off in
another file name.

All of the XLr8 users get this feature not matter what product or
product(s) they have licensed.

Regards,
Doug
www.u2logic.com/tools.html
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users