Simple "hold to spam attacks" AHK script. menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    Fugaku624's Avatar Member
    Reputation
    1
    Join Date
    Apr 2014
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [QUOTomp['
    Last edited by Fugaku624; 05-08-2018 at 04:07 PM.

    Simple "hold to spam attacks" AHK script.
  2. #17
    Fugaku624's Avatar Member
    Reputation
    1
    Join Date
    Apr 2014
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Mavrck48 View Post
    Winsane,

    First, thanks for the great script. However, I was trying to modify it to also include the ability to spam a shift + a key. For example, to spam shift + 5 by holding down shift + 5. I have attempted to modify your code to get this to work, but I can't seem to get it right. This is the code I'm trying. Any ideas?

    *5::
    Loop
    {
    GetKeyState, state, 5, p
    GetKeyState, shiftstate, Shift, p
    if (state = U)
    {
    break
    }
    else if (state = D) and (shiftstate = D)
    {
    Send, +{5}
    Sleep, 25
    }
    else
    {
    Send, {5}
    Sleep, 25
    }
    }

    ~1:: loop { GetKeyState, ScrollLockState, ScrollLock, T if (ScrollLock - Pastebin.com
    this is what I use. ^
    And if you want to have 5 and shift 5 different functions here's how. or they can have the same function just make 2 separate hotokeys 5 and shift5.
    EXAMPLE

    ~<+5:: ;(~:SetHotkey)(<:Left)(+:Shift)(!:Alt)(^:Ctrl)(#:WindowsKey)(5:Hotkey) Hotkey = (Left)Shift 5
    loop
    {
    GetKeyState, ScrollLockState, ScrollLock, T

    if (ScrollLockState = "U") {
    break
    } else {
    Send +5 ; What gets sent/output (+5=Shift 5)
    Sleep, 10 ; Sleep for 20 msec
    GetKeyState, state, 5, P ; Ket that is getting pressed I assume, (I still new)
    if state = U ; The key has been released, so break out of the loop.
    break
    }
    }
    return

    anything after a ; is a comment left by me and can be copied into .ahk script and will be ignored by the compiler.
    also this is were I found out how to do shit/alt modifiers.
    Hotkeys (Mouse, Joystick and Keyboard Shortcuts)
    Last edited by Fugaku624; 05-08-2018 at 05:01 PM.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. GW2 able to detect AHK scripts ?
    By taquito86 in forum Guild Wars 2
    Replies: 6
    Last Post: 10-27-2020, 01:29 PM
  2. AHK script for the ZK exploit (runs in background on VM's!)
    By seafunk in forum Diablo 3 Exploits
    Replies: 3
    Last Post: 06-25-2012, 01:10 PM
  3. need help with .ahk script for showing users input text
    By lovemymuffin in forum Programming
    Replies: 0
    Last Post: 03-21-2011, 02:11 AM
  4. [AHK Script] Multi-directional Hunter Disengage
    By CrazyCactuaR in forum World of Warcraft Bots and Programs
    Replies: 2
    Last Post: 04-03-2009, 09:11 AM
  5. Get the Ebon hold guards to attack you
    By Herleybob in forum World of Warcraft Exploits
    Replies: 20
    Last Post: 03-23-2009, 09:30 AM
All times are GMT -5. The time now is 08:38 PM. 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