Guest User

Untitled

a guest
May 15th, 2023
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.17 KB | None | 0 0
  1. ImGui_ImplDX9_NewFrame();
  2. ImGui_ImplWin32_NewFrame();
  3. ImGui::NewFrame();
  4. {
  5. if (ImGui::Begin("Synthex.gg v2", NULL, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse| ImGuiWindowFlags_NoScrollbar| ImGuiWindowFlags_NoScrollWithMouse))
  6.  
  7. ImGui::SetWindowSize(ImVec2(230, 405));
  8. static int Tab = 0;
  9. void SetupImGuiStyle();
  10.  
  11. if (ImGui::Button("Weapons", ImVec2(ImGui::GetContentRegionAvail().x / 2, 25))) { Tab = 0; }
  12. ImGui::SameLine();
  13. /*if (ImGui::Button("Settings", ImVec2(ImGui::GetContentRegionAvail().x / 3, 30))) { Tab = 1; }
  14. ImGui::SameLine();*/
  15. if (ImGui::Button("Misc", ImVec2(ImGui::GetContentRegionAvail().x / 1, 25))) { Tab = 1; }
  16. ImGui::SameLine();
  17. ImGui::SameLine();
  18. ImGui::Spacing();
  19.  
  20. /*ImGui::SetCursorPosY((ImGui::GetWindowSize().y / 1.115));*/
  21.  
  22. ImGui::Spacing();
  23. switch (Tab)
  24. {
  25. case 0:
  26. ImGui::Text((" Sensitivity"));
  27. ImGui::Text(" ");
  28. ImGui::SameLine();
  29. ImGui::SliderFloat(("##Sensitivity"), &Sensitivity, 0.001, 2, ("%.2f"));
  30. ImGui::Text((" FOV"));
  31. ImGui::Text(" ");
  32. ImGui::SameLine();
  33. ImGui::SliderInt(("##FOV"), &FOV, 65, 90);
  34. ImGui::Text(wptext.c_str());
  35. ImGui::SameLine();
  36. ImGui::Text(scptext.c_str());
  37. ImGui::SameLine();
  38. ImGui::Text(brltext.c_str());
  39. ImGui::Separator();
  40. ImGui::Spacing();
  41. ImGui::Columns(2, nullptr, false);
  42.  
  43. if (Sc == true) {
  44.  
  45. script();
  46. }
  47. // Code
  48. if (ImGui::Button((" AK47"), ImVec2(100, 20))) {
  49. WPAK = true; WPLR = false; WPMP5 = false; WPSMG = false; WPTHOMP = false; WPM249 = false; WPHMLMG = false; WPSEMI = false; WPPYTHON = false; wptext = ("AK47");
  50.  
  51. }
  52. if (ImGui::Button((" LR-300"), ImVec2(100, 20))) {
  53. WPAK = false; WPLR = true; WPMP5 = false; WPSMG = false; WPTHOMP = false; WPM249 = false; WPHMLMG = false; WPSEMI = false; WPPYTHON = false; wptext = ("LR-300");
  54. }
  55. if (ImGui::Button((" MP5"), ImVec2(100, 20))) {
  56. WPAK = false; WPLR = false; WPMP5 = true; WPSMG = false; WPTHOMP = false; WPM249 = false; WPHMLMG = false; WPSEMI = false; WPPYTHON = false; wptext = ("MP5A4");
  57. }
  58. if (ImGui::Button((" Custom"), ImVec2(100, 20))) {
  59. WPAK = false; WPLR = false; WPMP5 = false; WPSMG = true; WPTHOMP = false; WPM249 = false; WPHMLMG = false; WPSEMI = false; WPPYTHON = false; wptext = ("Custom");
  60. }
  61. if (ImGui::Button((" Thompson"), ImVec2(100, 20))) {
  62. WPAK = false; WPLR = false; WPMP5 = false; WPSMG = false; WPTHOMP = true; WPM249 = false; WPHMLMG = false; WPSEMI = false; WPPYTHON = false; wptext = ("Thompson");
  63. }
  64.  
  65. if (ImGui::Button((" M249"), ImVec2(100, 20))) {
  66. WPAK = false; WPLR = false; WPMP5 = false; WPSMG = false; WPTHOMP = false; WPM249 = true; WPHMLMG = false; WPSEMI = false; WPPYTHON = false; wptext = ("M249");
  67. }
  68. if (ImGui::Button((" HMLMG"), ImVec2(100, 20))) {
  69. WPAK = false; WPLR = false; WPMP5 = false; WPSMG = false; WPTHOMP = false; WPM249 = false; WPHMLMG = true; WPSEMI = false; WPPYTHON = false; wptext = ("HMLMG");
  70. }
  71. if (ImGui::Button((" Semi"), ImVec2(100, 20))) {
  72. WPAK = false; WPLR = false; WPMP5 = false; WPSMG = false; WPTHOMP = false; WPM249 = false; WPHMLMG = false; WPSEMI = true; WPPYTHON = false; wptext = ("Semi");
  73. }
  74. if (ImGui::Button((" Python"), ImVec2(100, 20))) {
  75. WPAK = false; WPLR = false; WPMP5 = false; WPSMG = false; WPTHOMP = false; WPM249 = false; WPHMLMG = false; WPSEMI = false; WPPYTHON = true; wptext = ("Python");
  76. }
  77.  
  78. ImGui::NextColumn();
  79. if (ImGui::Button((" 8x"), ImVec2(100, 20))) {
  80. Mod8X = true; ModHOLO = false; ModHAND = false; Mod16X = false; scptext = ("8x");
  81. }
  82. if (ImGui::Button((" 16x"), ImVec2(100, 20))) {
  83. Mod16X = true; Mod8X = false; ModHOLO = false; ModHAND = false; scptext = ("16x");
  84. }
  85. if (ImGui::Button((" Handmade"), ImVec2(100, 20))) {
  86. ModHAND = true; Mod8X = false; ModHOLO = false; Mod16X = false; scptext = ("hand");
  87. }
  88. if (ImGui::Button((" Holo"), ImVec2(100, 20))) {
  89. ModHOLO = true; Mod8X = false; ModHAND = false; Mod16X = false; scptext = ("holo");
  90. }
  91.  
  92. ImGui::BeginGroup();
  93. if (ImGui::Button((" Reset Mods"), ImVec2(100, 20))) {
  94. ModSILEN = false; ModHOLO = false; ModHAND = false; Mod8X = false; Mod16X = false; brltext = ("-"); scptext = ("-");
  95. }
  96. ImGui::EndGroup();
  97. if (ImGui::Button((" Reset All"), ImVec2(100, 20))) {
  98. ModSILEN = false; ModHOLO = false; ModHAND = false; Mod8X = false; brltext = ("-"); scptext = ("-"); wptext = ("-");
  99. WPLR = false; WPMP5 = false; WPTHOMP = false; WPAK = false; WPSMG = false; WPM249 = false; WPHMLMG = false; WPSEMI = false; WPPYTHON = false;
  100. }
  101. //{
  102. // ImGui::Checkbox("Mini-Menu", &variable.minimenu);
  103. // if (variable.minimenu == true)
  104. // {
  105. // ImGui::Begin("Synthex.gg");
  106. //
  107. // ImGui::SetWindowSize(ImVec2(200, 50));
  108. // void SetupImGuiStyle();
  109. // ImGui::Text(wptext.c_str());
  110. // ImGui::SameLine();
  111. // ImGui::Text(scptext.c_str());
  112. // ImGui::SameLine();
  113. // ImGui::Text(brltext.c_str());
  114. // ImGui::End();
  115. //
  116. // }
  117. //}
  118. if (ImGui::Button(("Unload"), ImVec2(100, 20))) {
  119. exit(0);
  120. }ImGui::End();
  121.  
  122.  
  123. break;
  124.  
  125.  
  126. case 1:
  127. // Code
  128.  
  129. if (variable.enableAutoCode)
  130. {
  131. if (GetAsyncKeyState(keys.enableCodeBind) & 1)
  132. {
  133. key_input((int)variable.codeNum1);
  134. Sleep(variable.delayBetweenKeypress);
  135. key_input((int)variable.codeNum2);
  136. Sleep(variable.delayBetweenKeypress);
  137. key_input((int)variable.codeNum3);
  138. Sleep(variable.delayBetweenKeypress);
  139. key_input((int)variable.codeNum4);
  140. }
  141. }
  142. ImGui::BeginChild("##codeEnter");
  143. {
  144. /*ImGui::SetCursorPos(ImVec2(52, 3));*/
  145.  
  146. ImGui::Spacing();
  147. ImGui::Checkbox("Auto-Code", &variable.enableAutoCode);
  148. ImGui::SameLine();
  149. {
  150. ImGui::PushStyleColor(ImGuiCol_Button, firstChildColor);
  151. ImGui::PushStyleColor(ImGuiCol_ButtonActive, firstChildColor);
  152. ImGui::PushStyleColor(ImGuiCol_ButtonHovered, firstChildColor);
  153. {
  154. ImGui::SetCursorPos(ImVec2(100, 4));
  155. keybind::key_bind(keys.enableCodeBind);
  156. }
  157. ImGui::PopStyleColor(3);
  158. }
  159. ImGui::Spacing();
  160. ImGui::Text("Your Code:");
  161. ImGui::PushItemWidth(14.f);
  162. {
  163. ImGui::SameLine();
  164. ImGui::InputInt("##First", &variable.codeNum1, 0, 9);
  165. ImGui::SameLine();
  166. ImGui::InputInt("##Seconed", &variable.codeNum2, 0, 9);
  167. ImGui::SameLine();
  168. ImGui::InputInt("##Third", &variable.codeNum3, 0, 9);
  169. ImGui::SameLine();
  170. ImGui::InputInt("##Forth", &variable.codeNum4, 0, 9);
  171. }
  172. ImGui::Text("Delay: %i", variable.delayBetweenKeypress);
  173. ImGui::SetNextItemWidth(145);
  174. {
  175. ImGui::SliderInt("##Delay", &variable.delayBetweenKeypress, 5, 800, "%.06fms");
  176. }
  177. ImGui::Spacing();
  178. ImGui::Spacing();
  179. ImGui::Spacing();
  180. ImGui::Separator();
  181. ImGui::Spacing();
  182. ImGui::Spacing();
  183. ImGui::Checkbox("Anti-AFK", &variable.antiafk);
  184. if (variable.antiafk == true)
  185. {
  186. if (variable.number == 500)
  187. {
  188. keybd_event(0x57, 0, KEYEVENTF_EXTENDEDKEY, 0);
  189. Sleep(500);
  190. keybd_event(0x57, 0, KEYEVENTF_KEYUP, 0);
  191. }
  192. if (variable.number == 1000)
  193. {
  194. keybd_event(0x53, 0, KEYEVENTF_EXTENDEDKEY, 0);
  195. Sleep(500);
  196. keybd_event(0x53, 0, KEYEVENTF_KEYUP, 0);
  197. }
  198. if (variable.number == 1500)
  199. {
  200. keybd_event(0x57, 0, KEYEVENTF_EXTENDEDKEY, 0);
  201. Sleep(500);
  202. keybd_event(0x57, 0, KEYEVENTF_KEYUP, 0);
  203. }
  204. if (variable.number == 2000)
  205. {
  206. keybd_event(0x53, 0, KEYEVENTF_EXTENDEDKEY, 0);
  207. Sleep(500);
  208. keybd_event(0x53, 0, KEYEVENTF_KEYUP, 0);
  209. variable.number = 0;
  210. }
  211. else
  212. {
  213. Sleep(10);
  214. variable.number = variable.number + 1;
  215. }
  216. }
  217.  
  218.  
  219.  
  220. }
  221. break;
  222. }
  223. ImGui::End();
  224. }
  225. ImGui::EndFrame();
Advertisement
Add Comment
Please, Sign In to add comment