Re: Win32api problems

2019-10-22 Thread Eryk Sun
On 10/22/19, Albert-Jan Roskam wrote: > On 22 Oct 2019 11:23, GerritM wrote: > >> ImportError: DLL load failed: The specified > procedure could not be >> found. Many of the PyWin32 extensions depend on pywintypesXX.dll, and some depend on pythoncomXX.dll. There's a post-installation script that

Re: Win32api problems

2019-10-22 Thread Sibylle Koczian
Am 22.10.2019 um 19:24 schrieb Terry Reedy: ... Is there a win32 list where people might have more knowledge of such? There is: python-wi...@python.org https://mail.python.org/mailman/listinfo/python-win32 If you prefer Gmane: news://news.gmane.org/gmane.comp.python.windows HTH -- htt

Re: Win32api problems

2019-10-22 Thread MRAB
On 2019-10-22 17:31, Albert-Jan Roskam wrote: On 22 Oct 2019 11:23, GerritM wrote: ImportError: DLL load failed: The specified > procedure could not be found. I've had the same error before and I solved it by adding the location where the win32 dlls live to PATH. Maybe PATH gets messed up

Re: Win32api problems

2019-10-22 Thread Terry Reedy
On 10/22/2019 11:42 AM, GerritM wrote: On Tuesday, October 22, 2019 at 12:09:46 PM UTC+2, Terry Reedy wrote: On 10/22/2019 5:23 AM, GerritM wrote: <...snip...> Install 1 at a time and try your normal scripts? Starting from a state of ignorance about interactions between Win32 and other mo

Re: Win32api problems

2019-10-22 Thread Albert-Jan Roskam
On 22 Oct 2019 11:23, GerritM wrote: > ImportError: DLL load failed: The specified > procedure could not be found. I've had the same error before and I solved it by adding the location where the win32 dlls live to PATH. Maybe PATH gets messed up during the installation of something. -- htt

Re: Win32api problems

2019-10-22 Thread GerritM
On Tuesday, October 22, 2019 at 12:09:46 PM UTC+2, Terry Reedy wrote: > On 10/22/2019 5:23 AM, GerritM wrote: <...snip...> > > Install 1 at a time and try your normal scripts? Or try them with 3.7. > > -- > Terry Jan Reedy I am working on the Python 2 to Python 3 transition. I found on Intern

Re: Win32api problems

2019-10-22 Thread Terry Reedy
  File "C:\Python27\lib\site-packages\win32com\__init__.py", line 5, in     import win32api, sys, os ImportError: DLL load failed: The specified procedure could not be found. after trying out several tips on Internet, like copying dll and pyd files, I re-installed my entire ActiveState i

Win32api problems

2019-10-22 Thread GerritM
recent call last):   File "D:\gaudi\src\PythonTools\generateDocumentsPdf.py", line 10, in     from win32com.client.dynamic import Dispatch   File "C:\Python27\lib\site-packages\win32com\__init__.py", line 5, in     import win32api, sys, os ImportError: DLL load failed: The speci

How to use win32api package to send to printer a file in memory

2017-06-08 Thread ilCorvo
I have an Angular application that is communicating via websocket with a python app. Actually, I save the file in Angular, then I pass to the websocket the file path and I print it by win32api.ShellExecute. Anyway, I do not really need to save the file, so would be much better to send the conte

how to simulate keydown and keyup events using win32api .

2015-08-05 Thread ppk . phanikumar
win32api.keybd_event(code,0,0,0) time.sleep(2) win32api.keybd_event(code,0,win32con.KEYEVENTF_KEYUP,0) the above code is simulating single click on button but not press Key Hold but i want to hold the until key up event is called eg: for key 'a' down it have to simulate key continous set until

Re: can't find win32api from embedded pyrun call

2013-09-06 Thread David M. Cotter
the problem was: ActivePython does not install debug libraries, so you must link with release libraries in your project. but if you run the debug version, you're linking against debug libraries which conflict with the ones linked to by python. "fixed" by running the release version. basical

Re: can't find win32api from embedded pyrun call

2013-09-04 Thread Tim Golden
antage of python in my app, so the > python installation can't be touched as it's on a user's machine. > > When I attempt to do: >> import win32api > > i get this: >> Traceback (most recent call last): File "startup.py", line 5, in >> Impo

Re: can't find win32api from embedded pyrun call

