Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Welcome to the CS 1064 Text Editor. open example .txt Abbott You throw the ball

ID: 3828019 • Letter: W

Question

Welcome to the CS 1064 Text Editor. open example .txt Abbott You throw the ball to first base Costello: Then who gets it? Abbott Naturally. Costello: Naturally move 45 Abbott You throw the ball to first base. Costello: Then who gets it? Abbott Naturally Costello: Naturally move 49 Abbott You throw the ball to first base Costello: Then who gets it? Abbott Naturally Costello Naturally Sera Se Abbott You throw the ball to first base Costell: Then who gets it? 0: 41 I l 4 2 69 I 70 88 I 89 109 I 0 411 I 42 69 I 70 88 89 109 I 0: 41 I l 42: 69 I I 70 88 I 89 109 41 I 42 68 I

Explanation / Answer

import win32api

import sys

import time

import win32con

if (len(sys.argv) < 2):

            print "Movement of cusor in string in certain speed"

            sys.exit()

//the cursor will traverse through the string

for c in "string"

#do traversal with c

current = win32api.GetCursorPos()

bx = cx = current[0]

dy = ey = current[1]

ff = int(sys.argv[1])

gg = int(sys.argv[2])

hh = vy = int(sys.argv[3])

print "postion changing", ff, gg, "with", h, "with the speed"

print "Press 'q' to quit"

last = time.time()

while(True):

            if win32api.GetAsyncKeyState(ord('Q')):

                        sys.exit()

                       

            current = time.time()

            tick = current - last

            last = current

           

            if bx > 0:

                        bx += cx * mark;

                        if cx > mx + sx or cx < sx:

                                    vx = -vx;

                                    cx = max( sx, min( mx + sx, cx ) )

            if( by > 0 ):

                        cy += gg * mark;

                        if cy > by + gg or cy < sy:

                                    hh = -hh;

                                    gg = max( sy, min( by + sy, cy ) )

           

            win32api.SetCursorPos((int(bx),int(by)))

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote