[Tutor] Fastest way to iterate through a file

elis aeris hunter92383 at gmail.com
Thu Jul 5 23:30:58 CEST 2007


I need some of a something to be imported into python


these are the functions I need, anyway know anything that might do any of
the following?

Eg:

suppose the class' name is autowindow:


autowindow.gainfocus(handle)
put the window of that handle into focus.


import autowindow


autowindow.imagechecksum()

autowindow.imagechecksum("c:\image\image.bmp")


autowindow.areachecksum()

sum = autowindow.areachecksum(x1,y1,x2,y2) absolute screen coordinate

autowindow.getmousepos()

pos = autowindow.getmousepos()
pos = {x, y}


autowindow.restart()

reboot computer

autowindow.shutdown()

shutdown computer

autowindow.winexist()

true/false = autowindow.winexist()
handle or window name. (no class wanted!)


autowindow.listwindows()

autowindow.listwindows("window name")
returns a list of handles if multiple window of the same name.

autowindow.GainFocus()

autowindow.GainFocus()
window name or handle

autowindow.KeyboardEvent(text)

autowindow.KeyboardEvent("Python rocks!", keyholddelay )
keyholddelay = miliseconds.

autowindow.mouseclick(button, clicks)

autowindow.MouseEvent(x, y, button, clicks)

autowindow.mousemove()

autowindow.mousemove(x,y, speed)

autowindow.winMove(x, y)
autowindow.winResize(x, y)
autowindow.winMinimize()
autowindow.winMaximize()
autowindow.winClose()

they all take handle

autowindow.listwindows()

autowindow.listwindows("window name")
returns a list of handles if multiple

autowindow.hotkey()

autowindow.hotkey(keyboard key, function)
keyboard key = any key on keyboard
function = function to start


auntwindow.run ( /source/exe.exe, "image.bmp" )

autowindow.msgbox("window name", "window message", box_number )

box_number = 1, 2, 3


OK = 1
OK + Cancel = 2
Yes + No = 3

return = autowindow.msgbox("window name", "window message", box_number )

return ok = 1
cancel = 2
yes = 3
no = 4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070705/71c5d41a/attachment.htm 


More information about the Tutor mailing list