decimal tthousand1 = 0;
decimal thundred5 = 0;
decimal thundred1 = 0;
+ int mInitCount = 0;
+ bool mInit = true;
textBox1.Clear();
closeForm();
if (tmillion5 > 0)
{
- MouseEvent1 me = new MouseEvent1(Convert.ToInt32(million_5), Convert.ToInt32(kind), Convert.ToInt32(tmillion5));
+ if (mInitCount != 0)
+ {
+ mInit = false;
+ }
+ mInitCount++;
+
+ MouseEvent1 me = new MouseEvent1(Convert.ToInt32(million_5), Convert.ToInt32(kind), Convert.ToInt32(tmillion5), mInit);
ThreadStart ts = new ThreadStart(me.find);
Thread th = new Thread(ts);
th.Start();
}
if (tmillion1 > 0)
{
- MouseEvent1 me = new MouseEvent1(Convert.ToInt32(million_1), Convert.ToInt32(kind), Convert.ToInt32(tmillion1));
+ if (mInitCount != 0)
+ {
+ mInit = false;
+ }
+ mInitCount++;
+ MouseEvent1 me = new MouseEvent1(Convert.ToInt32(million_1), Convert.ToInt32(kind), Convert.ToInt32(tmillion1), mInit);
ThreadStart ts = new ThreadStart(me.find);
Thread th = new Thread(ts);
th.Start();
}
if (tthousand5 > 0)
{
- MouseEvent1 me = new MouseEvent1(Convert.ToInt32(thousand_5), Convert.ToInt32(kind), Convert.ToInt32(tthousand5));
+ if (mInitCount != 0)
+ {
+ mInit = false;
+ }
+ mInitCount++;
+ MouseEvent1 me = new MouseEvent1(Convert.ToInt32(thousand_5), Convert.ToInt32(kind), Convert.ToInt32(tthousand5), mInit);
ThreadStart ts = new ThreadStart(me.find);
Thread th = new Thread(ts);
th.Start();
}
if (tthousand1 > 0)
{
- MouseEvent1 me = new MouseEvent1(Convert.ToInt32(thousand_1), Convert.ToInt32(kind), Convert.ToInt32(tthousand1));
+ if (mInitCount != 0)
+ {
+ mInit = false;
+ }
+ mInitCount++;
+ MouseEvent1 me = new MouseEvent1(Convert.ToInt32(thousand_1), Convert.ToInt32(kind), Convert.ToInt32(tthousand1), mInit);
ThreadStart ts = new ThreadStart(me.find);
Thread th = new Thread(ts);
th.Start();
}
if (thundred5 > 0)
{
- MouseEvent1 me = new MouseEvent1(Convert.ToInt32(hundred_5), Convert.ToInt32(kind), Convert.ToInt32(thundred5));
+ if (mInitCount != 0)
+ {
+ mInit = false;
+ }
+ mInitCount++;
+ MouseEvent1 me = new MouseEvent1(Convert.ToInt32(hundred_5), Convert.ToInt32(kind), Convert.ToInt32(thundred5), mInit);
ThreadStart ts = new ThreadStart(me.find);
Thread th = new Thread(ts);
th.Start();
}
if (thundred1 > 0)
{
- MouseEvent1 me = new MouseEvent1(Convert.ToInt32(hundred_1), Convert.ToInt32(kind), Convert.ToInt32(thundred1));
+ if (mInitCount != 0)
+ {
+ mInit = false;
+ }
+ mInitCount++;
+ MouseEvent1 me = new MouseEvent1(Convert.ToInt32(hundred_1), Convert.ToInt32(kind), Convert.ToInt32(thundred1), mInit);
ThreadStart ts = new ThreadStart(me.find);
Thread th = new Thread(ts);
th.Start();
th.Join();
}
+ mInitCount = 0;
+
}
private void closeForm()
{
private int pr;
private int kind;
private int aCount;
+ private bool mInit;
- public MouseEvent1(int pr, int kind, int aCount= 1)
+ public MouseEvent1(int pr, int kind, int aCount= 1, bool mInit= true)
{
this.pr = pr;
this.kind = kind;
this.aCount = aCount;
+ this.mInit = mInit;
+
}
[DllImport("user32.dll")]
items.Add(new Point(755, 535));
items.Add(new Point(860, 535));
- this.menuinit(kind);
-
- int tkind = kind;
- while(tkind - 11 > 0)
+ if (mInit)
{
- move(arrowmenu["right"]);
+ this.menuinit(kind);
+ int tkind = kind;
+ while (tkind - 11 > 0)
+ {
+ move(arrowmenu["right"]);
+ click();
+ tkind = tkind - 11;
+ }
+ move(menus[tkind]);
click();
- tkind = tkind - 11;
- }
- move(menus[tkind]);
- click();
+ }
int tpr = pr;
//43
z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\bin\Debug\newton-cn.exe.config
z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\bin\Debug\newton-cn.exe
z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\bin\Debug\newton-cn.pdb
+z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton-cn.csproj.AssemblyReference.cache
z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form1.resources
z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form2.resources
z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form3.resources