Python Forum
getting windows title and keystrokes !!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getting windows title and keystrokes !!
#5
thank u for help ... but im trying to learn threading i write this simple code but its not working its just run one function !!
code :
import threading
import time


def qan(hey):
    while True:

        d = hey + 1
        print d
        time.sleep(1)


def printd(printme):
    while True:
        print printme + "\n"
        time.sleep(1)


t1 = threading.Thread(target=qan, args=(1,))
t2 = threading.Thread(target=printd, args=("hey",))
t2.start()
t1.start()







 
can i know where is the problem in my code ?

Output:
hey 2 2 hey 2hey 2
Reply


Messages In This Thread
RE: getting windows title and keystrokes !! - by evilcode1 - Nov-22-2018, 05:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Thoughts on interfacing with a QR code reader that outputs keystrokes? wrybread 1 1,491 Oct-08-2021, 03:44 PM
Last Post: bowlofred
  check if the windows title chnaged ! evilcode1 2 2,988 Nov-12-2018, 10:42 AM
Last Post: evilcode1
  Python script runs on startup but does not register keystrokes. mericanpi 3 3,472 Sep-07-2018, 02:58 PM
Last Post: mericanpi
  How to change font size of chart title and axis title ? thrupass 5 15,616 Mar-30-2018, 04:02 PM
Last Post: DrFunn1
  trying to get the keystrokes values to file rwahdan 2 3,978 Jul-14-2017, 06:53 PM
Last Post: rwahdan

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020