180 degree turn script menu

User Tag List

Results 1 to 4 of 4
  1. #1
    180degree's Avatar Member
    Reputation
    1
    Join Date
    Jun 2017
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    180 degree turn script

    Hey,

    Been looking all over for a simple 180 degree AHK turn script for Overwatch (with adjustable turn speed) to no avail.

    Happy to pay if anyone can hook me up.

    Thanks.

    180 degree turn script
  2. #2
    syscall78's Avatar Banned
    Reputation
    55
    Join Date
    Jan 2017
    Posts
    159
    Thanks G/R
    24/52
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is free you can test.

    Code:
    #SingleInstance Force
    #Persistent
    #NoEnv
    #InstallKeybdHook
    #InstallMouseHook
    #MaxThreads 255
    #MaxMem 4095
    #MaxHotkeysPerInterval 99000000
    #HotkeyInterval 99000000
    SetMouseDelay, -1
    SendMode, Input
    SetBatchLines, -1
    SetWorkingDir, %A_ScriptDir%
    sleep(period := 1, Mode := "P") 
    {
        static Frequency, MinSetResolution, PID
        if (Mode = "P")
        {
            pBatchLines := A_BatchLines
            SetBatchLines, -1
            if !Frequency
                DllCall("QueryPerformanceFrequency", "Int64*", Frequency)
            DllCall("QueryPerformanceCounter", "Int64*", Start)
            Finish := Start + ( Frequency * (period/1000))
            loop
                DllCall("QueryPerformanceCounter", "Int64*", Current)
            until (Current >= Finish)
            SetBatchLines, %pBatchLines%
        }
        return
    }
    
    global spin_add, spin_sub, spin_total
    
    $NumpadAdd::_spin_add()
    
    $NumpadSub::_spin_sub()
    
    $Right:: ; Spin Test Key
    spin_total :=(spin_add - spin_sub) * 10
    Loop, 10 {
    	Sleep 1
    	SendMouse_RelativeMove(spin_total, 0)
    } return
    
    _spin_add(){ ; Adds Units to Spin Duration
    if (spin_total < 50000){
    	++spin_add
    	ToolTip, spin is now`n%spin_total%`n%spin_sub%`n%spin_add%
    	Sleep 1000
    	ToolTip
    }else{
    	send, {NumpadAdd}
    	}
    }
    
    _spin_sub(){
    if (spin_total >= 49999) {
    	--spin_sub
    	ToolTip, spin is now`n%spin_total%`n%spin_sub%`n%spin_add%
    	Sleep 1000
    	ToolTip
    }else{
    	send, {NumpadSub}
    	}
    }
    
    SendMouse_RelativeMove(x, y){ ; send fast relative mouse moves
    	DllCall("mouse_event", "UInt", 0x01, "UInt", x, "UInt", y) ; move
    }
    
    $NumpadMult:: ; Clears Spin Units to 0
    	spin_add:=0
    	spin_sub:=0
    return
    
    middle_wheel:
    *$MButton:: ; 180 Degree Turn
    if (A_ThisHotKey && A_TimeSincePriorHotkey > 100){	
    	SendMouse_RelativeMove(spin_total, 0)
    }return
    
    *$WheelLeft:: ; 90 Degree Left
    if (A_ThisHotKey && A_TimeSincePriorHotkey > 100){
    	SendMouse_RelativeMove(-spin_total/2, 0)
    }return
    
    *$WheelRight:: ; 90 Degree Right
    if (A_ThisHotKey && A_TimeSincePriorHotkey > 100){
    	SendMouse_RelativeMove(spin_total/2, 0)
    }return

  3. #3
    180degree's Avatar Member
    Reputation
    1
    Join Date
    Jun 2017
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @syscall78 Tried it, does not seem to do anything, tried borderless, windowed etc. Can't get it to work at all Thanks a lot for trying to help out though, much appreciated.

    EDIT: Or do I need to edit anything within the script to see any effect at all? I never dabbled with AHK before so no idea if I need to change any of the data to actually make it do something. (I imagine it could be set to do nothing and that I am supposed to tweak it until it does what i want with my sensitivity etc?)
    Last edited by 180degree; 06-02-2017 at 03:56 PM.

  4. #4
    syscall78's Avatar Banned
    Reputation
    55
    Join Date
    Jan 2017
    Posts
    159
    Thanks G/R
    24/52
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes you need the modifier to adjust the keys and speed

Similar Threads

  1. Turn around 180 degrees using macro (useful for automation scripts)
    By marina_v1 in forum WoW UI, Macros and Talent Specs
    Replies: 1
    Last Post: 11-15-2012, 05:15 PM
  2. [Idea] Script to turn Gems and Pages different color
    By Toldorn in forum Diablo 3 General
    Replies: 6
    Last Post: 05-28-2012, 09:52 PM
  3. Replies: 3
    Last Post: 01-20-2011, 02:38 PM
  4. Spin a Car 180 Degrees
    By falarious in forum Community Chat
    Replies: 0
    Last Post: 08-28-2008, 01:30 PM
  5. Replies: 20
    Last Post: 01-27-2008, 06:15 AM
All times are GMT -5. The time now is 04:30 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search