Re: [python-win32] WMI and Terminal Services

2011-03-28 Thread Mike Driscoll
On 1:59 PM, Tim Golden wrote: On 25/03/2011 6:19 PM, Mike Driscoll wrote: Hi, I am looking for a way to query the client name parameter from Terminal Services. I have been testing several scripts I've found that use either win32com.client or win32ts, but they are giving me weird erro

[python-win32] WMI and Terminal Services

2011-03-25 Thread Mike Driscoll
the "os" module, like this: os.getenv("CLIENTNAME") Is there a way to get it and other Terminal Services session information via these methods or WMI? Thanks! -- Mike Driscoll Applications Specialist ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Catching Send To in Office

2011-03-24 Thread Mike Driscoll
Hi Tony, On 1:59 PM, Tony Cappellini wrote: On 1:59 PM, Tim Roberts wrote: > Mike Driscoll wrote: >> Does anyone know of a way to catch the "Send To Mail Recipient" in >> Microsoft Word or Excel? I want to redirect that to our web mail >> somehow. > Well, le

Re: [python-win32] Catching Send To in Office

2011-03-23 Thread Mike Driscoll
Hi Vernon, On 3/23/2011 10:53 AM, Vernon Cole wrote: One of the executives where I used to work actually made use of the ¨send to" feature in Word. The resulting bloat that appeared was appalling, and IIRC the recipient had to have Word installed to read the mail, when she finally imported it.

Re: [python-win32] Catching Send To in Office

2011-03-23 Thread Mike Driscoll
On 1:59 PM, Tim Roberts wrote: Mike Driscoll wrote: Does anyone know of a way to catch the "Send To Mail Recipient" in Microsoft Word or Excel? I want to redirect that to our web mail somehow. Well, let's brainstorm for a moment. That link fires up the "default mai

[python-win32] Catching Send To in Office

2011-03-22 Thread Mike Driscoll
Hi, Does anyone know of a way to catch the "Send To Mail Recipient" in Microsoft Word or Excel? I want to redirect that to our web mail somehow. I'm going to need to do that with the right-click context menu that appears when people right-click a file too. Any ideas would be great. Even if I

Re: [python-win32] How to specify parameters in a query using odbc

2011-02-02 Thread Mike Driscoll
c Inc Tel: +44 (0)151 356 6197 Fax: +44 (0)151 356 6112 Personally, I use SqlAlchemy for almost all my database work. It takes a little longer to learn, but I find it easier to use in the long run. -- Mike Driscoll Applications Specialist ___ p

Re: [python-win32] odbc under windows 7?

2011-01-24 Thread Mike Driscoll
/recipes/528868-extraction-and-manipulation-class-for-microsoft-ac/ -- Mike Driscoll ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Intenet explorer using PythonWin Help

2010-12-22 Thread Mike Driscoll
rm element, i.e. option, hrefs, links, etc Any help is greatly appreciated. I've heard good things about Mechanize: http://mechanize.rubyforge.org/mechanize/ It's not PyWin32, but it's probably easier to use than win32com methods. -- Mike Driscoll __

Re: [python-win32] How do I get the URL of the active tab in Internet Explorer

2010-11-30 Thread Mike Driscoll
eys package (http://www.rutherfurd.net/python/sendkeys/) to send an ALT+D to select the url and then CTRL+C to copy it. Then you can use the win32clipboard module from PyWin32 to grab the text from the clipboard. It's a hack, but it's kind of fun. Of course, you can't use your

Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-15 Thread Mike Driscoll
tty sure I played that adventure on an old DEC workstation in high school... -- Mike Driscoll Applications Specialist MCIS - Technology Center 1 E. Main St. Marshalltown, IA 50158 mdrisc...@co.marshall.ia.us 641-844-2802 ___ python-win32 mailing list py

Re: [python-win32] Simple Windows progressbar dialog (like messagebox) via Win32 API?

2010-10-01 Thread Mike Driscoll
On 1:59 PM, pyt...@bdurham.com wrote: I know there is a simple interface to the Windows messagebox interface. Is there an equivalent type of simple dialog box for showing a progressbar or progressbar-like information? Use case: I have a collection of Python command line utilties that can take

Re: [python-win32] how to "click" on a word "confirm popup"

2010-08-11 Thread Mike Driscoll
y the following: 1) Open the document in Word and record a macro of you clicking the popup. 2) Stop the recording and open the macro to see what happened. 3) Replicate the code in Python Good luck! -- *Mike Driscoll* Blog: http://blog.pythonlibrary.org ___

