detect if Ctrl R has been pressed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mague
    New Member
    • May 2007
    • 137

    detect if Ctrl R has been pressed

    Hey,

    Im a 13 yr old who needs help. I need a code which can detect if Ctrl R has been pressed. I cannot use e.key thingy because i have got text box on mi page so that doesnt work. I also need it to beable to be pressed and detected when my file is minimized

    If someone could help i would apressate it

    ty Mague
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by Mague
    Hey,

    Im a 13 yr old who needs help. I need a code which can detect if Ctrl R has been pressed. I cannot use e.key thingy because i have got text box on mi page so that doesnt work. I also need it to beable to be pressed and detected when my file is minimized
    This question keeps coming up from time to time. What you want to create is called a "keylogger" and to put it simply, we don't like them. Most of us go to great lengths to keep such things out of our systems, and don't like the idea of helping someone to create one. They are a major method used by scammers and spammers to steal information.

    Please don't ask for help in creating one.

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      I've agreed to reopen this thread after an explanation via Private Message. Apparently what Ty wants to do is create a program which will perform automated data entry ("auto typer") when Ctrl-R is pressed.

      I don't know how you're going to do it though, Ty. Perhaps you can search out some API calls to intercept Windows messages or something. If you try to install it on anyone else's PC, you can probably expect their antivirus software to object, since it will look like a keylogger.

      Comment

      • SammyB
        Recognized Expert Contributor
        • Mar 2007
        • 807

        #4
        Ty, I'm still confused. What do you really want to do? automated data entry ("auto typer") makes no sense to me. Go slow: I'm old, remember? ;o)>>> Sam

        Comment

        • Mague
          New Member
          • May 2007
          • 137

          #5
          The programing im making has 3 textboxs. the textboxs do:
          1st: You type in What you want to say over and over again
          2nd: seconds in between
          3rd: How many times to say it

          Alright now

          To activate it you press Ctrl R (r meaning Run) on the client you want it to type to. I couldnt do a button because
          1 Doesnt look gud
          2 It would be easier

          Also i despriatly need the Ctrl S because if i want to stop it before the 3rd text box runs (times to say) i cant open the Application easier then i can press Ctrl s. The only problem with the e.keycode is that when u have textbox on your form it doesnt work and it also doesnt work if it minimized. I also know its possible because i have seen it done before. I also know it was done with VB because i got a Decomplier and searched for all the VB run programs on mi computer and it was one of them


          Also Killer my name mague and ty mean Thank you lol doesnt matter thou

          anyways Ty
          Mague
          Last edited by Mague; May 30 '07, 06:14 AM. Reason: Doesnt sound write

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            Oops! :)

            By the way. If you have a decompiler, why don't you decompile the existing program, and see how they did it?

            Comment

            • Mague
              New Member
              • May 2007
              • 137

              #7
              The decompiler doesnt let you see the source its all like jiberish

              you can get them from
              Recover lost source code with VB Decompiler. Advanced tool for decompiling Visual Basic 6.0 (Native/P-Code), VB.NET, and C# applications. Malware analysis supported.

              if u were intrested

              All it does is give u all these anoying codes

              Gud idea thou

              Ty anyways
              Mague

              Comment

              • Killer42
                Recognized Expert Expert
                • Oct 2006
                • 8429

                #8
                I had a look there, but couldn't find a de-compiler. Just lots of links to other pages of links (I hate that).

                Which de-compiler did you use? (Are you sure it wasn't the "convert VB to C" one? Maybe you're trying to read C code...)

                Comment

                • SammyB
                  Recognized Expert Contributor
                  • Mar 2007
                  • 807

                  #9
                  Originally posted by Killer42
                  Maybe you're trying to read C code...)
                  Is that possible? ;o)>>>

                  Comment

                  • Mague
                    New Member
                    • May 2007
                    • 137

                    #10
                    The decompiler is vbDeformer



                    ty for all you help
                    Mague

                    Comment

                    • Mague
                      New Member
                      • May 2007
                      • 137

                      #11
                      Any ideas on how to detect keys :)

                      Comment

                      • Atran
                        Contributor
                        • May 2007
                        • 319

                        #12
                        You want detect keys in your Windows Form Application or in the Windows System.

                        Comment

                        • CoMPMStR
                          New Member
                          • Jun 2007
                          • 8

                          #13
                          I think you're looking for Hotkeys. Here's a couple of sites. The first is for VB6 and the second is for .NET:




                          I hope this helps.

                          Comment

                          • Atran
                            Contributor
                            • May 2007
                            • 319

                            #14
                            Hello, This code is VB .Net.
                            Copy all the code (But make sure your form name is Form1) and paste it to your code page.

                            [CODE=vb]
                            Public Class Form1

                            'Making new Label.
                            Dim myLabel As New Label()

                            'Form begin loading.
                            Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As EventArgs) Handles MyBase.Load
                            MessageBox.Show ("If you click Ctrl + Q, the Application will exit", "Attention" , MessageBoxButto ns.OK, MessageBoxIcon. Warning)
                            '------------------------------
                            'myLabel Properties.
                            myLabel.Locatio n = New Point(12, 70)
                            myLabel.Size = New Size(200, 20)
                            myLabel.Text = "Click Ctrl + R."
                            '-------------------------------
                            'We add myLabel to the Form.
                            Controls.Add(my Label)
                            End Sub

                            'Form1_KeyDown, you can also use: myLabel_KeyDown .....
                            Private Sub Form1_KeyDown(B yVal sender As System.Object, ByVal e As System.Windows. Forms.KeyEventA rgs) Handles MyBase.KeyDown
                            'If we click Ctrl.
                            If (e.Control) Then
                            If (e.KeyCode = Keys.R) Then
                            myLabel.Text = "You Click Ctrl + R."
                            End If
                            If (e.KeyCode = Keys.Q) Then
                            Close()
                            End If
                            End If
                            End Sub
                            End Class

                            [/CODE]

                            Hope this was helful.
                            Last edited by Killer42; Jun 4 '07, 02:51 AM. Reason: Change [CODE] to [CODE=vb]

                            Comment

                            • Mague
                              New Member
                              • May 2007
                              • 137

                              #15
                              Thanks but i need itto work even when the program is minimized so thatthe can select the client they want to type in


                              Ty every1 for ur help
                              Mague

                              Comment

                              Working...