Results 1 to 7 of 7
  1. #1
    suchisgood's Avatar
    Join Date
    Feb 2014
    Gender
    female
    Posts
    902
    Reputation
    10
    Thanks
    559
    My Mood
    Angelic

    Smile Simple Key Recorder & Play version 0.1

    How to install
    Well yer m8 it goes in
    garrysmod/lua/autorun/client/keyrecorder.lua make sure to add the code aswell

    How to use
    lua_openscript_cl autorun/client/keyrecorder.lua

    Then type

    SuchIsGood_RecordKeys_Enable - To record keys Enable / Disable in the function!
    SuchIsGood_PlayKeysBack - Play the keys back you pressed Enable / Disable in the function!
    SuchIsGood_UnBindFuck - UnPresses the keys if they mess up!

    This is currently version 0.1 expect bugs, Updates in the future, Via pastebin!

    Code:
    print("Auto key recoder loaded, Coded by SuchIsGood!")
    local SuchIsGood = {}
    
    SuchIsGood.RecordKeys = {}
    
    SuchIsGood.RecordKeys.BindUse = {"-forward","-back","-moveright","-moveleft","-duck","-jump"}
    SuchIsGood.RecordKeys.BindUsed = {"+forward","+back","+moveright","+moveleft","+duck","+jump"}
    
    SuchIsGood.RecKey_Bool = false
    SuchIsGood.PlayKey_Bool = false
    
    local i = 0
    local Play_Rec_Int = 0
    
    hook.Add("PlayerBindPress", "PBP", function(p,k,b)
    	if SuchIsGood.RecKey_Bool == false then return end
    	if table.HasValue(SuchIsGood.RecordKeys.BindUsed, k) then
    		i = i + 1
    		print("Recorded Bind: "..k)
    		local mbk = string.gsub(k,"+","-")
    		SuchIsGood.RecordKeys[i] = {People = p, PlusKey = k, MinusKey = mbk, Bind = b}
    	end
    end)
    
    concommand.Add("SuchIsGood_RecordKeys_Enable", function(p,c,a)
    	if SuchIsGood.RecKey_Bool == false then
    		SuchIsGood.RecKey_Bool = true
    		print("Recording Keys!")
    	elseif SuchIsGood.RecKey_Bool == true then
    		SuchIsGood.RecKey_Bool = false
    		print("Stopped Recording Keys!")
    	end
    end)
    
    concommand.Add("SuchIsGood_PlayKeysBack", function(p,c,a)
    	if SuchIsGood.PlayKey_Bool == false then
    		SuchIsGood.PlayKey_Bool = true
    		print("Playing Back!")
    	elseif SuchIsGood.PlayKey_Bool == true then
    		SuchIsGood.PlayKey_Bool = false
    		print("Stopped Playing Back!")
    	end
    end)
    
    concommand.Add("SuchIsGood_UnBindFuck", function(p,c,a)
    	for _,unfuckery in pairs(SuchIsGood.RecordKeys.BindUse) do
    		LocalPlayer():ConCommand(tostring(unfuckery))
    	end
    end)
    
    timer.Create("SuchIsGood.PlayKey_Bool", 1, 0, function()
    	if SuchIsGood.PlayKey_Bool == false or i == 0 then return end
    	Play_Rec_Int = Play_Rec_Int + 1
    		print("Playing Key "..SuchIsGood.RecordKeys[Play_Rec_Int].PlusKey)
    		LocalPlayer():ConCommand(SuchIsGood.RecordKeys[Play_Rec_Int].PlusKey)
    		timer.Simple(0.2, function() LocalPlayer():ConCommand(SuchIsGood.RecordKeys[Play_Rec_Int].MinusKey) end)
    	if i == Play_Rec_Int then
    		print("Unbind Fucking Keys")
    		RunConsoleCommand("SuchIsGood_UnBindFuck")
    	end
    end)
    Code:
    https://pastebin.com/B7r8581X
    Last edited by suchisgood; 06-29-2014 at 01:25 PM.

  2. #2
    Libbykona's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Location
    With Garry Newman
    Posts
    20
    Reputation
    10
    Thanks
    3
    My Mood
    Bitchy
    Wtf is a key?





  3. #3
    trunk208's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    31
    Reputation
    10
    Thanks
    0
    My Mood
    Cheerful
    Quote Originally Posted by Libbykona View Post
    Wtf is a key?
    Just bind it for a key

  4. #4
    suchisgood's Avatar
    Join Date
    Feb 2014
    Gender
    female
    Posts
    902
    Reputation
    10
    Thanks
    559
    My Mood
    Angelic
    bind r SuchIsGood_RecordKeys_Enable
    bind p SuchIsGood_PlayKeysBack
    bind u SuchIsGood_UnBindFuck

    A key is when you press w to go forward therefore w is the key, How ever if you read the description when you press keys you can record them and play it back this is only version 0.1.
    Last edited by suchisgood; 06-30-2014 at 06:37 AM.

  5. #5
    CoLDarkness's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    On the face of 100$ bill ( ͡° ͜ʖ ͡°)
    Posts
    187
    Reputation
    10
    Thanks
    24
    My Mood
    Devilish
    Quote Originally Posted by suchisgood View Post
    bind r SuchIsGood_RecordKeys_Enable
    bind p SuchIsGood_PlayKeysBack
    bind u SuchIsGood_UnBindFuck

    A key is when you press w to go forward therefore w is the key, How ever if you read the description when you press keys you can record them and play it back this is only version 0.1.
    Point of this?

  6. #6
    polivilas's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Behind you.
    Posts
    82
    Reputation
    10
    Thanks
    197
    My Mood
    Fine
    hardcore deathrun run bot

  7. #7
    suchisgood's Avatar
    Join Date
    Feb 2014
    Gender
    female
    Posts
    902
    Reputation
    10
    Thanks
    559
    My Mood
    Angelic
    Quote Originally Posted by polivilas View Post
    hardcore deathrun run bot
    Quote Originally Posted by CoLDarkness View Post
    Point of this?
    It's going to be a bhop recorder movement, Terrible guessers, Someone requested because they're terrible at lua.

    https://www.mpgh.net/forum/782-garrys...-recorder.html
    Last edited by suchisgood; 06-30-2014 at 10:22 AM.

Similar Threads

  1. Replies: 3
    Last Post: 02-22-2012, 02:01 PM
  2. [Release] Simple Key Binds For Notebook Users
    By thedoctor2010 in forum Vindictus Hacks & Cheats
    Replies: 18
    Last Post: 05-15-2011, 05:22 PM
  3. [Release] Shugeevan Simple Hack v4.0 [Hotkey Version]
    By shugeevan in forum Combat Arms Hacks & Cheats
    Replies: 97
    Last Post: 10-20-2010, 09:58 PM
  4. Key Recorder
    By ppl2pass in forum Combat Arms Discussions
    Replies: 4
    Last Post: 02-05-2010, 11:04 PM
  5. {tut} How to make simple key logger
    By sigmahero in forum Visual Basic Programming
    Replies: 4
    Last Post: 12-09-2009, 12:08 AM