2013-09-03 Thread David M. Cotter
note that when the script is called, i DO see this in the output window: > 'kJams 2 Debug.exe': Loaded 'C:\Python27\Lib\site-packages\win32\win32api.pyd' > 'kJams 2 Debug.exe': Loaded 'C:\Windows\SysWOW64\pywintypes27.dll' > 'kJams 2 Debug.exe': Unloaded > 'C:\Python27\Lib\site-packages\win32\win

Re: can't find win32api from embedded pyrun call

2013-09-03 Thread David M. Cotter
touched as it's on a user's machine. When I attempt to do: >import win32api i get this: >Traceback (most recent call last): > File "startup.py", line 5, in >ImportError: DLL load failed: The specified module could not be found. I someone suggested i manuall

Re: win32api install problem

2009-07-22 Thread Tim Roberts
Gerry wrote: >I'm running Python 2.6 under XP. > >I've installed Windows 32 extensions for Python 2.6 version 1.4 >(pywin32-214.win32-py2.6.exe). > >But If I try to import win32api, I get: > > File "C:\python_projects\euler\driveletters.py", line 1

Re: win32api install problem

2009-07-21 Thread Tim Golden
MCIPERF wrote: On Jul 20, 9:57 am, Tim Golden wrote: Gerry wrote: I'm running Python 2.6 under XP. I've installed Windows 32 extensions for Python 2.6 version 1.4 (pywin32-214.win32-py2.6.exe). But If I try to import win32api, I get: File "C:\python_projects\euler\drivelett

Re: win32api install problem

2009-07-20 Thread MCIPERF
On Jul 20, 9:57 am, Tim Golden wrote: > Gerry wrote: > > I'm running Python 2.6 under XP. > > > I've installed Windows 32 extensions for Python 2.6 version 1.4 > > (pywin32-214.win32-py2.6.exe). > > > But If I try to import win32api, I get: > > &

Re: win32api install problem

2009-07-20 Thread Tim Golden
Gerry wrote: I'm running Python 2.6 under XP. I've installed Windows 32 extensions for Python 2.6 version 1.4 (pywin32-214.win32-py2.6.exe). But If I try to import win32api, I get: File "C:\python_projects\euler\driveletters.py", line 1, in import win32api ImportEr

win32api install problem

2009-07-20 Thread Gerry
I'm running Python 2.6 under XP. I've installed Windows 32 extensions for Python 2.6 version 1.4 (pywin32-214.win32-py2.6.exe). But If I try to import win32api, I get: File "C:\python_projects\euler\driveletters.py", line 1, in import win32api ImportError: DLL load f

Python, the Win32api, and directing input to game clients

2009-04-02 Thread darkstorme
;ve fooled around with the windows api, but both SendKeys and SendMessage fail to register on the game window. When testing in Notepad, the text and other keypresses appear as planned. They do not, however, in Neverwinter. It's been suggested on some sites I've come across that Win3

Re: GetKeyboardLayoutName Win32API

2009-02-15 Thread Tim Golden
Tsolakos Stavros wrote: Hi all. I was trying to find a way to read the currently selected input layout from an app written in python. I am aware that if the app were written in C, I would have to call the GetKeyboardLayoutName() function. How can this be done in Python? I want to avoid writing a

GetKeyboardLayoutName Win32API

2009-02-14 Thread Tsolakos Stavros
Hi all. I was trying to find a way to read the currently selected input layout from an app written in python. I am aware that if the app were written in C, I would have to call the GetKeyboardLayoutName() function. How can this be done in Python? I want to avoid writing an extension just for this.

Re: WIn32api

2009-02-06 Thread Mark Hammond
On 7/02/2009 3:28 AM, K-Dawg wrote: You might like to seek out the python-win32 mailing list for stuff like this where more people tend to pay attention to windows problems. This works if I call run() specifically. But when I try to initiate the thread with .start() I get the following error

Re: WIn32api

2009-02-06 Thread K-Dawg
I have come up with what I need and will try tweaking some things that hopefully will help me learn what some of this stuff does. In the meantime, I am having an issue: class *KeepAlive*(threading.Thread): def *__init__*(*self*): *self*.count = 0 *self*.ie=win32com.client.

WIn32api

2009-02-06 Thread K-Dawg
Hi, I have a python script that I want to run in the system tray and system tray only (windows system). I am looking at the win32gui_taskbar.py demo file but am having trouble making sense of what parts do. I understand what the whole does but I want to actually learn what it is doing so I can a

Re: Problems downloading and installing win32api

2008-09-08 Thread [EMAIL PROTECTED]
On Sep 8, 2:41 pm, Emile van Sebille <[EMAIL PROTECTED]> wrote: > brianrpsgt1 wrote: > > I have attempted downloading and installing several different version > > of the win32api from Source Forge, > > Whe win32 tools come bundled with ActiveState's python distribu

