[python-win32] manual for pywin32

2017-04-28 Thread Michael C
Hi all, is there a manual for this module? I can't seem to find any! ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

[python-win32] win32gui.SetPixel error

2017-04-30 Thread Michael C
fill the radar scan points with red.py", line 66, in win32gui.SetPixel(desktop_dc, x,y, rgb ) pywintypes.error: (0, 'SetPixel', 'No error message is available') Hi all: I am trying to paint a few pixels in the color of red. However, when I ran this win32gui.SetPixel(desktop_dc, x,y

[python-win32] Screenshot a given window instead of the whole desktop

2017-04-30 Thread Michael C
Hi all: I have my own code that samples pixel colour, https://pastebin.com/4EMd765h and now I am trying to add the feature of saving the Device Context to a .bmp file, so I found this code https://books.google.ca/books?id=9MS9BQAAQBAJ however there is one problem: The book example screenshots

Re: [python-win32] win32gui.SetPixel error

2017-04-30 Thread Michael C
Oh I found out my code accidentally give negative values to the function. :( Thanks all! On Sat, Apr 29, 2017 at 1:10 PM, Michael C wrote: > fill the radar scan points with red.py", line 66, in > win32gui.SetPixel(desktop_dc, x,y, rgb ) > pywintypes.error: (0, 'SetPixel&

Re: [python-win32] Screenshot a given window instead of the whole desktop

2017-04-30 Thread Michael C
I solved that problem already, i sould have told everyone here, sorry On Sun, Apr 30, 2017 at 11:13 PM Tim Roberts wrote: > On Apr 28, 2017, at 5:40 PM, Michael C > wrote: > > > I have my own code that samples pixel colour, > https://pastebin.com/4EMd765h > > and no

[python-win32] VirtualQueryEx/ReadProcessMemory

2017-10-16 Thread Michael C
Hi all, I am working on my own memory scanner. It uses Windows API, VirtualQueryEX and ReadProcessMemory. I am not sure I put down the following properly: I am sure Process = Kernel32.OpenProcess(PROCESS_QUERY_INFORMATION|PROCESS_VM_READ, False, PID) ran properly, because it didn't return a 0.

Re: [python-win32] VirtualQueryEx/ReadProcessMemory

2017-10-16 Thread Michael C
r n in hit_pool: readprocessmemory(process, n, ctypes.byref(buffer), 8, ctypes.byref(nread)) Since the way I am reading the memory is not correct, could you tell me the correct way to do it? Thanks! On Mon, Oct 16, 2017 at 2:54 PM, Tim Roberts wrote: > Michael C wrote: >

Re: [python-win32] VirtualQueryEx/ReadProcessMemory

2017-10-16 Thread Michael C
27;increment by one' approach, actually luck out and get that value in it's actual position? On Mon, Oct 16, 2017 at 4:39 PM, Michael C wrote: > >>>Did you acquire the SeDebugPrivilege before calling? > > Eh, no. I don't know what that is! How do I get it? > &g

Re: [python-win32] PyWin32 API

2017-10-19 Thread Michael C
I am wrestling with my life right now, but I'll post more hopefully by tomorrow. Also, I am trying to write my own 'Cheat Engine' or just a memory scanner in general, I am just looking for simple values such as a int or a double. Thanks for reponding! On Thu, Oct 19, 2017 at 4:58 PM, Tim Roberts

Re: [python-win32] PyWin32 API

2017-10-20 Thread Michael C
oops! Ok, I'll take a look, thanks! On Fri, Oct 20, 2017 at 11:16 AM, Tim Roberts wrote: > Michael C wrote: > > > > I am wrestling with my life right now, but I'll post more hopefully by > > tomorrow. > > > > Also, I am trying to write my own &#x

[python-win32] Quest for memory scanner

2017-10-20 Thread Michael C
Hello Tim, everyone: I actually have a semi-working scanner, but I can't figure out why it doesn't return nearly as many addresses as Cheat Engine does.(for scan run #1) Let's say I am scanning the Calculator that comes with Windows. Please have a look! import ctypes from ctypes.wintypes import

Re: [python-win32] Quest for memory scanner

2017-10-20 Thread Michael C
oint me to something? Thanks On Fri, Oct 20, 2017 at 12:54 PM, Michael C wrote: > Hello Tim, everyone: > > I actually have a semi-working scanner, but I can't figure out why it > doesn't return > nearly as many addresses as Cheat Engine does.(for scan run #1) Let's