Advertisement
0816tony

POE_AutoItem

Dec 16th, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QBasic 4.04 KB | None | 0 0
  1. Hwnd = Plugin.WINDOW.MousePoint()
  2. CALL Plugin.WINDOW.Move(Hwnd, 0, 0)
  3. CALL Plugin.WINDOW.Top(Hwnd, 0)
  4. DIM X
  5. DIM Y
  6. DIM number
  7. number = Array("0", "0","0", "0", "0", "0", "0", "0","0","0")
  8. DIM pos_X
  9. pos_X = Array(44, 75, 110, 142, 176, 208, 240, 272, 304, 334)
  10. DIM pos_Y
  11. pos_Y = Array(110,111,112,107,110,110,110,110,110,110)
  12. ///////////////////////////主程式////////////////////////////////////////
  13. DO
  14.     FOR 10
  15.         IF Form1.CheckBox1.Value = 1 AND number(0) = 0 THEN
  16.             X=0
  17.             EXIT FOR
  18.         ELSEIF Form1.CheckBox2.Value = 1 AND number(1) = 0 THEN
  19.             X=1
  20.             EXIT FOR
  21.         ELSEIF Form1.CheckBox3.Value = 1 AND number(2) = 0 THEN
  22.             X=2
  23.             EXIT FOR
  24.         ELSEIF Form1.CheckBox4.Value = 1 AND number(3) = 0 THEN
  25.             X=3
  26.             EXIT FOR
  27.         ELSEIF Form1.CheckBox5.Value = 1 AND number(4) = 0 THEN
  28.             X=4
  29.             EXIT FOR
  30.         ELSEIF Form1.CheckBox6.Value = 1 AND number(5) = 0 THEN
  31.             X=5
  32.             EXIT FOR
  33.         ELSEIF Form1.CheckBox7.Value = 1 AND number(6) = 0 THEN
  34.             X=6
  35.             EXIT FOR
  36.         ELSEIF Form1.CheckBox8.Value = 1 AND number(7) = 0 THEN
  37.             X=7
  38.             EXIT FOR
  39.         ELSEIF Form1.CheckBox9.Value = 1 AND number(8) = 0 THEN
  40.             X=8
  41.             EXIT FOR
  42.         ELSEIF Form1.CheckBox10.Value = 1 AND number(9) = 0 THEN
  43.             X=9
  44.             EXIT FOR
  45.         END IF
  46.     NEXT
  47.     MoveTo pos_X(X),pos_Y(X)
  48.     LeftClick 1
  49.     number(X) = 1
  50.    
  51.    
  52.     IF Form1.OptionBox1.Value = 1 THEN  
  53.         CALL 知識卷軸
  54.     ELSEIF Form1.OptionBox2.Value = 1 THEN
  55.         CALL 傳送卷軸
  56.     ELSEIF Form1.OptionBox3.Value = 1 THEN
  57.         CALL 幻色石
  58.     ELSEIF Form1.OptionBox4.Value = 1 THEN
  59.         CALL 工匠石
  60.     ELSEIF Form1.OptionBox5.Value = 1 THEN
  61.         CALL 改造石
  62.     END IF
  63.    
  64.    
  65.     Y = Y + 1
  66.     WHILE Y = 10
  67.         EXIT DO
  68.     WEND
  69.     Delay 500
  70. LOOP
  71. CALL Plugin.WINDOW.Top(Hwnd, 1)
  72. MessageBox "領取完畢"
  73. ////////////////////////////副程式////////////////////////////////////////
  74. SUB 知識卷軸
  75.     DO
  76.         FindPic 18, 119, 370,472, "Attachment:\smart.bmp", 0.5, intX, intY
  77.         TracePrint intx
  78.         TracePrint intY
  79.         IF intX > 0 AND intY > 0 THEN
  80.             MoveTo intX, intY
  81.             KeyDown "Ctrl", 1
  82.             LeftClick 1
  83.             Delay 100
  84.         ELSE
  85.             EXIT DO
  86.         END IF
  87.             Delay 100
  88.         KeyUp "Ctrl", 1
  89.     LOOP
  90. END SUB
  91. SUB 傳送卷軸
  92.     DO
  93.         FindPic 18, 119, 370,472, "Attachment:\to.bmp", 0.5, intX, intY
  94.         TracePrint intx
  95.         TracePrint intY
  96.         IF intX > 0 AND intY > 0 THEN
  97.             MoveTo intX, intY
  98.             KeyDown "Ctrl", 1
  99.             LeftClick 1
  100.             Delay 100
  101.         ELSE
  102.             EXIT DO
  103.         END IF
  104.     LOOP
  105.     KeyUp "Ctrl", 1
  106. END SUB
  107. SUB 幻色石
  108.     DO
  109.         FindPic 18, 119, 370,472, "Attachment:\Color.bmp", 0.4, intX, intY
  110.         TracePrint intx
  111.         TracePrint intY
  112.         IF intX > 0 AND intY > 0 THEN
  113.             MoveTo intX, intY
  114.             KeyDown "Ctrl", 1
  115.             LeftClick 1
  116.             Delay 100
  117.         ELSE
  118.             EXIT DO
  119.         END IF
  120.     LOOP
  121.     KeyUp "Ctrl", 1
  122. END SUB
  123. SUB 工匠石
  124.     DO
  125.         FindPic 18, 119, 370,472, "Attachment:\make.bmp", 0.8, intX, intY
  126.         TracePrint intx
  127.         TracePrint intY
  128.         IF intX > 0 AND intY > 0 THEN
  129.             MoveTo intX, intY
  130.             KeyDown "Ctrl", 1
  131.             LeftClick 1
  132.             Delay 100
  133.         ELSE
  134.             EXIT DO
  135.         END IF
  136.     LOOP
  137.     KeyUp "Ctrl", 1
  138. END SUB
  139. SUB 改造石
  140.     DO
  141.         FindPic 18, 119, 370,472, "Attachment:\alter.bmp", 0.4, intX, intY
  142.         TracePrint intx
  143.         TracePrint intY
  144.         IF intX > 0 AND intY > 0 THEN
  145.             MoveTo intX, intY
  146.             KeyDown "Ctrl", 1
  147.             LeftClick 1
  148.             Delay 100
  149.         ELSE
  150.             EXIT DO
  151.         END IF
  152.     LOOP
  153.     KeyUp "Ctrl", 1
  154. END SUB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement