Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Simulation Tools → Thread

   

Launching Ant+ Simulator

Rank

Total Posts: 9

Joined 2010-12-08

PM

Launching the Ant+ Simulator (Sensor) causes the application to appear on the display, as expected. Launching a second instance causes another instance to appear at a slightly different location on the screen. Offset to the lower right. And so on.

I'm trying to build a set of test cases using Windows Scripting Tools (AutoIT) that allow me to configure the Simulator without having to manually configure the tool each time.

The Scripting Tool expects the Window to be at the same place each time the application is launched to work.

Any solutions? I tried building the Ant Simulator from source as described in the Adopter Zone, to no avail, hoping to determine where the application uses the starting coordinates.

Can anyone shed some light?

THanks.      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

The default position of the windows when the application is started follows the default behaviour for Windows Forms. If you need them to start at a specific location, you will need to modify the source to explicitly set the initial position of the window. A quick search pointed to:
Setting the Screen Location of Windows Forms
http://msdn.microsoft.com/en-us/library/aa984420(v=vs.71).aspx