Skip to content

Use binding for auto clicker#69

Merged
ryanlua merged 6 commits intomainfrom
bind-autoclicker
May 1, 2025
Merged

Use binding for auto clicker#69
ryanlua merged 6 commits intomainfrom
bind-autoclicker

Conversation

@ryanlua
Copy link
Owner

@ryanlua ryanlua commented May 1, 2025

Description

Make auto clicker logic use bindings rather than passing values.

Related Issues

Changes Made

Checklist

  • I have tested these changes thoroughly.
  • I have reviewed my code for any potential errors or issues.
  • I have followed the code style guidelines for this project.

Additional Notes

@github-actions
Copy link

github-actions bot commented May 1, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@ryanlua ryanlua self-assigned this May 1, 2025
@ryanlua ryanlua marked this pull request as ready for review May 1, 2025 21:51
Copilot AI review requested due to automatic review settings May 1, 2025 21:51
@ryanlua ryanlua merged commit a90d6a7 into main May 1, 2025
5 checks passed
@ryanlua ryanlua deleted the bind-autoclicker branch May 1, 2025 21:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the auto clicker logic to use bindings instead of explicitly passing values, streamlining how parameters are set.

  • Removed legacy parameter parsing from MainPage.xaml.cs and updated AutoClicker.Start() to rely on bound properties.
  • Introduced binding-based control for click amounts and delay offsets via AutoClicker properties.

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
FluentAutoClicker/MainPage.xaml.cs Removed GetNumberBoxValue and GetIntervalMilliseconds methods; updated event handlers.
FluentAutoClicker/Helpers/AutoClicker.cs Simplified AutoClicker.Start() and AutoClickerThread to use bound properties for settings.
Files not reviewed (1)
  • FluentAutoClicker/MainPage.xaml: Language not supported

else if (sender.Equals(ClickOffsetCheckBox))
{
ClickOffsetAmount.IsEnabled = ClickOffsetCheckBox.IsChecked == true;
AutoClicker.clickDelayOffsetEnabled = ClickRepeatCheckBox.IsChecked == true;
Copy link

Copilot AI May 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the ClickOffsetCheckBox branch, the flag for click delay offset is incorrectly set using ClickRepeatCheckBox.IsChecked instead of ClickOffsetCheckBox.IsChecked. Update this to ensure the correct binding is used.

Suggested change
AutoClicker.clickDelayOffsetEnabled = ClickRepeatCheckBox.IsChecked == true;
AutoClicker.clickDelayOffsetEnabled = ClickOffsetCheckBox.IsChecked == true;

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants