Skip to content

Commit

Permalink
Agant, stamp micro-adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
veniware committed Jul 5, 2024
1 parent 25a2c2d commit 4a8c38b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
13 changes: 6 additions & 7 deletions Protest-Agent/Stamp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public Stamp(string keystroke) {
}

private void TmrFollow_Tick(object sender, EventArgs e) {
this.Left = Cursor.Position.X - 96;
this.Top = Cursor.Position.Y - 20;
this.Left = Cursor.Position.X - 95;
this.Top = Cursor.Position.Y - 19;
}

private void Stamp_MouseUp(object sender, MouseEventArgs e) {
Expand All @@ -41,7 +41,7 @@ private void Stamp_MouseUp(object sender, MouseEventArgs e) {
System.Threading.Thread.Sleep(1);
mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, x, y, 0, 0);

System.Threading.Thread.Sleep(100);
System.Threading.Thread.Sleep(50);

string escaped = String.Empty;
for (int i = 0; i < strokes.Length && strokes.Length > 0; i++) {
Expand All @@ -55,15 +55,14 @@ private void Stamp_MouseUp(object sender, MouseEventArgs e) {
SendKeys.SendWait("{" + strokes[i] + "}");
}

System.Threading.Thread.Sleep(5);
System.Threading.Thread.Sleep(2);
progress = 1 + (100 - 100 * i / strokes.Length);
this.Refresh();
}

escaped = String.Empty;
strokes = String.Empty;

//this.Hide();
Application.Exit();
}
}
Expand All @@ -84,8 +83,8 @@ private void Stamp_Paint(object sender, PaintEventArgs e) {
}
else {
int w = progress * 2;
int x = (this.Width-w) / 2;
e.Graphics.DrawRectangle(outline, x , 38, w, 2);
int x = (this.Width - w) / 2;
e.Graphics.DrawRectangle(outline, x , 36, w, 2);
}
}

Expand Down
1 change: 1 addition & 0 deletions Protest-Agent/Stamp.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Protest/Front/view.css
Original file line number Diff line number Diff line change
Expand Up @@ -641,11 +641,15 @@ button.view-live-button:active {
.view-warning-box[source]::before,
.view-error-box[source]::before,
.view-critical-box[source]::before { /*source*/
display: inline-block;
content: attr(source);
font-weight: bold;
border-radius: 4px;
vertical-align: bottom;
min-width: 50px;
padding: 0 4px;
margin: 0 8px 0 0;
border-radius: 4px;
text-align: center;
overflow: hidden;
white-space: nowrap;
}
Expand Down
1 change: 1 addition & 0 deletions Protest/Tools/LiveStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Timers;
using Lextm.SharpSnmpLib;
using Protest.Protocols;
using Protest.Tasks;
Expand Down

0 comments on commit 4a8c38b

Please sign in to comment.