Okay, just got home.
The actual script I have been trying is:
WinActivate("Agrimap Editor")
Sleep(6000)
MouseClick("left",200,600)
sleep(500)
MouseClick("left",850,300)
This brings the editor to the forefront of my PC... but then the mouse just sits still. After about 5 seconds the system tray icon at the bottom right disappears.
I have tried what you said about the ControlClick.. but I am not sure how exactly to use the control click function..
So do I just put "Argimap Editor" for the title? Or do I use the Class from Basic Window Info?("Agr_Main")
Also, do I need a "text" and controlID?
And do I use the ControlClick Coords for x and y?
This is what I tried... it compiled.. but didn't work:
WinActivate("Argimap Editor")
Sleep(4000)
ControlClick("CLASS:Arg_Main","","left",2,147,147) ;double click in northwest corner
Once again, this switches to Argimap but then does nothing.. after a bit the icon disappears from system tray.