Snow_Flake

Chatous Bot V3.0

Aug 10th, 2014
581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. /*
  3.  
  4. Pastebin: http://pastebin.com/edit.php?i=06AjW1Bx
  5. Autohotkey/forum: http://www.autohotkey.com/board/topic/112464-chatous-bot-v30/
  6.  
  7. Chatous Bot V30
  8.  
  9. Made by: Snow Flake | Time: 2014-07-26 12:48 GMT +1
  10.  
  11. Tested On/With:
  12. Autohotkey_L Version: v1.1.14.03 and v1.1.15.02
  13. Windows 7 x64 and Windows 8 x32
  14. Google Chrome Version: 31.0.1650.63 m and 36.0.1985.125 m
  15. screen resolution: 1336 x 768
  16.  
  17. Report bugs to me at:
  18. http://www.autohotkey.com/board/user/21149-snow-flake/
  19. Or find me in the Internet Relay Chat (IRC) https://kiwiirc.com/client/irc.freenode.net/
  20. #ahk | #.ahk | #ahkscript
  21.  
  22. *Notes
  23. Chatous Bot V3.0 ONLY works in Chrome at the moment and the stranger must have a Gender Selected.
  24. CTRL + S cant be used as a Toggle key biuse that key combination restarts Chatous Bot V3.0.
  25. Only Chat To Strangers From and Search For Someone is currently DISABLED bicuse of testing so its not working!
  26. --------------------
  27. How to use it?
  28. --------------------
  29.  
  30. 1. Type a Toggle On/Off key  (Example: CTRL + D )
  31. 2. Press "Search For Someone" button if you want the bot to search for someone with a specific name.
  32. 3. Select "Keep Searching For More Even If Found"if you want the bot to find more than one found/make it loop.
  33. 2. Select "Females Only" or "Males Only" to Only find Males and skip the Females or to Only find the Females and skip the
  34.  
  35. Males.
  36. 3. Select if you want a Sound to be Plaid when Chatous Bot finds the Gender you have selected in step nummber 2.
  37. 4. Select if you want the Selected to be added as your friend.
  38. 5. Use "Only Chat To Strangers From" if you want the bot to only find peapole from a specific country.
  39. 6. Type what you want to be sent to the Gender you select, then it will be sent when Chatous finds the Gender.
  40. 7. Type what you want to be sent to the Opposit Gender you select, then it will be sent when Chatous finds the Opposit
  41.  
  42. Gender.
  43. 8. Select "Save Settings" if you want the Bot to remember the setings you have made.
  44. 7. Press "Run" button.
  45. 8. Press the Toggle Key to stat the Bot, press it again to pause the bot.
  46.  
  47. */
  48. #NoEnv
  49. #singleInstance, Force
  50. #MaxThreads, 100
  51. #MaxThreadsPerHotkey, 2
  52. #Persistent
  53. SetBatchLines, -1
  54. DetectHiddenWindows, On
  55. CoordMode, Mouse, Screen
  56. CoordMode, Pixel, Screen
  57. CoordMode, Tooltip, Screen
  58. SetTitleMatchMode, 2
  59. SetKeyDelay, 30,50
  60. SetMouseDelay 10
  61. SendMode Event
  62. #InstallKeybdHook
  63. #InstallMouseHook
  64. #UseHook, On
  65. SetWorkingDir, %A_ScriptDir%/Files
  66. toggle = 0 ; Toggle
  67. counter = 0
  68. counterx = 0
  69. Config = Config.ini
  70.  
  71. IfExist, %Config%
  72. {
  73. IniRead, Msg2, %Config%, TextBox, Opposit
  74. IniRead, Msg, %Config%, TextBox, Found
  75.  
  76. IniRead, Mode3, %Config%, Settings, Female
  77. IniRead, Mode4, %Config%, Settings, Male
  78.  
  79. IniRead, Snd2, %Config%, Settings, Alarm
  80. IniRead, Fre2, %Config%, Settings, Auto Friend
  81. IniRead, Keep2, %Config%, Settings, Loop
  82. IniRead, From2, %Config%, Settings, Search Country
  83. IniRead, Sea2, %Config%, Settings, Someone
  84. IniRead, Key, %Config%, Settings, Hotkey
  85. }
  86.  
  87.  
  88.  
  89. Gui, Add, Text, x46 y55 w100 h20 , Toggle On/Off Key
  90. Gui, Add, Text, x2 y400 w190 h20 , Send To The Opposit Gender As Found
  91. Gui, Add, Text, x2 y300 w80 h20 , Send On Found
  92. Gui, Add, Text, x2 y240 w140 h20 , Only Chat To Strangers From:
  93.  
  94. Gui, Add, Radio, x2 y180 w90 h20 VMode, Females Only
  95. Gui, Add, Radio, x2 y210 w90 h20 VMode2, Males Only
  96.  
  97. Gui, Add, Checkbox, x112 y180 w110 h20 VSnd, Alarm On Found
  98. Gui, Add, Checkbox, x112 y210 w100 h20 VFre, Friend On Found
  99. Gui, Add, Checkbox, x2 y150 w230 h20 VKeep, Keep Searching For More Even If Found
  100. Gui, Add, Checkbox, x2 y500 w90 h30 VSave, Save Setting
  101.  
  102. Gui, Add, Edit, x2 y320 w220 h70 VMsg, %Msg%
  103. Gui, Add, Edit, x2 y420 w220 h70 VMsg2, %Msg2%
  104.  
  105. Gui, Add, Button, x2 y530 w90 h30 , Run
  106. Gui, Add, Button, x2 y110 w110 h30 gSea , Search For Someone
  107.  
  108. Gui, Add, Hotkey, x-3 y75 w160 h20 VKey, %Key%  
  109. Gui, Add, DropDownList, x2 y260 w100 VFrom, USA|GERMANY|AFRIKA|INDONESIA|ALASKA
  110. Gui, Add, Picture, x2 y0 w180 h50 , Chatt.png
  111.  
  112. GuiControl,, Mode, %Mode3%
  113. GuiControl,, Mode2, %Mode4%
  114.  
  115. GuiControl,, Snd, %Snd2%
  116. GuiControl,, Fre, %Fre2%
  117. GuiControl,, Keep, %Keep2%
  118.  
  119.  
  120. Gui, Show, w229 h565, Chatous Bot V3.0 v2.0
  121. return
  122.  
  123. GuiClose:
  124. ExitApp
  125.  
  126.  
  127. Sea:
  128. MsgBox, This Option have been disabled until more testing!
  129. return
  130. /*
  131. FileSelectFile, FindIt, 3, , Select the , Pictures/Images (*.PNG; *.JPG; *.JPEG; *.WEBP;)
  132. IF FindIt =
  133. MsgBox, You didn't select anything.
  134. else
  135. Found = %FindIt%
  136. MsgBox, You selected the following:`n%FindIt%
  137. GuiControl, Disable, Mode
  138. GuiControl, Disable, Mode2
  139. return
  140. */
  141.  
  142. ButtonRun:
  143. Gui, Submit
  144.  
  145. IF (Save = 1)
  146. {
  147. IniWrite, %Msg2%,%Config%, TextBox, Opposit
  148. IniWrite, %Msg%,%Config%, TextBox, Found
  149.  
  150. IniWrite, %Mode%,%Config%, Settings, Female
  151. IniWrite, %Mode2%,%Config%, Settings, Male
  152.  
  153. IniWrite, %Snd%,%Config%, Settings, Alarm
  154. IniWrite, %Fre%,%Config%, Settings, Auto Friend
  155. IniWrite, %Keep%,%Config%, Settings, Loop
  156. IniWrite, %From%,%Config%, Settings, Search Country
  157. IniWrite, %Sea%,%Config%, Settings, Someone
  158. IniWrite, %Key%,%Config%, Settings, Hotkey
  159. }
  160.  
  161. Tooltip, Selected Gender: %Mode%,%A_ScreenWidth%, %A_ScreenHeight%
  162.        
  163.  
  164. IF (Mode = 1)
  165. {
  166. Skipper := "Male"
  167. }
  168. else
  169. {
  170. Skipper := "Female"
  171. }
  172.  
  173. Tooltip, Sould skip: %Skipper%
  174.  
  175. IF (Skipper = "Female")
  176. {
  177. Found := "Male"
  178. }
  179.  
  180. IF (Skipper = "Male")
  181. {
  182. Found := "Female"  
  183. }
  184.  
  185. Tooltip, Sould find: %Found%
  186.  
  187. ToolTip,Chatous Bot V3.0 `n`nPress %Key% to start the bot.,%A_ScreenWidth%, %A_ScreenHeight%
  188.  
  189. WinActivate, Chatous - Random Chat - Google Chrome
  190. WinMaximize, Chatous - Random Chat - Google Chrome
  191.  
  192. Hotkey, %Key%,LKey
  193. return
  194.  
  195. LKey:
  196.  
  197.  
  198. ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, NewChat.png
  199. sleep, 200
  200. Click, %FoundX%, %FoundY% Left, 1
  201. MouseMove, %A_ScreenWidth%, %A_ScreenHeight%
  202. Tooltip, Chatous Bot V3.0`n`nSkipped: %counter% %Skipper% `nFound: %counterx% %Found%,%A_ScreenWidth%, %A_ScreenHeight%
  203. sleep, 300
  204.  
  205.  
  206. Toggle := !Toggle
  207. While Toggle
  208. {
  209. ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, %Skipper%.png
  210. If ErrorLevel = 0
  211. {
  212. Tooltip, Chatous Bot V3.0`n`nSkipped: %counter% %Skipper% `nFound: %counterx% %Found%,%A_ScreenWidth%, %A_ScreenHeight%
  213.  
  214. IF (Msg2!="")
  215. {
  216. Send, %Msg2%
  217. sleep, 300
  218. send, {Enter}
  219. }
  220.  
  221. sleep, 300
  222. send, {Esc 2}
  223. counter += 1
  224.  
  225. }
  226.  
  227. ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, Ended.png
  228. If ErrorLevel = 0
  229. {
  230. send, {Esc}
  231. }
  232.  
  233. ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, %Found%.png
  234. If ErrorLevel = 0
  235. {
  236. sleep, 300 
  237.  
  238. counterx += 1
  239.  
  240. IF (Snd = 1)
  241. {
  242. SoundPlay, Alert.wav
  243. sleep, 200
  244. }
  245.  
  246. IF (Msg!="")
  247. {
  248. Send, %Msg%
  249. sleep, 300
  250. send, {Enter}
  251. }
  252.  
  253. IF (Fre = 1)
  254. {
  255. ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, Friend.png
  256. sleep, 200
  257. Click, %FoundX%, %FoundY% Left, 1
  258. }
  259.  
  260. IF (Keep = 1)
  261. {
  262. ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, NewChat.png
  263. sleep, 200
  264. Click, %FoundX%, %FoundY% Left, 1
  265. }
  266. else
  267. {
  268. break
  269. sleep, 400
  270. Tooltip, Chatous Bot V3.0`n`nSkipped: %counter% %Skipper% `nFound: %counterx% %Found%,%A_ScreenWidth%, %A_ScreenHeight%
  271. } ; Keep
  272. } ; If Found
  273.  
  274. } ;Toggle
  275.  
  276. ^S::Reload
Advertisement
Add Comment
Please, Sign In to add comment