Mini123 Posted July 16, 2006 Posted July 16, 2006 Basically i want the mouse to move to a certain place on the screen say xxx,xxx then perform a left click in that areaI then will open up a right click context menu by doing shift+F10 and use the arrow keys to make my selectionDoes anyone know some code that will move the mouse to a place on the screen and then click the left mouse button.Thanks guys
RogueSpear Posted July 16, 2006 Posted July 16, 2006 I've been coding in VBS for a few years now and I'm honestly unaware of how you can move the mouse cursor with it. You can send pretty much any sort of keyboard command. You may want to investigate using AutoIt which really shines in that sort of thing. And if you're able to figure out VBscript, you'll have no problems figuring out AutoIt.
Mini123 Posted July 16, 2006 Author Posted July 16, 2006 Tryed that autoit couldnt work it out.I know you can do mouse moves with a macro so unless i just make an exe macro and tell it to run that So the vb opens another vb that opens a macro that runs and then closes.Sound good?
RogueSpear Posted July 16, 2006 Posted July 16, 2006 Sound good?Hey if it works great. Something to keep in mind, and this would hold true with AutoIt as well, is that whenever you try to put the mouse cursor on a set of coordinates you're really asking for trouble. What if the screen resolution is not always the same, does the application always open in the same part of the screen? Ask yourself questions like that. There are indeed times where it seems as though coordinates are your only option. SpywareBlaster is such a circumstance. They obviously programmed that utility with the intention of thwarting such automation. Presumeably in order to sell subscriptions to their autoupdate service.
Mini123 Posted July 16, 2006 Author Posted July 16, 2006 Yeah ill keep that in mind.After opening it many times it always seems to be in the same place.Thanks for your help RogueSpear
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now