473,473 Members | 1,513 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Win32api.MessageBox

When I use win32api.MessageBox from the interactive console from an
app that runs at the command line, it works and displays my alert just
fine however when I use it in a service that I built I can hear the
'beep' but the alert does not show and the program seems to stall
waiting for the alert to close, how can I have the alert show so that
the user can see what it says and press the button?
Oct 15 '08 #1
2 6135
Unkwntech a écrit :
When I use win32api.MessageBox from the interactive console from an
app that runs at the command line, it works and displays my alert just
fine however when I use it in a service that I built I can hear the
'beep' but the alert does not show and the program seems to stall
waiting for the alert to close, how can I have the alert show so that
the user can see what it says and press the button?
I'm by no mean a Win32 expert, but IIRC, Windows 'services' (IOW :
daemons) are not suppose to directly interact with the user. Now you'd
better not take me on words on this...
Oct 15 '08 #2
Bruno Desthuilliers <br********************@websiteburo.invalidwrote :
Unkwntech a écrit :
>When I use win32api.MessageBox from the interactive console from an
app that runs at the command line, it works and displays my alert just
fine however when I use it in a service that I built I can hear the
'beep' but the alert does not show and the program seems to stall
waiting for the alert to close, how can I have the alert show so that
the user can see what it says and press the button?

I'm by no mean a Win32 expert, but IIRC, Windows 'services' (IOW :
daemons) are not suppose to directly interact with the user. Now you'd
better not take me on words on this...
It's an option when you install the service. By default services will run
under the 'local system' account and have no access to the desktop. You can
either give the service permission to interact with the desktop from the
service properties (or specify --interactive if installing it with
win32serviceutil).

--
Duncan Booth http://kupuguy.blogspot.com
Oct 15 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matt Smith | last post by:
hi all, again.... having another problem with python COMs, I run a python script on a win2000 machine, that uses win32com.client and it runs perfectly, whereas when I come to run it on a win98...
5
by: Gary Richardson | last post by:
I'm trying to use win32api.SetCursorPos() to position the cursor in a Tkinter canvas window. I.e.: from Tkinter import * import win32api root = Tk() canvas = Canvas(root, width=400,...
2
by: Nurchi BECHED | last post by:
Hello, my dearest respected brother, All! How do you make calls to Win32Api functions from C# I have an old example in Visual FoxPro... Kind of need to do the same in C# now... I need to get...
6
by: purity | last post by:
This is what I'm trying to do (written totally different but you'll get the point) HINSTANCE user32 = NULL; FARPROC mbox = NULL; user32=LoadLibrary("User32.dll"); //user32 now is i.e...
2
by: Jim | last post by:
I am trying to figure out how to embed Python in a little C++ Windows console app. Here's the code: // Py_Initialize(); Py_InitializeEx(0); PyRun_SimpleString("from win32com.client import *");...
0
by: Mike | last post by:
Hi. I have Python 2.4 installed on my local machine in c:\Python24. I have also downloaded the python for windows extensions installer pywin32-208.win32-py2.4.exe and installed this to...
1
by: reginpc | last post by:
Hi, Please anyone say how to find win32api.py file and where its present?? i am Getting the below error... from win32com.shell import shell File...
1
by: tkpmep | last post by:
I'm running Python 2.5.2 on Windows XP and need to interface with R, so I downloaded the R 2.6.2 statistical package and installed it, and did the same for RPy 1.02 (i made sure I got the version...
1
by: Michiel Overtoom | last post by:
On Saturday 19 July 2008 21:13:04 Lamonte Harris wrote: What are the actions you do and the commands you give, and what is the precise error you get? Greetings, -- "The ability of the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.