Re: Problems downloading and installing win32api

2008-09-08 Thread Emile van Sebille
brianrpsgt1 wrote: I have attempted downloading and installing several different version of the win32api from Source Forge, Whe win32 tools come bundled with ActiveState's python distribution. Maybe that'll move you forward... Emile however, each time I try to install I get the

Problems downloading and installing win32api

2008-09-08 Thread brianrpsgt1
I have attempted downloading and installing several different version of the win32api from Source Forge, however, each time I try to install I get the following error message: "Only part of a ReadProcessMemory or WriteProcessMemory request was completed" This occurred with the follo

Re: calling NetShareEnum win32api with ctypes

2008-08-28 Thread Gabriel Genellina
En Thu, 28 Aug 2008 02:01:23 -0300, taghi <[EMAIL PROTECTED]> escribi�: I want to call NetShareEnum, a function from netapi32.dll NetShareEnum has this definition: [...] netapi32=cdll.LoadLibrary('netapi32.dll') netapi32.NetShareEnum(cname, level, byref(bufptr), prefmaxlen, byref(entriesread), b

Re: calling NetShareEnum win32api with ctypes

2008-08-28 Thread Tim Golden
taghi wrote: I wrote this code in python 2.5: from ctypes import * ... snip ... netapi32=cdll.LoadLibrary('netapi32.dll') This is your problem: netapi32 is a windows DLL and needs to be attached as such: netapi32 = windll.LoadLibrary ("netapi32.dll") or, more simply: netapi32 = win

Re: calling NetShareEnum win32api with ctypes

2008-08-28 Thread Tim Golden
taghi wrote: I wrote this code in python 2.5: from ctypes import * ... snip ... netapi32=cdll.LoadLibrary('netapi32.dll') This is your problem: netapi32 is a windows DLL and needs to be attached as such: netapi32 = windll.LoadLibrary ("netapi32.dll") or, more simply: netapi32 = win

Re: calling NetShareEnum win32api with ctypes

2008-08-28 Thread Tim Golden
taghi wrote: I want to call NetShareEnum, a function from netapi32.dll Not a straightforward answer but... are you aware that this particular call is already wrapped by the pywin32 packages: https://sourceforge.net/projects/pywin32/ http://timgolden.me.uk/pywin32-docs/win32net__NetShareEnum_m

Re: calling NetShareEnum win32api with ctypes

2008-08-27 Thread castironpi
On Aug 28, 12:01 am, taghi <[EMAIL PROTECTED]> wrote: > I want to call NetShareEnum, a function from netapi32.dll > NetShareEnum has this definition: > > NET_API_STATUS NetShareEnum( >   __in     LPWSTR servername, >   __in     DWORD level, >   __out    LPBYTE *bufptr, >   __in     DWORD prefmaxlen

calling NetShareEnum win32api with ctypes

2008-08-27 Thread taghi
I want to call NetShareEnum, a function from netapi32.dll NetShareEnum has this definition: NET_API_STATUS NetShareEnum( __in LPWSTR servername, __in DWORD level, __outLPBYTE *bufptr, __in DWORD prefmaxlen, __outLPDWORD entriesread, __outLPDWORD totalentries,

calling NetShareEnum win32api with ctypes

2008-08-27 Thread taghi
I want to call NetShareEnum, a function from netapi32.dll NetShareEnum has this definition: NET_API_STATUS NetShareEnum( __in LPWSTR servername, __in DWORD level, __outLPBYTE *bufptr, __in DWORD prefmaxlen, __outLPDWORD entriesread, __outLPDWORD totalentries,

Re: win32api not found?

2008-07-21 Thread norseman
Lamonte Harris wrote: Where can I get the win32api module? I been searching all day on google and nothing, i installed https://sourceforge.net/project/showfiles.php?group_id=78018 which requires win32api and its not found

Re: win32api not found?

2008-07-19 Thread Fuzzyman
On Jul 19, 8:45 pm, Michiel Overtoom <[EMAIL PROTECTED]> wrote: > On Saturday 19 July 2008 21:13:04 Lamonte Harris wrote: > > > Where can I get the win32api module? I been searching all day on google and > > nothing, i installed > >https://sourceforge.net/project/sho

Re: win32api not found?

2008-07-19 Thread Michiel Overtoom
On Saturday 19 July 2008 21:13:04 Lamonte Harris wrote: > Where can I get the win32api module? I been searching all day on google and > nothing, i installed > https://sourceforge.net/project/showfiles.php?group_id=78018 which requires > win32api and its not found... What are the ac

win32api not found?

2008-07-19 Thread Lamonte Harris
Where can I get the win32api module? I been searching all day on google and nothing, i installed https://sourceforge.net/project/showfiles.php?group_id=78018 which requires win32api and its not found... -- http://mail.python.org/mailman/listinfo/python-list

Re: Cannot start RPy - need win32api

2008-04-11 Thread tkpmep
Thanks a mill - works like a charm! -- http://mail.python.org/mailman/listinfo/python-list

Re: Cannot start RPy - need win32api

2008-04-11 Thread Mike Driscoll
When I go to the Python command line and type > > >>> from rpy import * > > I get the following error message: > > Traceback (most recent call last): > File "", line 1, in > from rpy import * > File "C:\Python25\lib\site-packages\rpy.py

Cannot start RPy - need win32api

2008-04-11 Thread tkpmep
rpy import * I get the following error message: Traceback (most recent call last): File "", line 1, in from rpy import * File "C:\Python25\lib\site-packages\rpy.py", line 88, in import win32api ImportError: No module named win32api >>> What on earth is win32

Re: X/Linux mouse_event (like in win32api)

2008-01-14 Thread Atila Olah
Thank you Jorgen. Your answer helped me a lot. -- http://mail.python.org/mailman/listinfo/python-list

Re: X/Linux mouse_event (like in win32api)

2007-12-02 Thread Jorgen Grahn
On Thu, 29 Nov 2007 01:59:20 -0800 (PST), Atila Olah <[EMAIL PROTECTED]> wrote: > Hello everyone. > I would like to be able to emit a mouse click on my xgl/compiz > desktop, like I used to do in Windows: ... > Is there a way to interact directly with the X server (or with the > kernel?) to simulate

X/Linux mouse_event (like in win32api)

2007-11-29 Thread Atila Olah
Hello everyone. I would like to be able to emit a mouse click on my xgl/compiz desktop, like I used to do in Windows: win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, x, y, 0) win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP, x, y, 0) I installed Python and pywin32 in wine and they both work,

Re: Shutting down windows using win32api

2007-04-11 Thread 人言落日是天涯,望极天涯不见家
On Apr 11, 7:49 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > On a whim, given the terseness of your post, I > cut-and-pasted your subject line into Google, > added "python" for good measure, and looked at > the results. > > I suggest you might do the same. Granted, maybe > this will raise more quest

Re: Shutting down windows using win32api

2007-04-11 Thread Tim Golden
On a whim, given the terseness of your post, I cut-and-pasted your subject line into Google, added "python" for good measure, and looked at the results. I suggest you might do the same. Granted, maybe this will raise more questions, but at least it shows willing :) TJG -- http://mail.python.org/

Shutting down windows using win32api

2007-04-11 Thread Sily Ady
- 8:00? 8:25? 8:40? Find a flick in no time with theYahoo! Search movie showtime shortcut.-- http://mail.python.org/mailman/listinfo/python-list

Re: good documentation about win32api ??

2006-12-01 Thread Roger Upole
.com/ASPN/docs/ASPNTOC-APYTH2.4.0) but it is > not very good and finally I had to turn to the newsgroups (it was very > nice). > > And the question is: ¿Anybody knows where can I find good > documentation about win32api? > > Thanks in advanced. The pywin32 package has a .chm

