Skip to content

Commit c1d1d41

Browse files
Fix bug that agregate multiple command when autoclick.
set / for disable auto scan detect.
1 parent eee1893 commit c1d1d41

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

AutoPilotNet/VisualForm.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AutoPilotNet/VisualForm.cs

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public partial class VisualForm : Form
3838
bool Helper = true;
3939
bool optimize = true;
4040
int reportlevel = 4;
41-
bool reportkeysend = false;
41+
bool reportkeysend = true;
4242
bool Pause = false;
4343
//-------------
4444
String PathImageToLoad;
@@ -116,7 +116,7 @@ private void Bot_Helper_ED()
116116
Tryed = 0;
117117
Report("In charging jumping");
118118
//chargingjumping
119-
Thread.Sleep((int)(jumpingtime));
119+
Thread.Sleep((int)(jumpingtime*0.9));
120120
PrecJumping = 0.45;
121121
_jkeypress = false;
122122
havepressj = true;
@@ -158,7 +158,7 @@ private void Bot_Helper_ED()
158158
if (reportlevel > 0)
159159
Report("Auto scan system run");
160160
SendKeys(VirtualKeyCode.OEM_MINUS, 30 * 6, true, true, true);
161-
int TimeForNextJump = (int)((jumpingtime + jumpcooldown) * 0.9);
161+
int TimeForNextJump = (int)((jumpingtime + jumpcooldown) * 0.75);
162162
sw.Stop();
163163
Thread.Sleep(TimeForNextJump);
164164
sw.Start();
@@ -176,6 +176,7 @@ private void Bot_Helper_ED()
176176
}
177177
if (havepressj)
178178
{
179+
Thread.Sleep(msRefresh);
179180
Tryed++;
180181
if (DateTime.Now > dateTravel.AddMilliseconds(jumpingtime * 3))//troppo tempo
181182
{
@@ -1244,6 +1245,8 @@ void KeyboardHook_KeyPressed(object sender, KeyPressedEventArgs e)
12441245
{
12451246
if (!bwAutoFireBusy)
12461247
{
1248+
bwAutoFire.Dispose();
1249+
bwAutoFire = new BackgroundWorker();
12471250
if (e.KeyCode == Keys.RControlKey)
12481251
{
12491252
if (Pause)
@@ -1266,14 +1269,15 @@ void KeyboardHook_KeyPressed(object sender, KeyPressedEventArgs e)
12661269
else { autofireon = true; Report("Autofire on"); }
12671270
}
12681271
}
1269-
if (e.KeyCode == Keys.Home)
1272+
if (e.KeyCode == Keys.Divide)
12701273
{
12711274
cbAutoScan.Checked = !cbAutoScan.Checked;
12721275
}
12731276
if (Keys.Oem7 == e.KeyCode)//à
12741277
{
12751278
//if (!bwAutoFire.IsBusy)
12761279
//{
1280+
Report("botHelper left click for 30 * 6");
12771281
bwAutoFire.DoWork += new DoWorkEventHandler(
12781282

12791283
delegate (object o, DoWorkEventArgs args)
@@ -1285,15 +1289,16 @@ void KeyboardHook_KeyPressed(object sender, KeyPressedEventArgs e)
12851289
bwAutoFire.RunWorkerAsync();
12861290
//}
12871291
}
1288-
if (Keys.Oemplus == e.KeyCode)//ù
1292+
if (Keys.Oemplus == e.KeyCode)//+
12891293
{
12901294
//if (!bwAutoFire.IsBusy)
12911295
//{
1296+
Report("botHelper right click for 30 * 9");
12921297
bwAutoFire.DoWork += new DoWorkEventHandler(
12931298
delegate (object o, DoWorkEventArgs args)
12941299
{
12951300
bwAutoFireBusy = true;
1296-
SendMouse(TypeSendMouse.RightMouse, 30 * 8);
1301+
SendMouse(TypeSendMouse.RightMouse, 30 * 10);
12971302
bwAutoFireBusy = false;
12981303
});
12991304
bwAutoFire.RunWorkerAsync();
@@ -1303,6 +1308,7 @@ void KeyboardHook_KeyPressed(object sender, KeyPressedEventArgs e)
13031308
{
13041309
//if (!bwAutoFire.IsBusy)
13051310
//{
1311+
Report("botHelper right click for 30 * 6");
13061312
bwAutoFire.DoWork += new DoWorkEventHandler(
13071313
delegate (object o, DoWorkEventArgs args)
13081314
{
@@ -1323,7 +1329,7 @@ void KeyboardHook_KeyPressed(object sender, KeyPressedEventArgs e)
13231329
if (Keys.OemMinus == e.KeyCode)
13241330
{
13251331

1326-
if (autofireon && !fire && !bwAutoFire.IsBusy)//se è in modalità automatica e non sta sparando
1332+
if (autofireon && !fire)//se è in modalità automatica e non sta sparando
13271333
{
13281334
Report("Autoscan: fire with second fire");
13291335
bwAutoFire.DoWork += new DoWorkEventHandler(

0 commit comments

Comments
 (0)