Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    wr194t's Avatar
    Join Date
    Jul 2007
    Gender
    male
    Location
    Guess.
    Posts
    3,016
    Reputation
    21
    Thanks
    361
    My Mood
    Hot

    [Tutorial] How to make a dot crosshair. (Different to w00t?'s tutorial.)

    Ok first add this into your module or make another module and add this:

    Code:
    Private Declare Function SetWindowPos Lib "user32" _
             (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, _
              ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long      
    
    Const HWND_TOPMOST = -1
    Const SWP_NOMOVE = &H2  
    Const SWP_NOSIZE = &H1
    
    
    Public Function PutWindowOnTop (pFrm as Form)
      Dim lngWindowPosition As Long
      
      LngWindowPosition = SetWindowPos(pFrm.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE)
    
    End Function
    Now make a new form, go to properties, BackColor, Palette and pick the color you want (The color you choose will be the color of your crosshair.):



    Still in properties find BoderStyle and change it to 0 - None:



    Now find StartUpPosition and change it to 2 - CenterScreen:



    Now with the background of your form make it into a dot by making it smaller:



    After doing all that go to your 1st/main form.

    If you want buttons:
    Make two buttons for On and Off.

    Code for the On Button:
    Code:
    Call PutWindowOnTop(Form2)
    Form2.Show
    Code for the Off button:
    Code:
    Call PutWindowOnTop(Form2)
    Form2.Hide
    If you want hotkeys then make two timers.

    The first timer:
    Code:
    If GetKeyPress(vbKeyControl) And GetKeyPress(vbKeyC) Then
    Call PutWindowOnTop(Form2)
    Form2.Show
    The second timer:
    Code:
    If GetKeyPress(vbKeyControl) And GetKeyPress(vbKeyV) Then
    Call PutWindowOnTop(Form2)
    Form2.Hide
    You don't have to use Ctrl + V, C, you can use any hotkey(s) you desire.

    Note: Just to remind you that i didn't use ANYTHING from w00t?'s dot crosshair tutorial. I already made this myself and posted this on other forums days ago.

    Edit: I decided to add screenshots incase anyone has trouble with this tutorial.

    +rep me if this tutorial was useful/helpful to you.

    Credits: wr194t (AKA 5c0tt.)
    Last edited by wr194t; 10-27-2007 at 06:56 AM.

  2. The Following 9 Users Say Thank You to wr194t For This Useful Post:

    icuigorz (11-05-2007),imcool1 (11-04-2007),iNsaNe.eXe (11-14-2007),Jumpshot (11-05-2007),meolepper (11-12-2007),MJLover (03-21-2010),mpghhackersrock123 (02-17-2008),SMGamer (12-03-2007),sr25lover (11-06-2007)

  3. #2
    dragooon's Avatar
    Join Date
    Apr 2007
    Posts
    179
    Reputation
    9
    Thanks
    66
    The Hotkeys don't work!

  4. #3
    wr194t's Avatar
    Join Date
    Jul 2007
    Gender
    male
    Location
    Guess.
    Posts
    3,016
    Reputation
    21
    Thanks
    361
    My Mood
    Hot
    You don't have to use the ones as shown. Use any you want and what happens when you use them?

    PS: Thanks for the -rep -.-... In future don't just -rep someone. Atleast let them help you.
    Last edited by wr194t; 10-27-2007 at 03:16 PM.

  5. #4
    dragooon's Avatar
    Join Date
    Apr 2007
    Posts
    179
    Reputation
    9
    Thanks
    66
    Haha thanks i maked a fake Virus/systeem crash
    it's just a full red screen

  6. #5
    wr194t's Avatar
    Join Date
    Jul 2007
    Gender
    male
    Location
    Guess.
    Posts
    3,016
    Reputation
    21
    Thanks
    361
    My Mood
    Hot
    So have you got it working?

  7. #6
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    XD, I don't understand why people waste there time making viruses. They can be fixed in safe mode within 14 minutes, and you are likly to get a low rep for posting one.



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  8. #7
    wr194t's Avatar
    Join Date
    Jul 2007
    Gender
    male
    Location
    Guess.
    Posts
    3,016
    Reputation
    21
    Thanks
    361
    My Mood
    Hot
    Well i don't see the point in making some sort of a virus with this tutorial, it's just to make a crosshair.

  9. #8
    Jumpshot's Avatar
    Join Date
    Apr 2007
    Gender
    male
    Location
    chi-town
    Posts
    175
    Reputation
    12
    Thanks
    46
    when setting the hotkeys i get an error message that says...

    Compile Error:

    Sub or Function not defined.

    And then it highlights the GetKeyPress word

    I have vb6 and I am very very very new at this so any help would be awesome...

    Also... I would like to know how to make the dot into an actual cross hair. I made 2 lines on form2 but the background of the form will not go transparent. I found some code online to make the background transparent but none have worked or I haven't used them right. If you have an easier solution I would be glad to hear it.

    And maybe some VB tips for a learning nooblet. =)

  10. #9
    wr194t's Avatar
    Join Date
    Jul 2007
    Gender
    male
    Location
    Guess.
    Posts
    3,016
    Reputation
    21
    Thanks
    361
    My Mood
    Hot
    Quote Originally Posted by Jumpshot View Post
    when setting the hotkeys i get an error message that says...

    Compile Error:

    Sub or Function not defined.

    And then it highlights the GetKeyPress word

    I have vb6 and I am very very very new at this so any help would be awesome...

    Also... I would like to know how to make the dot into an actual cross hair. I made 2 lines on form2 but the background of the form will not go transparent. I found some code online to make the background transparent but none have worked or I haven't used them right. If you have an easier solution I would be glad to hear it.

    And maybe some VB tips for a learning nooblet. =)
    If you changed GeyKeyPress in your module then that's why you're getting that error and as for the crosshair, try to find a working transparent background code or something. That's all i can suggest.

  11. #10
    Jumpshot's Avatar
    Join Date
    Apr 2007
    Gender
    male
    Location
    chi-town
    Posts
    175
    Reputation
    12
    Thanks
    46
    I changed them to

    Code:
    Private Sub Timer1_Timer()
    If GetKeyPress(vbKeyControl) And GetKeyPress(vbKeyN) Then
    Call PutWindowOnTop(Form2)
    Form2.Show
    End Sub
    And...
    Code:
    Private Sub Timer1_Timer()
    If GetKeyPress(vbKeyControl) And GetKeyPress(vbKeyM) Then
    Call PutWindowOnTop(Form2)
    Form2.Hide
    End Sub
    Thats all I did...

    **EDIT**
    I changed them back to Ctrl+C and Ctrl+V and im still getting the same error.

  12. #11
    wr194t's Avatar
    Join Date
    Jul 2007
    Gender
    male
    Location
    Guess.
    Posts
    3,016
    Reputation
    21
    Thanks
    361
    My Mood
    Hot
    Did you edit "GetKeyPress" in your module? If you did then you have to also edit it in your hotkeys hacks. Also make sure your timers interval are both 1.

  13. #12
    Jumpshot's Avatar
    Join Date
    Apr 2007
    Gender
    male
    Location
    chi-town
    Posts
    175
    Reputation
    12
    Thanks
    46
    Hmm no I didn't, I am new at this sorry.

    Well I set both intervals at 1 like you said... but looking back on the module you told me to add...

    Code:
    Private Declare Function SetWindowPos Lib "user32" _
             (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, _
              ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long      
    
    Const HWND_TOPMOST = -1
    Const SWP_NOMOVE = &H2  
    Const SWP_NOSIZE = &H1
    
    
    Public Function PutWindowOnTop (pFrm as Form)
      Dim lngWindowPosition As Long
      
      LngWindowPosition = SetWindowPos(pFrm.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE)
    
    End Function
    Where in that do I edit to make the buttons change from c and v to n and m?

  14. #13
    condor01's Avatar
    Join Date
    Feb 2007
    Location
    In My Bed
    Posts
    765
    Reputation
    17
    Thanks
    91
    does anyone else find that the crosshair is not exactly in the middle of the screen or is that just me? like when you play warrock the crosshair is not over the real one?

  15. #14
    wr194t's Avatar
    Join Date
    Jul 2007
    Gender
    male
    Location
    Guess.
    Posts
    3,016
    Reputation
    21
    Thanks
    361
    My Mood
    Hot
    Quote Originally Posted by condor01 View Post
    does anyone else find that the crosshair is not exactly in the middle of the screen or is that just me? like when you play warrock the crosshair is not over the real one?
    It is slightly towards the down-left from the middle but it's close enough i guess.

  16. #15
    Jumpshot's Avatar
    Join Date
    Apr 2007
    Gender
    male
    Location
    chi-town
    Posts
    175
    Reputation
    12
    Thanks
    46
    I had that problem as well condor but all I did was set my windows resolution to the same resolution i use in warrock.. and it lines up perfectly...

    another fix would be to only turn on the xhairs when ur inside the game... not in the lobby but the actual game... i think that would fix it

Page 1 of 2 12 LastLast

Similar Threads

  1. (TuT)How to create red dot (crosshair)
    By w00t? in forum Visual Basic Programming
    Replies: 10
    Last Post: 10-28-2007, 06:40 AM
  2. [Tutorial] How to make your own undetected module in VB6
    By markfracasso11 in forum Visual Basic Programming
    Replies: 17
    Last Post: 10-15-2007, 09:34 AM
  3. [Tutorial] How to make your own undetected module in VB6
    By markfracasso11 in forum WarRock - International Hacks
    Replies: 22
    Last Post: 09-25-2007, 05:35 AM
  4. [Tutorial] How to make you'r first hack in CE!!!
    By Darky in forum WarRock - International Hacks
    Replies: 3
    Last Post: 07-29-2007, 11:02 AM
  5. {Tutorial} How to make a hack with VB
    By ltkort213 in forum WarRock - International Hacks
    Replies: 31
    Last Post: 06-10-2007, 03:15 PM