ihave to look at this tomorrow, thanks for the reply!
On Thu, Jun 1, 2017 at 6:18 PM Alan Gauld via Tutor
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:
> >
> > import pyautogui
> > import
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:
>
> import pyautogui
> import time
>
> pyautogui.keyDown('w')
> time.sleep(2)
> pyautogui.keyUp('w')
So this emulates a user pressing the w key for 2 seconds.
What's not clear
let me try that! thanks!
On Thu, Jun 1, 2017 at 10:52 AM, Jerry Hill wrote:
> On Thu, Jun 1, 2017 at 11:30 AM, Michael C
> wrote:
> > Oh i get it alright, however in my code I have to push the W button like
> > this:
> >
> > import
On Thu, Jun 1, 2017 at 11:30 AM, Michael C
wrote:
> Oh i get it alright, however in my code I have to push the W button like
> this:
>
> import pyautogui
> import time
>
> pyautogui.keyDown('w')
> time.sleep(2)
> pyautogui.keyUp('w')
...
> theoretically deals
Oh i get it alright, however in my code I have to push the W button like
this:
import pyautogui
import time
pyautogui.keyDown('w')
time.sleep(2)
pyautogui.keyUp('w')
while the example you gave:
def fn():
global run_me
while run_me:
... do some work ...
and then elsewhere you
message received, i ll take a look tomorrow asap.
thanks for replying!!!
On Thu, May 25, 2017 at 3:03 PM, Cameron Simpson wrote:
> On 25May2017 11:52, Michael C wrote:
>
>> Right now all i need is to grab 3 values from 3 variables before
On 25May2017 11:52, Michael C wrote:
Right now all i need is to grab 3 values from 3 variables before killing a
thread, like this:
def stuff():
do stuff,
get values, (x,y,d)
# main code
startthread(stuff(), blah)
# if else need to sleep or kill the thread,
Right now all i need is to grab 3 values from 3 variables before killing a
thread, like this:
def stuff():
do stuff,
get values, (x,y,d)
# main code
startthread(stuff(), blah)
# if else need to sleep or kill the thread, and because I'll restart the
thread later, I'd like to get the
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