I am able to use Mouse:Position to move the cursor over a UIElement button I would like to click. However, when I execute Mouse:LeftClick (after insuring Mouse.X and Mouse.Y are at the desired location), nothing happens.
Is there a trick to this?
Thanks for any advice.
Mouse:LeftClick not working for Button UIElement
Moderators: Lavish Software Team, Moderators
-
- GamingTools Subscriber
- Posts: 29
- Joined: Wed Jun 30, 2010 7:48 am
-
- GamingTools Subscriber
- Posts: 29
- Joined: Wed Jun 30, 2010 7:48 am
Aha. Is there any chance you could provide a method that sends mouse clicks directly to the window that contains the cursor and/or has focus? The reason for this is I wish to automate testing of LavishGui clients. I suppose I could figure out a way to do this directly via the Windows API, but it would be much easier if I could do it directly via LavishScript.
Thanks
Thanks
