Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Pastebin: http://pastebin.com/edit.php?i=06AjW1Bx
- Autohotkey/forum: http://www.autohotkey.com/board/topic/112464-chatous-bot-v30/
- Chatous Bot V30
- Made by: Snow Flake | Time: 2014-07-26 12:48 GMT +1
- Tested On/With:
- Autohotkey_L Version: v1.1.14.03 and v1.1.15.02
- Windows 7 x64 and Windows 8 x32
- Google Chrome Version: 31.0.1650.63 m and 36.0.1985.125 m
- screen resolution: 1336 x 768
- Report bugs to me at:
- http://www.autohotkey.com/board/user/21149-snow-flake/
- Or find me in the Internet Relay Chat (IRC) https://kiwiirc.com/client/irc.freenode.net/
- #ahk | #.ahk | #ahkscript
- *Notes
- Chatous Bot V3.0 ONLY works in Chrome at the moment and the stranger must have a Gender Selected.
- CTRL + S cant be used as a Toggle key biuse that key combination restarts Chatous Bot V3.0.
- Only Chat To Strangers From and Search For Someone is currently DISABLED bicuse of testing so its not working!
- --------------------
- How to use it?
- --------------------
- 1. Type a Toggle On/Off key (Example: CTRL + D )
- 2. Press "Search For Someone" button if you want the bot to search for someone with a specific name.
- 3. Select "Keep Searching For More Even If Found"if you want the bot to find more than one found/make it loop.
- 2. Select "Females Only" or "Males Only" to Only find Males and skip the Females or to Only find the Females and skip the
- Males.
- 3. Select if you want a Sound to be Plaid when Chatous Bot finds the Gender you have selected in step nummber 2.
- 4. Select if you want the Selected to be added as your friend.
- 5. Use "Only Chat To Strangers From" if you want the bot to only find peapole from a specific country.
- 6. Type what you want to be sent to the Gender you select, then it will be sent when Chatous finds the Gender.
- 7. Type what you want to be sent to the Opposit Gender you select, then it will be sent when Chatous finds the Opposit
- Gender.
- 8. Select "Save Settings" if you want the Bot to remember the setings you have made.
- 7. Press "Run" button.
- 8. Press the Toggle Key to stat the Bot, press it again to pause the bot.
- */
- #NoEnv
- #singleInstance, Force
- #MaxThreads, 100
- #MaxThreadsPerHotkey, 2
- #Persistent
- SetBatchLines, -1
- DetectHiddenWindows, On
- CoordMode, Mouse, Screen
- CoordMode, Pixel, Screen
- CoordMode, Tooltip, Screen
- SetTitleMatchMode, 2
- SetKeyDelay, 30,50
- SetMouseDelay 10
- SendMode Event
- #InstallKeybdHook
- #InstallMouseHook
- #UseHook, On
- SetWorkingDir, %A_ScriptDir%/Files
- toggle = 0 ; Toggle
- counter = 0
- counterx = 0
- Config = Config.ini
- IfExist, %Config%
- {
- IniRead, Msg2, %Config%, TextBox, Opposit
- IniRead, Msg, %Config%, TextBox, Found
- IniRead, Mode3, %Config%, Settings, Female
- IniRead, Mode4, %Config%, Settings, Male
- IniRead, Snd2, %Config%, Settings, Alarm
- IniRead, Fre2, %Config%, Settings, Auto Friend
- IniRead, Keep2, %Config%, Settings, Loop
- IniRead, From2, %Config%, Settings, Search Country
- IniRead, Sea2, %Config%, Settings, Someone
- IniRead, Key, %Config%, Settings, Hotkey
- }
- Gui, Add, Text, x46 y55 w100 h20 , Toggle On/Off Key
- Gui, Add, Text, x2 y400 w190 h20 , Send To The Opposit Gender As Found
- Gui, Add, Text, x2 y300 w80 h20 , Send On Found
- Gui, Add, Text, x2 y240 w140 h20 , Only Chat To Strangers From:
- Gui, Add, Radio, x2 y180 w90 h20 VMode, Females Only
- Gui, Add, Radio, x2 y210 w90 h20 VMode2, Males Only
- Gui, Add, Checkbox, x112 y180 w110 h20 VSnd, Alarm On Found
- Gui, Add, Checkbox, x112 y210 w100 h20 VFre, Friend On Found
- Gui, Add, Checkbox, x2 y150 w230 h20 VKeep, Keep Searching For More Even If Found
- Gui, Add, Checkbox, x2 y500 w90 h30 VSave, Save Setting
- Gui, Add, Edit, x2 y320 w220 h70 VMsg, %Msg%
- Gui, Add, Edit, x2 y420 w220 h70 VMsg2, %Msg2%
- Gui, Add, Button, x2 y530 w90 h30 , Run
- Gui, Add, Button, x2 y110 w110 h30 gSea , Search For Someone
- Gui, Add, Hotkey, x-3 y75 w160 h20 VKey, %Key%
- Gui, Add, DropDownList, x2 y260 w100 VFrom, USA|GERMANY|AFRIKA|INDONESIA|ALASKA
- Gui, Add, Picture, x2 y0 w180 h50 , Chatt.png
- GuiControl,, Mode, %Mode3%
- GuiControl,, Mode2, %Mode4%
- GuiControl,, Snd, %Snd2%
- GuiControl,, Fre, %Fre2%
- GuiControl,, Keep, %Keep2%
- Gui, Show, w229 h565, Chatous Bot V3.0 v2.0
- return
- GuiClose:
- ExitApp
- Sea:
- MsgBox, This Option have been disabled until more testing!
- return
- /*
- FileSelectFile, FindIt, 3, , Select the , Pictures/Images (*.PNG; *.JPG; *.JPEG; *.WEBP;)
- IF FindIt =
- MsgBox, You didn't select anything.
- else
- Found = %FindIt%
- MsgBox, You selected the following:`n%FindIt%
- GuiControl, Disable, Mode
- GuiControl, Disable, Mode2
- return
- */
- ButtonRun:
- Gui, Submit
- IF (Save = 1)
- {
- IniWrite, %Msg2%,%Config%, TextBox, Opposit
- IniWrite, %Msg%,%Config%, TextBox, Found
- IniWrite, %Mode%,%Config%, Settings, Female
- IniWrite, %Mode2%,%Config%, Settings, Male
- IniWrite, %Snd%,%Config%, Settings, Alarm
- IniWrite, %Fre%,%Config%, Settings, Auto Friend
- IniWrite, %Keep%,%Config%, Settings, Loop
- IniWrite, %From%,%Config%, Settings, Search Country
- IniWrite, %Sea%,%Config%, Settings, Someone
- IniWrite, %Key%,%Config%, Settings, Hotkey
- }
- Tooltip, Selected Gender: %Mode%,%A_ScreenWidth%, %A_ScreenHeight%
- IF (Mode = 1)
- {
- Skipper := "Male"
- }
- else
- {
- Skipper := "Female"
- }
- Tooltip, Sould skip: %Skipper%
- IF (Skipper = "Female")
- {
- Found := "Male"
- }
- IF (Skipper = "Male")
- {
- Found := "Female"
- }
- Tooltip, Sould find: %Found%
- ToolTip,Chatous Bot V3.0 `n`nPress %Key% to start the bot.,%A_ScreenWidth%, %A_ScreenHeight%
- WinActivate, Chatous - Random Chat - Google Chrome
- WinMaximize, Chatous - Random Chat - Google Chrome
- Hotkey, %Key%,LKey
- return
- LKey:
- ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, NewChat.png
- sleep, 200
- Click, %FoundX%, %FoundY% Left, 1
- MouseMove, %A_ScreenWidth%, %A_ScreenHeight%
- Tooltip, Chatous Bot V3.0`n`nSkipped: %counter% %Skipper% `nFound: %counterx% %Found%,%A_ScreenWidth%, %A_ScreenHeight%
- sleep, 300
- Toggle := !Toggle
- While Toggle
- {
- ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, %Skipper%.png
- If ErrorLevel = 0
- {
- Tooltip, Chatous Bot V3.0`n`nSkipped: %counter% %Skipper% `nFound: %counterx% %Found%,%A_ScreenWidth%, %A_ScreenHeight%
- IF (Msg2!="")
- {
- Send, %Msg2%
- sleep, 300
- send, {Enter}
- }
- sleep, 300
- send, {Esc 2}
- counter += 1
- }
- ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, Ended.png
- If ErrorLevel = 0
- {
- send, {Esc}
- }
- ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, %Found%.png
- If ErrorLevel = 0
- {
- sleep, 300
- counterx += 1
- IF (Snd = 1)
- {
- SoundPlay, Alert.wav
- sleep, 200
- }
- IF (Msg!="")
- {
- Send, %Msg%
- sleep, 300
- send, {Enter}
- }
- IF (Fre = 1)
- {
- ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, Friend.png
- sleep, 200
- Click, %FoundX%, %FoundY% Left, 1
- }
- IF (Keep = 1)
- {
- ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, NewChat.png
- sleep, 200
- Click, %FoundX%, %FoundY% Left, 1
- }
- else
- {
- break
- sleep, 400
- Tooltip, Chatous Bot V3.0`n`nSkipped: %counter% %Skipper% `nFound: %counterx% %Found%,%A_ScreenWidth%, %A_ScreenHeight%
- } ; Keep
- } ; If Found
- } ;Toggle
- ^S::Reload
Advertisement
Add Comment
Please, Sign In to add comment