I am trying to get python to emulatue mouse clicks, and then type a phrase into the pop up window that the mouse clicks into or the text box.
1) click a security box “run” link with mouse
2) move inside a pop up and enter different phrases with python
What would be the best way to control the mouse and keyboard in this function. These are based in windows. I just need to click ” run ” on pop up and then in another pop box in one text line enter a phrase then switch to another text line and enter another. much like a password User Id fields.
Could sommeone point me in the right direction.
Use a Python GUI library to interact with keyboard and mouse events. I prefer wxPython which is a very popular library. Take a look at wxPython key events API.
http://www.wxpython.org/docs/api/wx.KeyEvent-class.html