[python-win32] SetPrinterDataEx or SetPrinterData

2010-06-14 Thread Mike Driscoll
arounds? Thanks! -- *Mike Driscoll* Blog: http://blog.pythonlibrary.org ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Setting UserInitials in Office

2010-05-03 Thread Mike Driscoll
On 1:59 PM, Tim Golden wrote: On 28/04/2010 14:23, Mike Driscoll wrote: Sorry for the delay in checking this out. I was out of the office yesterday. Your code almost worked for reading the key, but I get a tuple back: [goes back to check what he wrote...] That's why my code does this

Re: [python-win32] Setting UserInitials in Office

2010-04-28 Thread Mike Driscoll
On 1:59 PM, Tim Golden wrote: On 27/04/2010 22:43, Tim Roberts wrote: Tim Golden wrote: On 26/04/2010 23:56, Tim Roberts wrote: Mike Driscoll wrote: ... HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\UserInfo I tried to use the base64 module to decode it, but I must be doing

[python-win32] Setting UserInitials in Office

2010-04-26 Thread Mike Driscoll
Hi, I am looking for a way to set the UserInitials and Username in Microsoft Office applications. The reason is that we have had some users who have managed to put their initials into some Office programs when a different user was logged in and this has made it difficult to tell who has what

Re: [python-win32] administration script

2010-03-25 Thread Mike Driscoll
http://timgolden.me.uk/python/wmi/ http://timgolden.me.uk/python-on-windows/ http://gallery.technet.microsoft.com/ScriptCenter/en-us/site/search?f[0].Type=ScriptLanguage&f[0].Value=Python&f[0].Text=Python http://www.blog.pythonlibrary.org/tag/windows/ -- *Mike Driscoll

Re: [python-win32] Win API call to display a BMP/PNG file as a splash screen for a console app?

2010-03-23 Thread Mike Driscoll
exe binary. Ask on the mailing list. Steven Sproat was talking about some methods last month and I think he said he had an exe that was 5 or 7 MB when he was done. -- *Mike Driscoll* Blog: http://blog.pythonlibrary.org ___ python-win32 mailing l

Re: [python-win32] MAPI with win32com

2010-03-22 Thread Mike Driscoll
es/149461-mapi-send/ Since we dropped Exchange in favor of Zimbra, I cannot test this solution, but maybe it will help you. By the way, is smtplib not working for you? -- *Mike Driscoll* Blog: http://blog.pythonlibrary.org ___ python-win32 mailing li

Re: [python-win32] How to query the peak commit charge

2010-03-01 Thread Mike Driscoll
Hi Mark, On 2/26/2010 5:14 PM, Mark Hammond wrote: On 27/02/2010 2:22 AM, Mike Driscoll wrote: Hi, I have been tasked with trying to find a way to query the peak commit charge of our various workstations. It would be great if I could do it remotely, but logging is also a possibility

[python-win32] How to query the peak commit charge

2010-02-26 Thread Mike Driscoll
Hi, I have been tasked with trying to find a way to query the peak commit charge of our various workstations. It would be great if I could do it remotely, but logging is also a possibility. Unfortunately, my Google skills have failed me as I can't find anyone else who is doing this publicly.

Re: [python-win32] Python Automation Question

2010-02-22 Thread Mike Driscoll
nlibrary.org/2010/02/14/python-windows-and-printers/ and Tim Golden's site has at least one other script based on printers: http://timgolden.me.uk/python/wmi/cookbook.html#show-print-jobs (although it has nothing to do with what you're doing). The other guys had good suggestions too

Re: [python-win32] Question concerning wmi c.CIM_DataFile

2010-01-11 Thread Mike Driscoll
On 1:59 PM, Tim Golden wrote: On 04/01/2010 21:18, Mike Driscoll wrote: The OP should check out Tim Golden's winshell module as it gives access to the common folders quite easily: http://timgolden.me.uk/python/winshell.html Thanks for the plug, Mike. Problem is that the OP is after ru

Re: [python-win32] Question concerning wmi c.CIM_DataFile

2010-01-04 Thread Mike Driscoll
"Documents and Setting" or "Local Settings", and they don't have to be located on "C:". You should be using the shell folder APIs to find the names of the "well-known folders". Plus, the whole "Local Settings\Temp" folder is volatile. You should

