Advertisement
alexdubovyck

С# чтение переменной(хук) и прожатие клавиши

Mar 15th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. int whattosend = 0; //new
  2. // lua.Write("suka = suka");
  3. whattosend = Convert.ToInt32(lua.Read("rm"));
  4. if (whattosend == 3)
  5. {
  6. SendKeys.Send("{1}");
  7. WowControl.UpdateStatus(whattosend.ToString());
  8. //WowControl.UpdateStatus("Tick");
  9. }
  10.  
  11. ----------черновик
  12. send key if var = 1 not 0
  13.  
  14. // lua.Write("ER_MyGetSpecialization = ER_GetPlayerTalentBuild()");
  15. PlayerBuild = Convert.ToInt32(lua.Read("ER_MyGetSpecialization"));
  16.  
  17. lua.Write("suka = suka()");
  18. whattosend = Convert.ToInt32(lua.Read("suka"));
  19.  
  20.  
  21. if (suka == 3)
  22. {
  23. SendKeys.Send("{1}");
  24. //WowControl.UpdateStatus("Tick");
  25. }
  26.  
  27. SendKeys.Send("{ENTER}");
  28.  
  29. /run print(suka)
  30. /run print(whattosend )
  31.  
  32. if rm == 1 t
  33. whattosend 1
  34. 2
  35. 0
  36. end
  37.  
  38.  
  39. int whattosend = 0; //new
  40. // lua.Write("suka = suka");
  41. whattosend = Convert.ToInt32(lua.Read("rm"));
  42. if (whattosend == 3)
  43. {
  44. SendKeys.Send("{1}");
  45. WowControl.UpdateStatus(whattosend.ToString());
  46. //WowControl.UpdateStatus("Tick");
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement