[LS:RP] Vehicle Unscrambler

VictorXY

Well-Known Member
Joined
Jul 24, 2013
Messages
45
Likes
0
Points
56
#1
How it works:
GIF

Requirements:
1. Python 3.5.1 (After you've installed it, go to CMD and type : "pip install requests" ) to install the dependency.
2. Autohotkey
3. Script (You will need winrar or equivalent) <-- The .ahk in here is outdated. Some words may not be correct. Update with code below.

How to use:
1. Unzip both files at the same place (e.x desktop) (it's important that you don't change the name of the .py file, and that they're both at the same location)
2. Run the .ahk file as admin preferably.
3. Log in game, open the chat, type a scrambled word (e.x "dgo") and hit right alt. 
4. The word is unscrambled, pasted and entered in chat as /uns dog.

If you can type relatively fast, you can unscramble any vehicle within 10-15 seconds. If your connection is very slow, it might take longer though.
If you edit the AHK, you'll notice that some words are manually changed before pasting. That's become of anagrams such as CHINA and CHAIN. If you need to add more, follow the format.
Feel free to use/edit the code.

Source code for the .ahk (updated):
Code:
Ralt::
Send ^a
clipboard=
Send ^c
ClipWait, 0
Run unscrambler.py %clipboard%,,Hide
While !FileExist( "texttext.txt" )
  Sleep 50
FileReadLine, final, texttext.txt, 1
if(final="ABBE"){
final:="BABE"
}if(final="DIRE"){
final:="RIDE"
}if(final="ANEMIC"){
final:="CINEMA"
}if(final="HARDY"){
final:="HYDRA"
}if(final="WEIR"){
final:="WIRE"
}if(final="CHAIN"){
final:="CHINA"
}if(final="CARET"){
final:="CRATE"
}if(final="MAPLES"){
final:="SAMPLE"
}if(final="ONAGER"){
final:="ORANGE"
}if(final="PERI"){
final:="PIER"
}if(final="FERLY"){
final:="FLYER"
}if(final="HEIR"){
final:="HIRE"
}if(final="ARDEB"){
final:="BREAD"
}if(final="ALTS"){
final:="LAST"
}if(final="NIPA"){
final:="PAIN"
}if(final="EATH"){
final:="HEAT"
}if(final="ALOFT"){
final:="FLOAT"
}if(final="SETT"){
final:="TEST"
}if(final="OURS"){
final:="SOUR"
}if(final="POONS"){
final:="SPOON"
}if(final="ASPS"){
final:="PASS"
}if(final="PRIDES"){
final:="SPIDER"
}if(final="ALES"){
final:="SALES"
}if(final="EMOTER"){
final:="REMOTE"
}if(final="LIEN"){
final:="LINE"
}if(final="HELO"){
final:="HOLE"
}if(final="FILLER"){
final:="REFILL"
}if(final="EASEL"){
final:="LEASE"
}if(final="LAME"){
final:="MALE"
}if(final="CLOD"){
final:="COLD"
}if(final="DOTIER"){
final:="EDITOR"
}if(final="CAPE"){
final:="PACE"
}if(final="FORTS"){
final:="FROST"
}if(final="HEROS"){
final:="HORSE"
}if(final="CRISTA"){
final:="RACIST"
}if(final="DEAVE"){
final:="EVADE"
}if(final="MEOUS"){
final:="MOUSE"
}if(final="SIGN"){
final:="SING"
}if(final="ERINGO"){
final:="IGNORE"
}if(final="CAGER"){
final:="GRACE"
}if(final="CREWS"){
final:="SCREW"
}if(final="DORP"){
final:="DROP"
}if(final="APOS"){
final:="SOAP"
}if(final="PEINS"){
final:="SPINE"
}if(final="BARE"){
final:="BEAR"
}if(final="SNOOP"){
final:="SPOON"
}if(final="LAMP"){
final:="PALM"
}if(final="EARTH"){
final:="HATER"
}if(final="PENIS"){
final:="SPINE"
}


clipboard:=final
Send ^v
Send ^a
sleep 50
Sendinput {DELETE}
sleep 50
Sendinput {LEFT}{LEFT}{LEFT}}/uns{SPACE}
Send ^v
Sendinput {ENTER}
FileDelete, texttext.txt ; delete temp files
Return
 
Top