http://imgur.com/a/CwA2G
I don't know to do this with math :(
On Sun, Aug 13, 2017 at 1:07 PM, Michael C <mysecretrobotfact...@gmail.com>
wrote:
> Hi all:
>
> I am trying to formulate a "path-finding" function, and I am stuck on this
> problem:
>
> P
> >
> >
> > pic
> > http://imgur.com/a/CwA2G
> >
> > On Mon, Aug 14, 2017 at 8:55 AM, Alan Gauld via Tutor <tutor@python.org
> > <mailto:tutor@python.org>> wrote:
> >
> > On 13/08/17 21:07, Michael C wrote:
> >
> >
Hi all:
I am trying to formulate a "path-finding" function, and I am stuck on this
problem:
Please look at the picture attached: Those dots are coordinates of (x,y),
and this tree can be thought of as a list of tuples, with each tuple
consisting of (x,y). Now I am trying to make a function go
pe it helps !
>
> Abdur-Rahmaan Janhangeer,
> Mauritius
> abdurrahmaanjanhangeer.wordpress.com
>
> On 14 Aug 2017 02:28, "Michael C" <mysecretrobotfact...@gmail.com> wrote:
>
> Hi all:
>
> I am trying to formulate a "path-finding" function, and I am stuck on th
never mind, I forgot to put 'self' in the method definition!
class mahschool:
def print(self):
print('Say something')
a = mahschool()
a.print()
On Sun, Jul 23, 2017 at 1:24 PM, Michael C <mysecretrobotfact...@gmail.com>
wrote:
> class mahschool:
>
thanks!
On Sun, Jul 23, 2017 at 5:35 PM, Danny Yoo <d...@hashcollision.org> wrote:
> On Sun, Jul 23, 2017 at 1:24 PM, Michael C
> <mysecretrobotfact...@gmail.com> wrote:
> > class mahschool:
> > def print():
> > print('Say something')
>
>
&
class mahschool:
def print():
print('Say something')
a = mahschool()
a.print()
With this, I get this error:
Traceback (most recent call last):
File "test.py", line 8, in
a.print()
TypeError: print() takes 0 positional arguments but 1 was given
What did I do wrong?
Hi all, I am trying to write a script to exit itself when ESC is pressed. I
have found several answers regarding it such as this:
http://stackoverflow.com/questions/43709710/push-esc-
to-terminate-python-script?noredirect=1#comment74464169_43709710
But those only work when the program goes to
Hi all, I found out that one way to press ESC to kill the script was to use
my previous
script language, AutoHotKey and this is how it works:
AutoHotKey code
## function that kills the window with title '*Python 3.6.1 Shell*'
kill()
{
WinKill, *Python 3.6.1 Shell*
}
## When ESC is pressed,
from PIL import Image
from PIL import ImageGrab
# takes the screenshot
screenshot = ImageGrab.grab()
# display the screenshot
screenshot.show()
# save the screenshot
screenshot.save("\test\missed.png")
This is my current code, using Python Image Library!
What I would like to get help with is:
t 8:24 PM, Michael C
> <mysecretrobotfact...@gmail.com> wrote:
> > from PIL import Image
> >
> > im = Image.open('pic.bmp')
> > im.show()
> >
> > I ran this code and it not only opened the picture in paint, which is
> what
> > I want, but it al
Hi all,
How do I display a picture?
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
in fact, when I ran this:
import os
os.system("mspaint 1.bmp")
It also opened a cmd.exe window and the script wouldn't continue until I
closed the cmd window!
On Wed, May 17, 2017 at 1:24 PM, Michael C <mysecretrobotfact...@gmail.com>
wrote:
> from PIL import Image
&g
from PIL import Image
im = Image.open('pic.bmp')
im.show()
I ran this code and it not only opened the picture in paint, which is what
I want,
but it also opens a CMD.exe console window! how do I prevent that from
happening?
thanks!
___
Tutor
Hi all,
How do I move files to a designated folder or copy/paste?
thanks!
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
when I run this, while it's called test.pyw, this pops up
from PIL import Image
im = Image.open('1.bmp')
im.show()
[image: Inline image 1]
On Wed, May 17, 2017 at 6:51 PM, eryk sun <eryk...@gmail.com> wrote:
> On Wed, May 17, 2017 at 10:33 PM, Michael C
> <mysecretrobotfa
via Tutor <tutor@python.org>
wrote:
> On 18/05/17 00:24, Michael C wrote:
>
> > or to find another way to display the picture without using python image
> > library.
>
>
> There are lots of ways it depends on what you actually want
> to do with the image. Fo
Ok!
On Wed, May 17, 2017 at 4:11 PM, Alan Gauld via Tutor <tutor@python.org>
wrote:
> On 17/05/17 20:09, Michael C wrote:
>
> > How do I move files to a designated folder or copy/paste?
>
> copy/paste is a UI specific thing, you don't do that in Python code.
> What yo
.
so i am trying find either a way to prevent that from poping up or to
close it automatically somehow
or to find another way to display the picture without using python image
library.
On Wed, May 17, 2017 at 4:13 PM, Alan Gauld via Tutor <tutor@python.org>
wrote:
> On 17/05/17 21:33,
t 3:05 PM, Peter Otten <__pete...@web.de> wrote:
> Michael C wrote:
>
> > I am trying to remove incorrect entries of my dictionary.
> > I have multiple keys for the same value,
> >
> > ex,
> > [111]:[5]
> > [222]:[5]
> > [333]:[5}
>
Hi all:
I am running a code to examine another window's activities, while I use
that window to do stuff. However, the python shell keeps grabbing the
Topmost position so what
I do on the other window, the one that has to stay on top the whole time,
keeps getting into the shell window.
Is making
nvm, the problem went away on its own :)
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
os.startfile('1.bmp')
works like a charm!
Now I need to figure out how to close this window once I finish with it!
On Thu, May 18, 2017 at 8:14 AM, Michael C <mysecretrobotfact...@gmail.com>
wrote:
> Oh I have been using Pillow 4.0 the whole time alright, sorry I forgot to
Oh I have been using Pillow 4.0 the whole time alright, sorry I forgot to
mention it.
On Thu, May 18, 2017 at 1:55 AM, Alan Gauld via Tutor <tutor@python.org>
wrote:
> On 18/05/17 02:58, Michael C wrote:
> > when I run this, while it's called test.pyw, this pops up
> >
>
Did you go into the source code of PIL/Pillow? Awesome!!!
On Wed, May 17, 2017 at 7:52 PM, eryk sun <eryk...@gmail.com> wrote:
> On Thu, May 18, 2017 at 1:58 AM, Michael C
> <mysecretrobotfact...@gmail.com> wrote:
> > when I run this, while it's called test.pyw, this
hi all:
I have a function to return (x,y) value, but sometimes it would naturally
unable to return those 2 values properly. I know what recursion is, and I
think all I got to do is to call this function a 2nd time and the problem
would go away.
How do I do recursion? The function basically look
hi all:
I have a code that takes about 20 seconds to complete, but I also need to
response
to events (the appearance of red dots on a canvas) so I could place a few
lines to
check for this condition like this
def do_stuff:
blah
blah
check()
blah
blah
blah
the values from the thread, say x,y,d in
order to restart the thread.
loop.
Therefore, how do I get a few values from a few variables from the thread
and then close it?
Threading is very new to me, so I have to be very diligent.
Thanks!
On Thu, May 25, 2017 at 11:06 AM Michael C <mysecretrobotf
Hi all:
I tried to google for tutorials of threading, but they are all equally
confusing.
Does someone know of a good page or a book that talk about threading?
thanks!
___
Tutor maillist - Tutor@python.org
To unsubscribe or change
message received, i ll take a look tomorrow asap.
thanks for replying!!!
On Thu, May 25, 2017 at 3:03 PM, Cameron Simpson <c...@zip.com.au> wrote:
> On 25May2017 11:52, Michael C <mysecretrobotfact...@gmail.com> wrote:
>
>> Right now all i need is to grab 3 values
list(read_dictionary) converts the dictionary into a list right? How can
you save the list as a dictionary?
Thanks!
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
I am trying to remove incorrect entries of my dictionary.
I have multiple keys for the same value,
ex,
[111]:[5]
[222]:[5]
[333]:[5}
and I have found out that some key:value pairs are incorrect, and the best
thing to do
is to delete all entries who value is 5. So this is what I am doing:
import
I'll use it when I get to it! Thanks!
For now, I use this, as suggested by eryk sun:
os.startfile('1.bmp')
it doesn't pop the window.
Thanks Alan!
On Thu, May 18, 2017 at 10:06 AM, Alan Gauld via Tutor <tutor@python.org>
wrote:
> On 18/05/17 16:43, Michael C wrote:
> > os.s
<tutor@python.org>
wrote:
> On 22/05/17 17:11, Michael C wrote:
>
> > I have a function to return (x,y) value, but sometimes it would naturally
> > unable to return those 2 values properly. I know what recursion is, and I
> > think all I got to do is to call this funct
no i don't have a way, it just hasn't happened yet LOL
On Mon, May 22, 2017 at 10:18 PM, Peter Otten <__pete...@web.de> wrote:
> Michael C wrote:
>
> > oh ya, my function does in fact take no input and doesn't change
> anything,
> > and all i wanted to was to call i
I am running this code so I can do some image manipulation with them.
The thing is, I have a lot of pictures to go through, so I can't type the
file names
one by one in the code. However, the order of the files to be processed
doesn't
matter, so getting them in a random fashion is alright!
How do
i ll look into it! thx for now!
On Tue, May 16, 2017 at 12:51 PM, Alan Gauld via Tutor <tutor@python.org>
wrote:
> On 16/05/17 19:49, Michael C wrote:
> > I am running this code so I can do some image manipulation with them.
> > The thing is, I have a lot of pictures to g
let me try that! thanks!
On Thu, Jun 1, 2017 at 10:52 AM, Jerry Hill <malaclyp...@gmail.com> wrote:
> On Thu, Jun 1, 2017 at 11:30 AM, Michael C
> <mysecretrobotfact...@gmail.com> wrote:
> > Oh i get it alright, however in my code I have to push the W button like
ihave to look at this tomorrow, thanks for the reply!
On Thu, Jun 1, 2017 at 6:18 PM Alan Gauld via Tutor <tutor@python.org>
wrote:
> On 01/06/17 16:30, Michael C wrote:
> > Oh i get it alright, however in my code I have to push the W button like
> > this:
> >
>
not responsive enough
for this reason.
Is there a way to pause/kill the thread?
thanks!
On Thu, May 25, 2017 at 7:47 PM, Michael C <mysecretrobotfact...@gmail.com>
wrote:
> message received, i ll take a look tomorrow asap.
>
> thanks for replying!!!
>
> On Thu, May 25, 2017 at 3:03 P
Hi all:
is tkinter still being actively maintained? I only had to ask about this
because I have never looked stuff like this up before.
Is it ok to develop using it, is it going to be dropped in the near future?
thanks!
___
Tutor maillist -
holy cow
On Mon, May 1, 2017 at 8:02 PM eryk sun <eryk...@gmail.com> wrote:
> On Mon, May 1, 2017 at 6:28 PM, Michael C
> <mysecretrobotfact...@gmail.com> wrote:
> > Hi all, I found out that one way to press ESC to kill the script was to
> use
> > my previou
R/mah
scanner/with_eryk_sun_s_help_peace by peace.py", line 55, in
Kernel32.GetSystemInfo(LPSYSTEM_INFO)
ctypes.ArgumentError: argument 1: : Don't know how to
convert parameter 1
thanks for reading!
On Thu, Oct 5, 2017 at 1:13 PM, eryk sun <eryk...@gmail.com> wrote:
> On Thu, Oct 5, 2017 at
Oct 6, 2017 at 12:03 PM, eryk sun <eryk...@gmail.com> wrote:
> On Fri, Oct 6, 2017 at 7:43 PM, Michael C
> <mysecretrobotfact...@gmail.com> wrote:
> > Sorry but I dont understand this line:
> >
> > mbi = MEMORY_BASIC_INFORMATION()
> >
>
, PMEMORY_BASIC_INFORMATION, SIZE_T)
thanks !
On Thu, Oct 5, 2017 at 1:13 PM, eryk sun <eryk...@gmail.com> wrote:
> On Thu, Oct 5, 2017 at 8:27 PM, Michael C
> <mysecretrobotfact...@gmail.com> wrote:
> >
> > How do I see the values of each field? Th
update:
I should have put down buffer = ctypes.c_double() instead of buffer =
ctypes.c_double.
Sorry all
On Sat, Oct 7, 2017 at 8:18 PM, Michael C <mysecretrobotfact...@gmail.com>
wrote:
> I am following some examples online such as this one:
> https://social.msdn.microsoft.com/Fo
Hi all:
I am working on a memory scanner, and the source code and output is as
following:
Now, I know why my buffer from read process memory looks like values such
as "67108864" ; it's because I read into the buffer entire chunk of memory
at a time, because I fed read process memory this:
Or to put it better, I think, it's
How do I set up ReadProcessMemory, so that it returns a double instead of
129819721.
On Sat, Oct 7, 2017 at 2:00 PM, Michael C <mysecretrobotfact...@gmail.com>
wrote:
> Hi all:
>
> I am working on a memory scanner, and the source
you to look at:
DWORD read = 0;
LPVOID buffer = 0
(ReadProcessMemory(hackProcess, (void*)start, , sizeof(int), )
So, what's the Python equivalent statements for sizeof(int) ?
On Sat, Oct 7, 2017 at 7:38 PM, Michael C <mysecretrobotfact...@gmail.com>
wrote:
> Oh I am trying to
at 6:58 PM, Mats Wichmann <m...@wichmann.us> wrote:
> it might help if you mention what you are trying to do. if it is
> forensics, there a bunch of python tools in that area. your problem may
> already have solutions you could use.
>
> On October 7, 2017 3:00:25 PM MDT, Michae
Hi all:
I have the following code, and somehow I must have fed the read process
Memory incorrectly. what the code does is to check a region of memory to
see
whether or not it can be scanned.
mbi.Protect == PAGE_READWRITE and mbi.State == MEM_COMMIT
If this is true,then it proceeds to scan the
I'll explain better when I get on a pc.
On Oct 8, 2017 12:18 PM, "Michael C" <mysecretrobotfact...@gmail.com> wrote:
> This is the red part
> index = current_address
> end = current_address + mbi.RegionSize
>
> while index < end:
>
lue comparison to be implemented.
pass
else:
raise ctypes.WinError(ctypes.get_last_error())
index += 1
On Oct 8, 2017 12:16 PM, "Mats Wichmann" <m...@wichmann.us> wrote:
> On 10/08/2017 11:20 AM, Michael C wrote:
&g
Is there a module that does this for me?
If it exists, how do I find it?
thanks
On Tue, Oct 3, 2017 at 5:04 PM, Michael C <mysecretrobotfact...@gmail.com>
wrote:
> i see i see.
>
> On Tue, Oct 3, 2017 at 4:50 PM, Alan Gauld via Tutor <tutor@python.org>
> wrote:
>
>
First of all, thanks for the reply.
How do I see the values of each field? This doesn't work.
print(PMEMORY_BASIC_INFORMATION.Protect)
thanks!
On Thu, Oct 5, 2017 at 11:34 AM, eryk sun <eryk...@gmail.com> wrote:
> On Tue, Oct 3, 2017 at 10:30 PM, Michael C
> <mysecretrobotfa
ah, i am bummed completely haha.
Is there a way to tell which parts a variables so I can scan it?
Maybe you could point me to some reading materials?
thanks :)
On Mon, Oct 16, 2017 at 4:48 PM, Alan Gauld via Tutor <tutor@python.org>
wrote:
> On 16/10/17 21:04, Michael C wrote:
>
' approach, actually luck out and get that value in it's
actual position?
On Mon, Oct 16, 2017 at 4:53 PM, Michael C <mysecretrobotfact...@gmail.com>
wrote:
> ah, i am bummed completely haha.
>
> Is there a way to tell which parts a variables so I can scan it?
> Maybe you coul
Now, from what I have been reading, it seems there is a better way to do it,
for instance, a for loop.
for(start,finish, 8)
why 8? because double begins at exact 0 or multiple of 8 bytes, right?
On Thu, Oct 12, 2017 at 6:54 PM, Michael C <mysecretrobotfact...@gmail.com>
wrote:
> Here is
Hi all:
I don't understand this part about the memory:
if I used VirtualQueryEx to find out if a region of memory is ok to scan,
and it
says it's ok, are the values in the region arranged like this:
short,int,double,long,char, double, short in
as in, random?
I am asking this because, if
do it,
for instance, a for loop.
for(start,finish, 8)
why 8? because double begins at exact 0 or multiple of 8 bytes, right?
On Sun, Oct 8, 2017 at 4:46 PM, Alan Gauld via Tutor <tutor@python.org>
wrote:
> On 08/10/17 20:18, Michael C wrote:
> > This is the red part
> >
this in a
while loop with start += 1
so in the last 7 bytes, I'd be reading past the end of this memory chunk.
Is this right?
On Thu, Oct 12, 2017 at 6:54 PM, Michael C <mysecretrobotfact...@gmail.com>
wrote:
> Here is my question about the memory:
>
> So I have a base address of a chunk
Hi all, I have a few questions about memory scanning!
The following code attempts to print out all addresses whose value is
int(-143)!
1. I am using a for loop to go through all the addresses! Is this the right
thing to do?
2. I feed the read process memory function with hex(i), correct?
3. I am
Hi all, after 1 week of on and off hacking, I realized I simply don't know
enough about how memory works fundamentally!
Could you point me to a source of information about all the things someone
should know before he starts writing a memory scanner? Attached is my
current code, which doesn't
Hi all:
I am trying to create SYSTEM_INFO structure and MEMORY_BASIC_INFORMATION
structure
I think there are modules for this purpose? Is it the ctypes.wintypes?
if so, please point me to a documentation for it.
Thanks!
___
Tutor maillist -
i see i see.
On Tue, Oct 3, 2017 at 4:50 PM, Alan Gauld via Tutor <tutor@python.org>
wrote:
> On 03/10/17 22:30, Michael C wrote:
>
> > I am trying to create SYSTEM_INFO structure and MEMORY_BASIC_INFORMATION
> > structure
> >
> > I thin
like this?
buffer = ctypes.byref(ctypes.create_string_buffer(4))
On Fri, Oct 6, 2017 at 1:55 PM, eryk sun <eryk...@gmail.com> wrote:
> On Fri, Oct 6, 2017 at 9:12 PM, Michael C
> <mysecretrobotfact...@gmail.com> wrote:
> >
> > How do I create a buffer, or rathe
is: ',buffer)
else:
raise ctypes.WinError(ctypes.get_last_error())
On Fri, Oct 6, 2017 at 2:06 PM, Michael C <mysecretrobotfact...@gmail.com>
wrote:
> like this?
>
> buffer = ctypes.byref(ctypes.create_string_buffer(4))
>
> On Fri, Oct 6, 2017 at 1:55 PM, eryk sun <
s.byref(mbi),ctypes.sizeof(mbi))
##
##if mbi.Protect == PAGE_READWRITE and mbi.State == MEM_COMMIT :
##print(current_address)
##print('Both are true')
##
##
##current_address += mbi.RegionSize
On Fri, Oct 6, 2017 at 3:29 PM, eryk sun <eryk...@gmail.com> wrote:
>
(mbi.BaseAddress)
TypeError: byref() argument must be a ctypes instance, not 'int'
On Fri, Oct 6, 2017 at 2:53 PM, eryk sun <eryk...@gmail.com> wrote:
> On Fri, Oct 6, 2017 at 10:26 PM, Michael C
> <mysecretrobotfact...@gmail.com> wrote:
> >
> > base = mbi.BaseAddre
Sorry about asking these super obvious little things, I am actually a 1st
student, but I acing my programming 101 at the moment lol
On Thu, Oct 5, 2017 at 12:27 PM, Michael C <mysecretrobotfact...@gmail.com>
wrote:
> First of all, thanks for the reply.
>
>
> How do I see the va
thank for replying, but I am toast, so I'll reply tomorrow,
thanks!
On Sun, Oct 8, 2017 at 4:46 PM, Alan Gauld via Tutor <tutor@python.org>
wrote:
> On 08/10/17 20:18, Michael C wrote:
> > This is the red part
> > index = current_address
> > end = curre
Hi all!
My project needs to use MEMORY_BASIC_INFORMATION() and SYSTEM_INFO()
structures, and previously I thought there wasn't a way
(thanks to ErykSun, who wrote it for me, which I have been using)
Now I found out someone actually wrote a long time ago, so all I have to do
is to download and
cool stuff!
On Tue, Oct 17, 2017 at 2:17 AM, Alan Gauld via Tutor <tutor@python.org>
wrote:
> On 17/10/17 01:02, Michael C wrote:
>
> > that is, one number, can be truncated and exist in multiple locations
> like
> > this
> >
> > double = 12345678
> >
the program you want
> to scan in memory, depending on the compiler settings the memory layout
> could have changed, or rather not be what you expected due to packing and
> alignment.
>
> Probably not the answer you were hoping for but I hope this helps.
>
> --
> Jame
Sorry I don't understand your suggestion.
Use "ctypes.CDLL" and "ctypes.WinDLL"
this works,
mydll = cdll.LoadLibrary('test.dll')
print(mydll.sum(3,2))
and this doens't
mydll = cdll('test.dll')
print(mydll.sum(3,2))
What's the syntax of what you suggested?
Thanks
On Mon, May 7, 2018 at 3:15
75 matches
Mail list logo