A program I wrote works great from Winbatch Studio, but when I run it as an .exe it does not seem to issue a Right Click properly. The goal of my Winbatch program is to bring up a dialog box where I can enter a comment that will be placed on the chart.
The application I am right clicking on does not respond with a Menu as it should. The application my program is trying to interact with is ThinkorSwim -- a Chart is preselected manually and a chart for a specific symbol is displayed.
This code works great when run from Winbatch Studio, but not when the .exe program is activated.
;Add comment to chart.
MousePlay("725 171", "Main@thinkorswim [build 1977]", "",@MPLAYRCLK,1) ;right click on chart to bring up menu.
MousePlay("755 370", "Main@thinkorswim [build 1977]", "",@MPLAYLCLK,3)
MouseMove(905, 363, "", "")
MousePlay("905 410", "Main@thinkorswim [build 1977]", "",@MPLAYLCLK,3)
RETURN
Any ideas to make it work from the .exe ?