Is there a way to make a VBScript click in an exact position of your screen like (10,100) or somthing along those lines? Or perhaps click over a text box?
3 Answers
VBScript, by itself, isn't aware of the desktop or any other windows. Through the use of various COM/ActiveX objects, you can interact with other processes and windows, though. For example, you can create a shortcut on the desktop, start a program, automate a series of keystrokes, or force a program to come to the front.
As far as automating mouse movements or mouse clicks, you would probably need to write your own COM object that can do this. A combination of the SetCursorPos and SendInput API calls could accomplish this.
Google Answers has some example C++ code that can accomplish this. Planet Source Code has some example VB6 code that can accomplish this.
From there, you can create your COM/ActiveX objects that will allow you to use VBScript to click where you want.