Re: good documentation about win32api ??

2006-12-01 Thread Thomas Heller
krishnakant Mane schrieb: > On 1 Dec 2006 09:56:09 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> http://msdn.microsoft.com covers the API itself, although you need to >> transliterate from the C code to python. > Exactly! that's where the problem lyes. > I am pritty well to do with wind

Re: good documentation about win32api ??

2006-12-01 Thread krishnakant Mane
On 1 Dec 2006 09:56:09 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > http://msdn.microsoft.com covers the API itself, although you need to > transliterate from the C code to python. Exactly! that's where the problem lyes. I am pritty well to do with windows API, I am an a good python progr

Re: good documentation about win32api ??

2006-12-01 Thread olsongt
docs/ASPNTOC-APYTH2.4.0) but it is > not very good and finally I had to turn to the newsgroups (it was very > nice). > > And the question is: ¿Anybody knows where can I find good > documentation about win32api? > > Thanks in advanced. > > ScnS. http://msdn.microso

Re: good documentation about win32api ??

2006-12-01 Thread Paul McGuire
"__schronos__" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] And the question is: ¿Anybody knows where can I find good documentation about win32api? There is the book, Python Programming on WIN32, by Mark Hammond. http://www.amazon.com/Python-Programming-WIN32

good documentation about win32api ??