[python-win32] Unmuting the Microphone

2009-11-09 Thread Mike Driscoll
Hi, I received a request to un-mute the microphone on Windows XP. I've looked around online and all I've seen are people recommending ctypes, but no examples (in Python). I did find this C++ code, but I can't tell if if just toggles mute or allows the programmer to specify that they want the

Re: [python-win32] thread not posting events woes

2009-09-14 Thread Mike Driscoll
with pubsub (http://wiki.wxpython.org/PubSub) would be one of the easiest ways to send messages back to your application. --- Mike Driscoll Blog: http://blog.pythonlibrary.org ___ python-win32 mailing list python-win32@python.org h

Re: [python-win32] Problem registering Python COM object

2009-08-13 Thread Mike Driscoll
Gary Smith wrote: Re: Problem registering Python COM object (suddenly) Hi, I’ve been volunteering for the Research Dept. of Selby Botanical Gardens here in Sarasota, FL. In support of my project I wrote a Python COM server to extend Python’s regular expression capabilities to VB. (I’m aware

Re: [python-win32] Winshell issues

2009-08-12 Thread Mike Driscoll
Michael M Mason wrote: Hi, I've been using Tim Golden's winshell module for a couple of years and just in the last week or so, I've been receiving the following error from multiple users: Traceback (most recent call last): File "\\debianso\loginscript$\MCISpy.py", line 267, in ?

[python-win32] Winshell issues

2009-08-11 Thread Mike Driscoll
Hi, I've been using Tim Golden's winshell module for a couple of years and just in the last week or so, I've been receiving the following error from multiple users: Traceback (most recent call last): File "\\debianso\loginscript$\MCISpy.py", line 267, in ? import SoScripts File "\\debian

Re: [python-win32] Dealing with windows in Windows

2009-08-04 Thread Mike Driscoll
Kimmo Kekkonen wrote: Hi! I were wondering if it is possible to use Python to select a window (by title or somehow) and then input text into it? I'd need the trick to input text to program I am running from cmd. When program opens it also opens one "GUI" window and focus to the cmd will lost. No

Re: [python-win32] Please suggest me a good Python MAPI module...

2009-08-03 Thread Mike Driscoll
durumd...@gmail.com wrote: Hi! I'm searching a good Python MAPI module... I wanna send many pictures, I wanna split them into 5 MB sized mails, and I wanna see them in default mailer as new mails. The sending is not needed, only mapi call with "New mail/Mailto" and with attachments. Thank

Re: [python-win32] Copying a MS Access Table

2009-07-29 Thread Mike Driscoll
Tim Golden wrote: [copying back to the list] Not sure how to reply to the thread, since I thought that if I reply to "python-win32@python.org" then it would start a new thread? Replying to python-win32@python.org is the right thing to do; the mailing list software should recognise all the c

Re: [python-win32] Problem with Python win32com while loading facebook homepage

2009-07-27 Thread Mike Driscoll
Adrien, Hi dear members of the python-win32 python mailing list, I'm trying to connect to my facebook account.. I'd like to automate some tasks like closing applications requests, and why not automate task for application games of facebook, if I arrive to do this. But I can't arrive to conne

Re: [python-win32] Examples of Win32Inet use

2009-07-07 Thread Mike Driscoll
Fadhley Salim wrote: Now that SF seems to be back online, could somebody point me to some examples for how to use the win32inet functions? There's almost no documentation for this library, and I have not managed to find any examples working code which actually uses these functions. FYI, I'm

Re: [python-win32] problem in making exe of python

2009-07-06 Thread Mike Driscoll
Marium, hi all, i m new to wx python.i found difficulty in making its exe.Although m using the code for exe as: # from distutils.core import setup import py2exe import sys,glob,os if len(sys.argv) == 1: sys.argv.append("py2exe") # creates a standalone .exe file, no zip files setup(

Re: [python-win32] python and wow64 filesystem redirection

2009-06-23 Thread Mike Driscoll
Guy, Hi all, I have (2003/2008) x64 systems with 32bit python installed, and my code needs access to %SystemRoot%\system32, but the wow64 filesystem redirection thing is in my way. I looked from the *Wow64DisableWow64FsRedirection *function in the win32 extensions, but I can't find it. So,

Re: [python-win32] help, ImportError: MemoryLoadLibrary failed loading win32ui.pyd!!!

2009-06-16 Thread Mike Driscoll
Sweet Boy wrote: hi, well i got this exception when i run my .exe Traceback (most recent call last): File "new.py", line 2, in (module) File "zipextimporter.pyc", line 98, in load_module ImportError: MemoryLoadLibrary failed loading win32ui.pyd this is my script to make .py to .exe: from dist

Re: [python-win32] Sourceforge Download Link

2009-05-26 Thread Mike Driscoll
Randy Syring wrote: Has anyone noticed that the big green download box on this page: http://sourceforge.net/projects/pywin32/ says the latest build is 213, but when you click on the link in that box, it takes you to 212? I think it did the same thing when 211 was introduced...instead of 211

Re: [python-win32] python-win32 Digest, Vol 74, Issue 5

2009-05-04 Thread Mike Driscoll
python-win32-requ...@python.org wrote: Send python-win32 mailing list submissions to python-win32@python.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org/mailman/listinfo/python-win32 or, via email, send a message with subject or body 'help' to

Re: [python-win32] Probelm with win32api dll load failed

2009-03-31 Thread Mike Driscoll
Andrew Spagnoletti wrote: Hi, ? I have developed an application with Python 2.6 and wxPython and prepared the set up using py2exe and InstallJammer. ? When I generated the installation from ?my Vista machine and then install it on an XP computer (not sure if there is any significance to the Vi

Re: [python-win32] OnCtlColor not working?

2009-03-02 Thread Mike Driscoll
King Simon-NFHD78 wrote: -Original Message- From: python-win32-bounces+simon.king=motorola@python.org [mailto:python-win32-bounces+simon.king=motorola@python.or g] On Behalf Of Mike Driscoll Sent: 02 March 2009 14:18 To: Python-Win32 List Subject: Re: [python-win32] OnCtlColor

Re: [python-win32] OnCtlColor not working?

2009-03-02 Thread Mike Driscoll
llent GUI toolkits? You'll get cross-platform code out of the box, if you're careful with Tkinter and wxPython... IronPython may be helpful too since you can use Visual Studio to layout your application and IronPython to control it. --- Mike Driscoll Blog:

[python-win32] SetWindowTheme for Vista

2009-01-16 Thread Mike Driscoll
Hi, There has been a discussion on the wxPython user's group about how the new QT licensing will affect wx's viability. They got slightly off-topic and pointed out that the wx treectrl isn't wrapping Vista's theme like it should. They pointed to this article on setting the window theme: http

Re: [python-win32] rebooting windows from Python?

2008-12-05 Thread Mike Driscoll
Alec, I've been using the following method that I found on ActiveState's Cookbook, which I modified a little (http://code.activestate.com/recipes/360649/): Does that method ever hang during shutdown? I've tested the WMI method a few times and got one hang, where it was asking me to termi

Re: [python-win32] Walking the registry and creating reg files

2008-12-05 Thread Mike Driscoll
Tim Golden wrote: Dahlstrom, Roger wrote: If you can read the registry, you can save it without any other special permissions. It is just text. Just export a branch of your own registry and open it with notepad to see the format. I do it all the time, it works fine. You're quite right, Rog

Re: [python-win32] rebooting windows from Python?

2008-12-05 Thread Mike Driscoll
Alec, And thus I say for the second time in 24 hours: Eureka! For anyone else coming down this path, here's how to shutdown, reboot or logoff Windows, each with the option to force the action. In other words, you can force Windows to reboot even if its asking if you want to save a document.

Re: [python-win32] Walking the registry and creating reg files

2008-12-05 Thread Mike Driscoll
Tim Roberts wrote: Mike Driscoll wrote: We're doing what amounts to a registry session audit here at work, so I need to walk a specific set of subfolders in our registry and get the contents thereof. The subfolders will vary from user to user. I found Tim Golden's excellent regist

[python-win32] Walking the registry and creating reg files

2008-12-04 Thread Mike Driscoll
Hi, We're doing what amounts to a registry session audit here at work, so I need to walk a specific set of subfolders in our registry and get the contents thereof. The subfolders will vary from user to user. I found Tim Golden's excellent registry walking script on his website here: http://t

Re: [python-win32] Simple context-menu question.

2008-11-25 Thread Mike Driscoll
Tim Roberts wrote: Joel Bryan Juliano wrote: Based on the context_menu.py example found in win32comext\shell\demos\servers\context_menu.py, there is a function callback when an item is chosen, def InvokeCommand(self, ci): mask, hwnd, verb, params, dir, nShow, hotkey, hicon = ci

Re: [python-win32] How to make python scripts output to current cmd window? (like linux terminal)

2008-11-18 Thread Mike Driscoll
Tim Roberts wrote: Tim Roberts wrote: sayeo87 wrote: Right now on Windows I have added ".py" to my PATHEXT so that I can run .py files by doing ./.py. But when I do this the output of the program goes to a new command prompt window which instantly disappears. How can I instead make t

Re: [python-win32] Virtual print driver - similiar to winpdf

2008-09-23 Thread Mike Driscoll
geoff wrote: Thanks for you guidance Tim. After reviewing I am coming to the same conclusion. This is trickier than you might guess. Does the application actually write to the printer using a Windows printer driver? Some old applications that just used a printer for logging wrote directly

Re: [python-win32] Internet Explorer constants

2008-09-05 Thread Mike Driscoll
/ or Mechanize: http://pypi.python.org/pypi/mechanize/0.1.7b I don't think either uses the PyWin32 library, but I hear that they're both pretty good. --- Mike Driscoll Blog: http://blog.pythonlibrary.org Python Extension Building Network: http://www.pyth

Re: [python-win32] Pb IE8-b2 + Python like ActiveScripting language

2008-09-02 Thread Mike Driscoll
Michel Claveau wrote: Hi! Impossible, for me, to use Python like ActiveScripting language, in a HTA, since IE-8 beta-2 installed. Run OK with IE5, IE6, IE7. But IE8 does not recognize Python (I however recorded several times python like language of ActiveScripting) Any idea or solution?

Re: [python-win32] Fwd: Renaming Excel Spreadsheets

2008-08-27 Thread Mike Driscoll
James Matthews wrote: -- Forwarded message -- From: *Greg Lindstrom* <[EMAIL PROTECTED] > Date: Tue, Aug 26, 2008 at 11:54 AM Subject: Renaming Excel Spreadsheets To: [EMAIL PROTECTED] Hello, I am working with Python to c

Re: [python-win32] Created Map NetWork Drive is not visible in "My Computer" window

2008-08-25 Thread Mike Driscoll
drive letter if it's already mapped before we map the drives. We do this because some of users stick USB drives or other devices into their PCs before they login and the USB drive will grab the drive letter. Mike On Mon, Aug 25, 2008 at 7:31 PM, Mike Driscoll <[EMAIL PROTECTED] &

Re: [python-win32] Created Map NetWork Drive is not visible in "My Computer" window

2008-08-25 Thread Mike Driscoll
siddhartha veedaluru wrote: Hi, i have used the following code to create Map NetWork Drive. But it is not visble when i open "My Computer" window. --- import win32net,time data = {} data['remote'] = r'\\fredo\Project' d

Re: [python-win32] Getting a printer's port

2008-08-21 Thread Mike Driscoll
Roger Upole wrote: Hi all, I am in need of a way to get a printer's port with Python. I can get the name of a printer and the comments field (I think) using win32print.EnumPrinters(), but that's as close as I can get. Most of the printers in my organization are networked through Linux CUPS.

[python-win32] Getting a printer's port

2008-08-20 Thread Mike Driscoll
Hi all, I am in need of a way to get a printer's port with Python. I can get the name of a printer and the comments field (I think) using win32print.EnumPrinters(), but that's as close as I can get. Most of the printers in my organization are networked through Linux CUPS. Any pointers are ap

Re: [python-win32] help with parsing email

2008-08-19 Thread Mike Driscoll
use an external TLS Python module to connect to it. I would check Outlook's settings and see if it has SSL or TLS enabled. For more information, see: http://www.python.org/doc/lib/module-poplib.html http://trevp.net/tlslite/ --- Mike Driscoll Blog: http://blog.python

[python-win32] Build 211 still linked from main page

2008-08-09 Thread Mike Driscoll
Hi, I noticed just now that if I go to the main page for pywin32 on SourceForge and click the big green button, I get taken to the 211 build instead of the 212: http://sourceforge.net/projects/pywin32/ Is this intentional? Mike ___ python-win32 mail

Re: [python-win32] pywin32 install via setuptools -- conclusion?

2008-08-08 Thread Mike Driscoll
Michael Gundlach wrote: On Fri, Aug 8, 2008 at 9:52 AM, Mike Driscoll <[EMAIL PROTECTED]> wrote: Michael Gundlach wrote: Hi, Sorry to be dense, but I assume you mean the ActiveState cookbook at http://code.activestate.com/recipes/langs/python/ ? He's probably r

Re: [python-win32] pywin32 install via setuptools -- conclusion?

2008-08-08 Thread Mike Driscoll
Christopher Galvan wrote: Michael Gundlach wrote: On Fri, Aug 8, 2008 at 9:52 AM, Mike Driscoll <[EMAIL PROTECTED]> wrote: Michael Gundlach wrote: Hi, Sorry to be dense, but I assume you mean the ActiveState cookbook at http://code.activestate.com/recipes/langs/

Re: [python-win32] Python and Visual Basic Integration

2008-07-24 Thread Mike Driscoll
Mark Norley wrote: Thanks for the advice everyone. I've managed to get my VB GUI talking to a simple "Hello World!" Python COM server (there was a quickstart help page in the pywin32 package that I hadn't spotted). As I understand it, you can call VB stuff from within IronPython and vise-ve

Re: [python-win32] FW: MSMQ - cannot catchCOM_ERROR with"pythoncom.com_error"

2008-07-23 Thread Mike Driscoll
Lynton Grice wrote: Hey Tim, Wow, you are 100% correctthere was something in WingIDE that is not happystrange I ran the same code in the standard interpreter and it caught the error perfectly BTW: What IDE's do you guys use for Python? Thanks a million, have a great day! Lynt

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-25 Thread Mike Driscoll
Mark, fter upgrading to 211, I am getting an import error on my wx module. Are these tied together in some weird way? Not that I can think of, and build 211 didn't add any funky new import tricks or anything. However, build 211 is packing the MFC DLL now, so *that* could be related - try

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-24 Thread Mike Driscoll
AIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Mike Driscoll wrote: Mike Driscoll wrote: Hi, In one of my login scripts for work, I run a query to see if the VNC service is running using the win32serviceutil module. Th

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Mike Driscoll
Roger Upole wrote: Mike Driscoll wrote: Mike Driscoll wrote: Hi, In one of my login scripts for work, I run a query to see if the VNC service is running using the win32serviceutil module. The code for that I am using looks something like this: import win32serviceutil serviceState

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Mike Driscoll
Tim, Mike Driscoll wrote: [... snip problems checking service status ...] Well I've no idea if this suggestion will actually work round whatever the issue is but... ... you can use WMI to query service info. (You knew I was going to say that, didn't you?) I knew you'd have

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Mike Driscoll
Mike Driscoll wrote: Hi, In one of my login scripts for work, I run a query to see if the VNC service is running using the win32serviceutil module. The code for that I am using looks something like this: import win32serviceutil serviceState = win32serviceutil.QueryServiceStatus('VNC S

[python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Mike Driscoll
he!? Does anyone have any suggestions? Maybe a better way to get the information? I only need to know if the service is running or not, and if not, to start it. Thanks! --- Mike Driscoll Blog: http://blog.pythonlibrary.org Python Extension Building Network: http://www.pythonlibrary.org ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Webbrowser control and Tab Navigation

2008-06-10 Thread Mike Driscoll
/wxpython.org/maillist.php Also, there's the PAMIE project which you may or may not find useful: http://pamie.sourceforge.net/ I personally have used the SendKeys module to automate IE, however it's rather like black magic and kind of sucks: http://www.rutherfurd.net/python/send

Re: [python-win32] IE control via DWebBrowserEvents2

2008-06-09 Thread Mike Driscoll
t least one non-pywin32 solution that I keep hearing about called the PAMIE project. You might find it helpful: http://pamie.sourceforge.net/ If nothing else, the source from the project might give you some ideas on how to approach the problem. --- Mike Driscol

Re: [python-win32] Request for comments

2008-05-30 Thread Mike Driscoll
Tim Golden wrote: [Ton van Vliet] IMHO the links could be a bit more visible. When looking at the 'Where do I begin' paragraph, it took me quite some time to notice that there *were* actually links in there (after being taken there by clicking on the 'Where do I begin' link in the left hand

Re: [python-win32] How to get all the variables in a python shell

2008-05-29 Thread Mike Driscoll
to your answers. Thanks in advance! You might ask at the matplotlib user's group: http://sourceforge.net/mail/?group_id=80706 Also, I know a few of the regulars on the wxPython list use matplotlib in their projects, so if you want a GUI instead, you might ask there too. http://wxpython.org/ma

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Mike Driscoll
Vernon, Tim: I think you missed my point... As you say, the PEP8 style guide "is a starting point for new Python coders." That is precisely why it ought to be followed in sample code. I normally format my function calls exactly the way you do, and I do so in open source code which I contri

Re: [python-win32] Request for comments

2008-05-27 Thread Mike Driscoll
Tim Golden wrote: Mike Driscoll wrote: Tim Golden wrote: Yes, I tried that to see what you meant. I'm not sure there's much I'm going to be able to do about that, unless someone jumps in with a solution. My main point about the examples is that they're self-contained. (

Re: [python-win32] Request for comments

2008-05-27 Thread Mike Driscoll
Tim Golden wrote: bob gailer wrote: Tim Roberts wrote: bob gailer wrote: Please omit the space before ( in code. I find that very distracting. Example: print result.Properties_ ("sValue").Value # current print result.Properties_("sValue").Value # preferred, and how most code I've seen lo

Re: [python-win32] Problem creating a shortcut

2008-05-16 Thread Mike Driscoll
Tim Golden wrote: Sorry, missed this one going through. Looks like Roger's hit the nail on the head, though. Bizarre behaviour by the IShellLink interface: I can't find any kind of reference to this but I assume that since the Path attribute of the link should *only* contain an executable, there

Re: [python-win32] Problem creating a shortcut

2008-05-16 Thread Mike Driscoll
Tim, Mike Driscoll wrote: I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. ... shortcut = shell.CreateShortCut(userDesktop + '\

Re: [python-win32] Problem creating a shortcut

2008-05-16 Thread Mike Driscoll
Roger, Mike Driscoll wrote: Hi, I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. I usually use COM as it allows very specific settings of th

[python-win32] Problem creating a shortcut

2008-05-15 Thread Mike Driscoll
Hi, I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. I usually use COM as it allows very specific settings of the shortcut, such as the Working Directory and

Re: [python-win32] Will wmi can a command on remore host and get the return code

2008-05-15 Thread Mike Driscoll
siddhartha veedaluru wrote: Hi, i'm tring to execute a exe that is placed in the mapped network drive on remote machine it seems it is not getting recognised. How can i run the exe on the mapped network drive Thanks, Siddhartha I would use the subprocess module. import subprocess #

Re: [python-win32] how to activate subwindow of the application ???

2008-05-09 Thread Mike Driscoll
Tim Golden wrote: neha rai wrote: I am making a tool that needs to open subwindow of another application, enter some text in it click ok and then open the same window again. i am able to put text and click 'OK' but I am not able to open the same window again using the python code. I need so

Re: [python-win32] (no subject)

2008-04-28 Thread Mike Driscoll
Alex Denham wrote: Hi all, I'm just wondering but when i try to access/update anything on my Tkinter GUI from one particular function, my whole program crashes/freezes with no error. The function is part of a class which handles all the GUI drawing/event handling etc. The function in questi

Re: [python-win32] FileWatcher

2008-04-28 Thread Mike Driscoll
Pierre-Yves Delens wrote: Bonjour, in the context of CAD management (layersmanagement, etc...), we are storing our Layers management in a reference.dwg file, for obvious reasons. But some aspects of this management have to be maintained in alphanumeric format. Therefore we need to trigger

Re: [python-win32] Apache & mod_python & win32com

2008-04-24 Thread Mike Driscoll
[EMAIL PROTECTED] wrote: Hello everyone I'm developing a web application using mod_python and the apache web server. That application has to handle xml files and for that I'm using win32com with with MSXML. My problem is, that apache spawns a new process / thread (not sure wether ist a proces

Re: [python-win32] Drag and Drop issues

2008-04-22 Thread Mike Driscoll
Alex Denham wrote: Hi, I'm trying to implement a drag and drop feature in my Tkinter based gui. I want to be able to drag a file from windows (explorer/desktop etc) into my program. Then i need my program to get the filepath for the file that was dropped. I've tried to search all over the in

Re: [python-win32] Windows programing cookbook?

2008-04-21 Thread Mike Driscoll
Trent Mick wrote: > Mike Driscoll wrote: >> Will the tags make it easier or harder to find stuff? I've had >> problems finding recipes on there because I used one general term and >> the "chef" used a different general or specific term. I'm no

Re: [python-win32] Windows programing cookbook?

2008-04-21 Thread Mike Driscoll
Trent, > >> I have > googled this have not found much. I know about >>> Activestate's site but does not seemed to be organized >>> in a way to get these easily. > > (Jumping in late on this thread. Apologies if I've missed a lot of > context.) > > We [ActiveState] hope to be giving a big refresh

Re: [python-win32] Windows programing cookbook?

2008-04-19 Thread Mike Driscoll
Bill Sneddon wrote: > Does anyone know of a website with windows code > examples? > I'm surprised Golden didn't mention his site. It has lots of examples on it. http://timgolden.me.uk/python/index.html I had originally thought I would create a wiki for this very purpose. However, my interest w

Re: [python-win32] Regarding Threads and locals()

2008-03-20 Thread Mike Driscoll
> Message: 6 > Date: Thu, 20 Mar 2008 16:07:15 +0530 > From: "Tejovathi P" <[EMAIL PROTECTED]> > Subject: [python-win32] Regarding Threads and locals() > To: python-win32@python.org, [EMAIL PROTECTED] > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" >

Re: [python-win32] Skip Alt+F4 (le dahut)

2008-03-18 Thread Mike Driscoll
Hi, > Date: Mon, 17 Mar 2008 14:11:14 +0100 > From: le dahut <[EMAIL PROTECTED]> > Subject: Re: [python-win32] Skip Alt+F4 > To: Paul Moore <[EMAIL PROTECTED]> > Cc: Python-Win32 List > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Oh yes ! Th

Re: [python-win32] Monitor directories/files

2008-03-07 Thread Mike Driscoll
Hi Julius, > > Message: 7 > Date: Fri, 07 Mar 2008 21:44:36 +0100 > From: Julius <[EMAIL PROTECTED]> > Subject: [python-win32] Monitor directories/files > To: python-win32@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain > > Hi, > > how do you monitor files/directories o

Re: [python-win32] Windows Vista slow down Python xmlrpc

2008-03-06 Thread Mike Driscoll
Paul, > Message: 8 > Date: Thu, 6 Mar 2008 19:31:59 + > From: "Paul Moore" <[EMAIL PROTECTED]> > Subject: Re: [python-win32] Windows Vista slow down Python xmlrpc > To: "Tim Roberts" <[EMAIL PROTECTED]> > Cc: Python-Win32 List > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/pla

Re: [python-win32] createtoolbar

2008-02-28 Thread Mike Driscoll
Hi, > > Message: 1 > Date: Thu, 28 Feb 2008 14:34:12 +0530 > From: kNish <[EMAIL PROTECTED]> > Subject: [python-win32] createtoolbar > To: python-win32@python.org > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > #!/usr/bin/python >

Re: [python-win32] python-win32 Digest, Vol 58, Issue 53

2008-01-31 Thread Mike Driscoll
Hi, Are you wanting to use Python in Excel instead of VBA? There's a thread about just that sort of thing here: http://www.velocityreviews.com/forums/t319222-re-python-in-excel.html Otherwise you'll need to figure out how to use VBA to do some kind of Python voodoo to check the data type. I supp

Re: [python-win32] Manipulating MAPI

2008-01-29 Thread Mike Driscoll
Tim, > -Original Message- > From: Tim Golden [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 29, 2008 3:54 AM > To: Mike Driscoll > Cc: python-win32@python.org > Subject: Re: [python-win32] Manipulating MAPI > > Mike Driscoll wrote: > > Our organiza

[python-win32] Manipulating MAPI

2008-01-28 Thread Mike Driscoll
up who could give me a push in the right direction. Any hints and/or tips are appreciated. Thanks! Mike Driscoll Applications Specialist MCIS - Technology Center ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Changing a drive letter

2008-01-28 Thread Mike Driscoll
Tim, > -Original Message- > From: Tim Golden [mailto:[EMAIL PROTECTED] > Sent: Monday, January 28, 2008 9:51 AM > To: Mike Driscoll > Cc: python-win32@python.org > Subject: Re: [python-win32] Changing a drive letter > > Mike Driscoll wrote: > > Just a

  1   2   >