Results 1 to 2 of 2
  1. #1
    dominator012's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    142
    Reputation
    2
    Thanks
    32
    My Mood
    Bored

    Crosshair script by dominator012.

    Havent seen one yet and first post of a "hack".
    Anyways hope u like it! (compile with auto hotkey)! Im pretty sure vac doesn't banned for this but not 100% therefore im nont responsible for any of that. Anyways hope you like it again and hope to see you guys in the near future. Great thanks to haley williams or something like that for inspiring me. Window mode ONLY


    Code:
    ; This script can make crosshairs appear on your screen.
    ; You may lock their position.
    ;
    ; Start script => nothing will happen (unless you change start-up behaviour)
    ; Use Ctrl-Numeric0         to toggle display of crosshairs
    ; Use Ctrl-NumericDot       to lock/unlock position of crosshairs
    ; Use Numeric0 & NumericDot to quit program
    
    
    ; === Start-up stuff
    #NoEnv
    
    SetWinDelay 0
    Coordmode Mouse, Screen
    Restart:
    Selecting := False
    OldX := -1, OldY := -1
    Locked  := False
    Visible := False         ;<= determine start-up behaviour
    
    ; use VirtualScreen here to support multiple monitors
    SysGet, VirtualScreenWidth, 78
    SysGet, VirtualScreenHeight, 79
    ID1 := Box(2,1,VirtualScreenHeight*2)
    ID2 := Box(3,VirtualScreenWidth*2,1)
    
    SetTimer Ruler, 10
    if (Visible == False) {
        WinHide ahk_id %ID1%,,
        WinHide ahk_id %ID2%,,
    }
    Return
    
    
    ; === Toggle lock of crosshairs
    ;KeyWait, RButton, D
    ^NumpadDot::
    ;RButton::             ;using hotkey instead of waiting for a key keeps the right click from calling other behavior during script
    if (Visible == False) {
        WinShow ahk_id %ID1%,,
        WinShow ahk_id %ID2%,,
       Visible := True
    }
    if (Locked == False) {
       SetTimer Ruler, Off
       Locked := True
       }
    else {
       SetTimer Ruler, 10
       Locked := False
       }
    Return
    
    
    ; === Toggle display of crosshairs
    ^Numpad0::
    if (Visible == True) {
        WinHide ahk_id %ID1%,,
        WinHide ahk_id %ID2%,,
        Visible := False
       }
    else {
        WinShow ahk_id %ID1%,,
        WinShow ahk_id %ID2%,,
        Visible := True
    }
    Return
    
    
    ; === Terminate program
    Numpad0::Send {Blind}{Numpad0}   ; necessary to make Numpad0 work normally
    Numpad0 & NumpadDot::
    ;Escape::
    OutOfHere:
    ExitApp
    
    
    
    
    ; === Subroutines
    Ruler:
       MouseGetPos RulerX, RulerY
       ;RulerX := RulerX - 5  ;enable to offset the mouse pointer a bit
       ;RulerY := RulerY - 5
       If (OldX <> RulerX)
         OldX := RulerX
       If (OldY <> RulerY)
          OldY := RulerY
       WinMove ahk_id %ID1%,, %RulerX%, % RulerY-VirtualScreenHeight    ;create crosshair by moving 1/2 length of segment
       WinMove ahk_id %ID2%,, % RulerX-VirtualScreenWidth, %RulerY%
       ;ToolTip (Ctrl-0 to anchor)
    Return
    
    Box(n,wide,high)
    {
       Gui %n%:Color, 0,0                  ; Black
       Gui %n%:-Caption +ToolWindow +E0x20 ; No title bar, No taskbar button, Transparent for clicks
       Gui %n%: Show, Center W%wide% H%high%      ; Show it
       WinGet ID, ID, A                    ; ...with HWND/handle ID
       Winset AlwaysOnTop,ON,ahk_id %ID%   ; Keep it always on the top
       WinSet Transparent,255,ahk_id %ID%  ; Opaque
       Return ID
    }
    Last edited by Heartview; 09-10-2011 at 05:07 AM.

  2. #2
    Heartview's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    KY Cygni
    Posts
    9,208
    Reputation
    717
    Thanks
    2,872
    Texture Mods


    Obedear, the sky is low

Similar Threads

  1. [Release] CrossHair By Script-taha
    By Script-taha in forum Combat Arms Europe Hacks
    Replies: 26
    Last Post: 06-21-2010, 10:26 AM
  2. Habbohotel Scripts
    By h0ang in forum General Game Hacking
    Replies: 8
    Last Post: 05-18-2007, 06:19 AM
  3. Crosshair 1.0.7 (like no scope)
    By vega in forum WarRock - International Hacks
    Replies: 57
    Last Post: 01-12-2007, 03:33 PM
  4. Replies: 1
    Last Post: 07-05-2006, 07:20 AM
  5. OMG I SO STUCK!!!(Java Script "n" html problem
    By jeremywilms in forum Programming
    Replies: 11
    Last Post: 06-15-2006, 02:23 PM