directpython-general Mailing List for DirectPython
Status: Inactive
Brought to you by:
hsalo
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
(3) |
Jun
(2) |
Jul
(5) |
Aug
(3) |
Sep
|
Oct
(2) |
Nov
|
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(2) |
Feb
(7) |
Mar
|
Apr
(2) |
May
|
Jun
(1) |
Jul
(5) |
Aug
(11) |
Sep
|
Oct
(3) |
Nov
(7) |
Dec
(5) |
2008 |
Jan
(4) |
Feb
|
Mar
|
Apr
(1) |
May
(3) |
Jun
|
Jul
(2) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(4) |
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
(3) |
27
|
28
(2) |
29
(1) |
30
(1) |
|
From: Heikki S. <ho...@gm...> - 2007-11-30 14:25:43
|
> -----Original Message----- > From: dir...@li... > [mailto:dir...@li...] > On Behalf Of Skepsis > Sent: 29. marraskuuta 2007 21:30 > To: dir...@li... > Subject: [DirectPython] Sending keys > > Hello, I just need a quick answer before proceeding further... > > Is it possible to send virtual key strokes with directpython > to a window so I can finish a voice control program i'm > writing in Pyhton? > > Cheers! > Adrian Smith > Hi, It is not supported by DirectPython, but you can do it if you have ctypes installed (Python 2.5 has it by default). See http://msdn2.microsoft.com/en-us/library/ms646310.aspx for MSDN documentation about SendInput(). It looks more complicated than it really is, but some basic ctypes tutorials should be enough to understand it if you are not familiar with C or C++. You need to declare some structures and understand what they represent. You probably only care about the INPUT and KEYBDINPUT structures, but you have to declare MOUSEINPUT and HARDWAREINPUT (because of the union in INPUT) altough you don't need to know much about those two. Alternatively you can use PostMessage() (with ctypes), but that is not reliable. But if you just hacking something together, it might be enough. Just don't use it in real production code. However, before you can use that you must figure out what your target window is. Get the handle by using FindWindow() (ctypes again) or something similar. You can also use Win32 Extensions for Python (win32all) to access these functions. It is easier, but you need to download additional packages. As you can see, there are many ways to archieve what you ask. Check them out before you decide. -- Heikki Salo |
From: Skepsis <sk...@bl...> - 2007-11-29 19:30:48
|
Hello, I just need a quick answer before proceeding further... Is it possible to send virtual key strokes with directpython to a window so I can finish a voice control program i'm writing in Pyhton? Cheers! Adrian Smith -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ |
From: Heikki S. <ho...@gm...> - 2007-11-28 22:22:20
|
> -----Original Message----- > From: dir...@li... > [mailto:dir...@li...] > On Behalf Of Alain Pointdexter > Sent: 28. marraskuuta 2007 13:29 > To: dir...@li... > Subject: [DirectPython] A huge problem with DirectPython (continued) > > The suggestions about copying DLL's are good but it does not > solve my problem: where can i get hold of those files. There > are only 2 installers: a .exe and a source distribution with > cpp files. In no way am i able to grab the necessary files. > Another remark: my system32 directory contains the following > files already: > d3d9.dll > d3d8.dll > d3dim.dll > d3dxof.dll > d3dramp.dll > d3drm.dll > d3d8thk.dll > d3dim700.dll > d3dpmesh.dll > but no d3dx9_30.dll > > Anyway, i believe you got my message. Further adoption > necessitates an easy way for casual users to experiment. > > Best regards > > Alain > Well, the simplest way I can think of is to install DirectPython into a computer where you have admin access (home, friend, co-worker etc.). Then copy the files from there and create your .zip "installer" using those files or move them around using some other way. Not very elegant, but you only have to do it once. All those .dll's you listed except "d3dx9_30.dll" are core Direct3D 9 files which are present in all system which have DirectX 9.0c installed. Remember, you only need the "d3d.pyd" and "d3dx9_30.dll". The latter is not often present on many systems, it is put there by the installer. You can also find "d3dx9_30.dll" from the net (www.dll-files.com for example), but make sure that the .dll really is what it says it is. Trojans can be nasty things. I have also modified the installer to allow non-admin install, but that only applies to future releases. -- Heikki Salo |
From: Alain P. <ala...@ya...> - 2007-11-28 11:28:46
|
The suggestions about copying DLL's are good but it does not solve my problem: where can i get hold of those files. There are only 2 installers: a .exe and a source distribution with cpp files. In no way am i able to grab the necessary files. Another remark: my system32 directory contains the following files already: d3d9.dll d3d8.dll d3dim.dll d3dxof.dll d3dramp.dll d3drm.dll d3d8thk.dll d3dim700.dll d3dpmesh.dll but no d3dx9_30.dll Anyway, i believe you got my message. Further adoption necessitates an easy way for casual users to experiment. Best regards Alain _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail |
From: Heikki S. <ho...@gm...> - 2007-11-26 19:20:41
|
> -----Original Message----- > From: dir...@li... > [mailto:dir...@li...] > On Behalf Of Alain Pointdexter > Sent: 26. marraskuuta 2007 16:46 > To: dir...@li... > Subject: [DirectPython] A huge problem with DirectPython > > Hello, > > I am new to DirectPython but i have a huge problem that > actually prevents me from using it at all. > The problem is: installing DirectPython requires > administrator rights on my machine, which i don't have (this > is a machine at work). > I believe this is a showstopper for most people who would > like to use DirectPython professionally. > Is there any change to see a DirectPython installer that > would install for the current user as a fallback. > > Best regards > > Alain > Hi, As David noted, it is possible to just copy certain files to a place where they are found by Python and Windows DLL loader. Administrative privileges are needed because certain D3DX dll's are installed into the system32 folder. However, this step can be ignored if the dll's are already installed (by another application or from an installer provided by Microsoft). I will list here what it needed. Absolute minimum requirements (for DirectPython 0.9): -Direct3D 9.0c installed. No way to ignore this. -D3DX dll (see d3dc._d3dx9dll, currently "d3dx9_30.dll"). This is in system32, but you can also put it in the same directory with d3d.pyd -d3d.pyd (the main DirectPython runtime .dll) So, you actually only need to distribute two files. However, the D3DX .dll should not usually be distributed like that (use the installer in directpy\redist - all those files in there really install only one .dll), but you can if you have no choice. You can also try to get your system administrator to run the setup, as it is signed and approved by Microsoft. The easiest way to make a custom "installer" is probably just to create a .zip file which contains the tree structure and required files (you can drop samples or anything else you don't need). Then unzip it into the PythonXX/Lib/site-packages/directpy-folder (or any other folder, just make sure that is it in sys.path). The real .exe installer does nothing very important, so you can safely ignore it. In short, put "d3dx9_30.dll" and "d3d.pyd" into a directory which is in sys.path. Then try to run a Python script: "import d3d" It should work. Then just add what you need (like d3dc.py, d3dx.py etc.). I can (and probably will) change the installer to work with normal users, but the D3DX issue will still remain. But at least it allows people to solve it in a way which suits them best. -- Heikki Salo |
From: David <dp...@sh...> - 2007-11-26 15:36:30
|
Hi, I had that problem also, so I went to a computer with Direct Python installed and copied all the dll files it needs and all the modules (and the directpy.pth file) for directpython in the site-packages folder (inside the Lib Folder of python's install dir), then put the dlls into the dlls folder in python's dir on the target computer, and the other modules (and the directpy.pth file) into the site-packages dir on the target computer. I probably took more dlls than were needed but when I did it I was in a rush. Im sure someone can make an install, but this a quick solution. Some of the dlls you need are in the system folder, and since python loads dlls from its dlls folder as well the system folders you it works to copy them to python rather than the system folder (which you might not be able to do anyways). Good Luck David >Hello, > >I am new to DirectPython but i have a huge problem >that actually prevents me from using it at all. >The problem is: installing DirectPython requires >administrator rights on my machine, which i don't have >(this is a machine at work). >I believe this is a showstopper for most people who >would like to use DirectPython professionally. >Is there any change to see a DirectPython installer >that would install for the current user as a fallback. > >Best regards > >Alain > > > _____________________________________________________________________________ >Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2005. >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >_______________________________________________ >directpython-general mailing list >dir...@li... >https://lists.sourceforge.net/lists/listinfo/directpython-general > > > > |
From: Alain P. <ala...@ya...> - 2007-11-26 14:46:19
|
Hello, I am new to DirectPython but i have a huge problem that actually prevents me from using it at all. The problem is: installing DirectPython requires administrator rights on my machine, which i don't have (this is a machine at work). I believe this is a showstopper for most people who would like to use DirectPython professionally. Is there any change to see a DirectPython installer that would install for the current user as a fallback. Best regards Alain _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail |