Beispiel #1
0
        private void MainWindow_OnWoWStarted()
        {
            if (Config.AutoPositionWow)
            {
                Dispatcher.Invoke(() =>
                {
                    AmeisenBot.WowInterface.XMemory.SetupAutoPosition
                    (
                        InteropHelper.EnsureHandle(),
                        (int)(wowRect.Margin.Left * M11 + 1),
                        (int)(wowRect.Margin.Top * M22 + 1),
                        (int)(wowRect.ActualWidth * M11),
                        (int)(wowRect.ActualHeight * M22)
                    );
                });

                IsAutoPositionSetup = true;
            }
        }