I've just discovered this awesome low level control object,
Set mouse = CreateObject("Mercury.DeviceReplay")
which allows me to do cool things like
mouse.DragAndDrop x, y, x+60, y, 0
My problem is that my monitor set up can prevent this from working: I have two monitors, my main monitor is on the right. Should the application under test be on the left then the x in my method, the abs_x of the object under test, has a negative value. This generates an error. Is there a code-solution to overcome this? I'm happy a different function, or perhaps a means of moving the Browser object to a different monitor.
One of my attempts involved trying to code looping (Windows key + Left) until x has a positive value. I couldn't work out what to write to make that happen though. Suggestions welcome.