• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 8 of 8

    Thread: C# Trainer Help

    1. #1
      Newbie
      L33T
       
      Coding
       
      Mikail601's Avatar
      Join Date
      Jan 2014
      Posts
      10
      Thanks (-->)
      0
      Thanks (<--)
      0

      Exclamation C# Trainer Help

      John Kittz
      Hey guys, i've followed the tutorial of Fleep when he was making a c# trainer. So i've made it the program works 100% but i want to add something extra like a textbox wich changes the attackspeed value.

      So as i know he did this:

      bool Attackspeed = false;
      String AttackPointer = "Pointer";
      int[] AttackOffset = { Offset };
      [B]int AttackValue = VALUE;[/B] <-- Here is the value that he entered (3) but i want this to attach it to a textbox so the user of the hack can change the value without changing it in the source. By adding a textbox or numericupdown pad. My question is how do i do this?

      Here is the other part where this [B]attackvalue[/B] comes in that writes it into the game

      #region AttackSpeed
      if (AttackSpeed)
      {
      myMemory.ReadProcess = myProcess[0];
      myMemory.Open();
      int pointerAddress = HexToDec(AttackPointer);
      int[] pointerOffset = AttackOffset;
      int bytesWritten;
      [B] byte[] valueToWrite = BitConverter.GetBytes(AttackValue I Want textbox or numericupdown here);[/B]
      string writtenAddress = myMemory.PointerWrite((IntPtr)pointerAddress, valueToWrite, pointerOffset, out bytesWritten);
      myMemory.CloseHandle();


      I will be thankfull if ucan help me <3
      Last edited by Spock; 01-25-2014 at 04:40 AM. Reason: Added the C# code tags.

    2. #2
      Coder
      C++(Qt)/C# Coder
       
      Coding
       
      Cyrion's Avatar
      Join Date
      Dec 2013
      Location
      Canada,Québec
      Posts
      110
      Thanks (-->)
      6
      Thanks (<--)
      15
      Use event TextChanged on your Textbox then you cast the text of your textbox into Int.

      Actual project in progress :
      - Cloud File storage using Qt (In the same style as Dropbox)

      C# Trainer Help

    3. #3
      Newbie
      L33T
       
      Coding
       
      Mikail601's Avatar
      Join Date
      Jan 2014
      Posts
      10
      Thanks (-->)
      0
      Thanks (<--)
      0
      Can u please make an example? Im new into C#

    4. #4
      Hacker
      Working, University, Coding ..
       
      Drinking
       
      GAFO666's Avatar
      Join Date
      Aug 2012
      Location
      if(PlayerBase << 16) return IdontKnow("yolo");
      Posts
      531
      Thanks (-->)
      33
      Thanks (<--)
      102
      uhm as far i can see -> AttackValue = Convert.ToInt32(textboxname.Text);

      Leave a rep+ if I helped you with my answer
      Dont tell me to google something, first thing I do before asking is searching on my own.

    5. #5
      Coder
      C++(Qt)/C# Coder
       
      Coding
       
      Cyrion's Avatar
      Join Date
      Dec 2013
      Location
      Canada,Québec
      Posts
      110
      Thanks (-->)
      6
      Thanks (<--)
      15
      Just go in your TextBox events tab and double clic on TextChanged event , and it will redirect your to the function , and you put the code that GAFO just gave you ..

      EDIT: Learn the bisic of the language before starting to hack , we'll avoid these kind of easy question. :P

      Actual project in progress :
      - Cloud File storage using Qt (In the same style as Dropbox)

      C# Trainer Help

    6. #6
      Hacker
      Working, University, Coding ..
       
      Drinking
       
      GAFO666's Avatar
      Join Date
      Aug 2012
      Location
      if(PlayerBase << 16) return IdontKnow("yolo");
      Posts
      531
      Thanks (-->)
      33
      Thanks (<--)
      102
      Quote Originally Posted by Cyrion View Post
      Just go in your TextBox events tab and double clic on TextChanged event , and it will redirect your to the function , and you put the code that GAFO just gave you ..

      EDIT: Learn the bisic of the language before starting to hack , we'll avoid these kind of easy question. :P
      yeh .. Cyrion is totaly right, learn the coding lang first Oo

      aaah btw if you still dont find the textchanged event .. -> https://www7.pic-upload.de/24.01.14/1a1sdzuw1rh6.png

      Leave a rep+ if I helped you with my answer
      Dont tell me to google something, first thing I do before asking is searching on my own.

    7. #7
      Global Moderator
      give me my colorz back
      FeelsBadMan
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340
      AttackValue = NumericUpDownX.Value

      You have to go to the designer, add a button e.g. and the numericupdown and then double click the button for the button_click event in which you write that..

    8. #8
      Hacker
      Working, University, Coding ..
       
      Drinking
       
      GAFO666's Avatar
      Join Date
      Aug 2012
      Location
      if(PlayerBase << 16) return IdontKnow("yolo");
      Posts
      531
      Thanks (-->)
      33
      Thanks (<--)
      102
      Cheats'n'Trainers
      lol he can also write it into the numericUpDown value_changed event if you do it this way ~

      Leave a rep+ if I helped you with my answer
      Dont tell me to google something, first thing I do before asking is searching on my own.

    Similar Game Hacker Threads

    1. [Trainer+Source]Bioshock Infinite +17 Trainer
      By Syperus in forum Other Game Hacks
      Replies: 14
      Last Post: 05-26-2013, 09:45 PM

    Tags for this Thread