2006-12-01 Thread __schronos__
d and finally I had to turn to the newsgroups (it was very nice). And the question is: ¿Anybody knows where can I find good documentation about win32api? Thanks in advanced. ScnS. -- http://mail.python.org/mailman/listinfo/python-list

"no module named win32api" using PyWin32-208

2006-06-27 Thread Mike
in"); m_engine.AddToPath("C:\\Python24"); m_engine.AddToPath("C:\\Python24\\lib\\site-packages"); m_engine.AddToPath("C:\\Python24\\lib\\site-packages\\win32"); m_engine.AddToPath("C:\\Python24\\lib\\site-packages\\win32\\lib");

Re: can't find win32api from embedded pyrun call

2006-06-20 Thread Jim
is); building with VS2003 did away with that. But that then led to the well-known problem with a FILE* where the app is using one msvcrt and the lib another. At some point in fixing these issues, the "cannot find win32api" went away. I now use this trick from a colleague which allows me

Re: can't find win32api from embedded pyrun call

2006-06-19 Thread Miki
Hello Jim, > // Py_Initialize(); > Py_InitializeEx(0); > PyRun_SimpleString("from win32com.client import *"); > > Here's what it does on the last line: > > File "D:\Python\Lib\site-packages\win32com\__init__.py", line 5, in ? >

can't find win32api from embedded pyrun call

2006-06-19 Thread Jim
\Python\Lib\site-packages\win32com\__init__.py", line 5, in ? import win32api, sys, ok ImportError: No module named win32api The same line runs fine in IDLE or at the command prompt. It also runs without complaint if I run a release version of the app. To build the debug version I had to b

Re: Win32api, pyHook, possibly win32com, not sure XD, thats why I'm posting

2006-03-04 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > Is there a way to hide a python instance from the Task Manager process > list? Try sony's rootkit. Or any other. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32api, pyHook, possibly win32com, not sure XD, thats why I'm posting

2006-03-03 Thread Michel Claveau
Hi! Rename Pythonw.exe like jtp.exe And... run: jtp.exe yourscript.pyw -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32api, pyHook, possibly win32com, not sure XD, thats why I'm posting

2006-03-03 Thread [EMAIL PROTECTED]
I'm really trying to figure out the overall extent with which python can interact with the windows system (curious person ;D). I can't seem to find documentation on it, so if anyone could point me to that... i know python can kill processes and return what processes are running, so i was just wonde

Re: Win32api, pyHook, possibly win32com, not sure XD, thats why I'm posting

2006-03-03 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Is there a way to hide a python instance from the Task Manager process > list? > And your reason for wanting to know would be... -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd www.holdenweb.com Love me, love my blog ho

Win32api, pyHook, possibly win32com, not sure XD, thats why I'm posting

2006-03-03 Thread [EMAIL PROTECTED]
Is there a way to hide a python instance from the Task Manager process list? -- http://mail.python.org/mailman/listinfo/python-list

Re: win32api .GetFileVersionInfo()

2005-03-24 Thread Peter Hansen
xytho33 wrote: I need to be able to programatically get the version info from a windows DLL preferably in the same format as what is displayed in the properties tab. [snip] You already posted this about forty minutes earlier and Dennis Lee Bieber wrote a reply a mere ten minutes later. Please be pa

win32api .GetFileVersionInfo()

2005-03-24 Thread xytho33
ogram "filevers.py" distributed in the win32api download that does exactly what I need. Unfortunately I get this error when I execute the script: C:\work>getfilever.py Traceback (most recent call last): File "C:\work\getfilever.py", line 8, in ? d=win32

Re: Win32api shellexecute Bshow

2005-02-16 Thread Josh
Thanks, I'll take a look at using GhostScript and GSPrint instead. Josh -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32api shellexecute Bshow

2005-02-16 Thread infidel
Acrobat is stupid like this. I haven't yet found a way to prevent it from launching a new window, so I gave up and went with GhostScript and GSPrint instead. Works fabulously. -- http://mail.python.org/mailman/listinfo/python-list

Win32api shellexecute Bshow

2005-02-16 Thread Josh
Hi All, I am trying to print a pdf file from python using the Win32api shellexecute method and am having a problem, or perhaps just a misunderstanding, with the bshow parameter. Am I correct to assume that if the bshow parm is set to 0, that the program will not show when launched? e.g