Discussion:
how do I "msg /Time 7" with a system call?
(too old to reply)
T
2020-06-04 00:53:31 UTC
Permalink
Hi All,

How do I do

msg * /TIME 7 Something cleaver goes here

with a system call. I need the time out feature.
Do I need to figure out GTK?

Many thanks,
-T
T
2020-06-04 01:48:39 UTC
Permalink
Post by T
Hi All,
How do I do
msg *  /TIME 7 Something cleaver goes here
with a system call.  I need the time out feature.
Do I need to figure out GTK?
Many thanks,
-T
Without the networking feature
R.Wieser
2020-06-04 17:02:31 UTC
Permalink
T,
Post by T
How do I do
msg * /TIME 7 Something cleaver goes here
with a system call. I need the time out feature.
Windows doesn't have timed dialog boxes. If you want them you will have to
roll your own.
Post by T
Do I need to figure out GTK?
if GTK is another name for/similar to TKInter than perhaps you can use the
following:
https://stackoverflow.com/questions/30235587/closing-tkmessagebox-after-some-time-in-python

Regards,
Rudy Wieser
T
2020-06-05 18:03:08 UTC
Permalink
Post by R.Wieser
T,
Post by T
How do I do
msg * /TIME 7 Something cleaver goes here
with a system call. I need the time out feature.
Windows doesn't have timed dialog boxes. If you want them you will have to
roll your own.
Post by T
Do I need to figure out GTK?
if GTK is another name for/similar to TKInter than perhaps you can use the
https://stackoverflow.com/questions/30235587/closing-tkmessagebox-after-some-time-in-python
Regards,
Rudy Wieser
I am hot on the trail of a roll my own.

As a compromise, I could always check and see
if they are running Pro edition and call msg.exe
with a system call.

I wish they'd dump the home edition, but I
don't get a vote.
R.Wieser
2020-06-05 19:02:28 UTC
Permalink
T,
Post by T
I am hot on the trail of a roll my own.
Even better!
Post by T
As a compromise, I could always check and see
if they are running Pro edition and call msg.exe
with a system call.
Hmmm... Most users will only have the Home edition (the version that came
with their 'puter). Besides, what are you than going to do for the non-Pro
people ?

Maybe not the best of solutions, but I would look for a stand-alone
messagebox program that you can distribute along your own one.

By the way, which Windows version are you working on/for ? I forgot.

Regards,
Rudy Wieser
T
2020-06-05 20:36:53 UTC
Permalink
Post by R.Wieser
By the way, which Windows version are you working on/for ? I forgot.
All of them!

:'(

I am I.T. support to small businesses.
R.Wieser
2020-06-06 09:05:59 UTC
Permalink
T,
Post by T
Post by R.Wieser
By the way, which Windows version are you working on/for ? I forgot.
All of them!
Hmm... There goes my "Most users will only have the Home edition"
assumption. :-)

But in that case I think its even more important to take the "least common
denominator" into account, and take all the "extra" stuff with you(r
program) yourself.

A basic timed messagebox isn't that hard to make in any of the current
programming (as opposed to scripting) languages.

And although I'm not sure if all those OS versions (still) support it, you
could also think of using an .HTA based messagebox (using IE but with more
permissions). Not pretty, but might work.
Post by T
I am I.T. support to small businesses.
And as such programming too ? Not a bad job I would say. :-)

Regards,
Rudy Wieser
T
2020-06-06 23:01:31 UTC
Permalink
Post by R.Wieser
T,
Post by T
Post by R.Wieser
By the way, which Windows version are you working on/for ? I forgot.
All of them!
Hmm... There goes my "Most users will only have the Home edition"
assumption. :-)
But in that case I think its even more important to take the "least common
denominator" into account, and take all the "extra" stuff with you(r
program) yourself.
A basic timed messagebox isn't that hard to make in any of the current
programming (as opposed to scripting) languages.
And although I'm not sure if all those OS versions (still) support it, you
could also think of using an .HTA based messagebox (using IE but with more
permissions). Not pretty, but might work.
Post by T
I am I.T. support to small businesses.
And as such programming too ? Not a bad job I would say. :-)
Regards,
Rudy Wieser
Hi Rudy,

One of the guy's on the Raku group wrote me an example
of GTK (Gnome Tool Kit) for a notify function with
a time out. But I have not had time to check it out
or thank him for that matter.

Now GTK has a library for Windows and both my W7 and
W-Nein, oops, W10 both respond to GTK calls and I
do not remember installing the GTK Tool Kit. I
know gsmartcontrol installs it, but I never installed it
on my virtual machines. Something to investigate.
Maybe Git installed it. Raku required Git.

Also, there is a Raku module for interfacing with Gnome's
Glade tool kit, which allows you to design dialogs.

https://glade.gnome.org/

And the nice thing is that GTK is cross platform.

-T

Loading...