Results 1 to 15 of 15
  1. #1
    Contributor (ノಠ益ಠ)ノ彡ɹǝɥɔʇɐM Winsane's Avatar
    Reputation
    206
    Join Date
    Oct 2010
    Posts
    350
    CoreCoins
    72

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)

    Simple "hold to spam attacks" AHK script.



    Donate to Remove Ads, Get ShoutBawx - Elite Forum Access
    I have allways used this in mmos to get rid of the button mashing, it's a really simple script that allows you to hold any hotkey (1-9) and it will spam that key until you release it.
    You toggle it on and off with numlock.

    [Autohotkey] Simple hotkey spam - Pastebin.com

    If you dont have autohotkey already, here is a link to the download:

    AutoHotkey Download

    Maybe someone will find this useful :)

  2. #2
    Master Sergeant
    Reputation
    45
    Join Date
    Feb 2010
    Posts
    98
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Im sorry but im still trying to learn the API for AutoHotKey

    Your script it doesnt define a process like ifWInDef process

    Do we have to modify your script to attach its self to the SWTOR process?

  3. #3
    Contributor (ノಠ益ಠ)ノ彡ɹǝɥɔʇɐM Winsane's Avatar
    Reputation
    206
    Join Date
    Oct 2010
    Posts
    350
    CoreCoins
    72

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Quote Originally Posted by Hex00010 View Post
    Im sorry but im still trying to learn the API for AutoHotKey

    Your script it doesnt define a process like ifWInDef process

    Do we have to modify your script to attach its self to the SWTOR process?
    AHK doesn't need a defined process for a script to work, the script i posted works in any game (at least it should). If you only want it to be able to send keys to swtor you can add that line though.

  4. #4
    Sergeant
    Reputation
    7
    Join Date
    Mar 2009
    Posts
    55
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    going home to test this out...if it works +rep to you sir..
    been trying to use the script i used for wow . but it never works...
    hopefully urs work

    cheers

    sorry this script didnt work.

    have u actually tried this or u assume it work as it works on other games?
    Last edited by unclesam77; 12-20-2011 at 09:01 PM.

  5. #5
    Contributor (ノಠ益ಠ)ノ彡ɹǝɥɔʇɐM Winsane's Avatar
    Reputation
    206
    Join Date
    Oct 2010
    Posts
    350
    CoreCoins
    72

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Quote Originally Posted by unclesam77 View Post
    going home to test this out...if it works +rep to you sir..
    been trying to use the script i used for wow . but it never works...
    hopefully urs work

    cheers

    sorry this script didnt work.

    have u actually tried this or u assume it work as it works on other games?
    I haven't actually been able to try it yet, still waiting for my game to arrive in my mailbox.. Should have just bought it online and downloaded it..

    I really don't see why it wouldnt work in this game, i have used it in wow, aion, runes of magic, warhammer online, maplestory, dragon nest ect.

    Im sorry if it doesn't work, ill probably find a way to fix it when i just get my ****ing copy of the game..

    Yes i mad.

  6. #6
    Contributor (ノಠ益ಠ)ノ彡ɹǝɥɔʇɐM Winsane's Avatar
    Reputation
    206
    Join Date
    Oct 2010
    Posts
    350
    CoreCoins
    72

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    There, i got my copy..

    And this script works just fine for me, you must be doing something wrong.

  7. #7
    Member
    Reputation
    1
    Join Date
    Apr 2010
    Posts
    7
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    I just tried this out and it works perfect, thanks.

    For those of you who are currently having problems, try to run it as administrator on the main AHK program.

  8. #8
    Member
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    7
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    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
    }
    }

  9. #9
    Member
    Reputation
    1
    Join Date
    Jan 2012
    Posts
    1
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    what exactly does this do i dont understand

  10. #10
    Contributor (ノಠ益ಠ)ノ彡ɹǝɥɔʇɐM Winsane's Avatar
    Reputation
    206
    Join Date
    Oct 2010
    Posts
    350
    CoreCoins
    72

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Quote 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
    }
    }
    I can't seem to get it to work either, i'll post back if i find a solution for this!

    Quote Originally Posted by sabletag View Post
    what exactly does this do i dont understand
    When you hold for example "1" it presses "1" automatically untill you release it.

  11. #11
    Member
    Reputation
    1
    Join Date
    Aug 2007
    Posts
    1
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)

    Spam

    This:

    $1::
    IfWinActive, Star Wars: The Old Republic
    {
    getkeystate, KeyOut, 1
    if KeyOut = D
    Winactivate, Star Wars
    sendplay 1
    }
    else
    {
    send 1
    }
    return

  12. #12
    Member
    Reputation
    1
    Join Date
    Feb 2012
    Posts
    2
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    This is really helpful. I was looking to add a bit of functionality though. I want to toggle a button but I don't know how to map it. Specifically I want the '-' key on the numpad to spam continuously.
    I don't know how to differentiate between the numpad - and the key pad -...

  13. #13
    Member
    Reputation
    1
    Join Date
    Feb 2012
    Posts
    2
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Here's the script with the game window criteria.


    ; Simple key spam script by Winsane @ ownedcore. Edited by NewAgeRetroHippie
    ; Toggle on and off with numlock.

    ~NumLock::Suspend, Toggle

    *-::

    $1::
    IfWinActive, Star Wars: The Old Republic
    {
    Loop
    {
    GetKeyState, state, 1, p
    if state = U
    break
    ; Otherwise:
    Send, {1}
    Sleep, 25
    }
    }
    else
    {
    send 1
    }
    return


    $2::
    IfWinActive, Star Wars: The Old Republic
    {
    Loop
    {
    GetKeyState, state, 2, p
    if state = U
    break
    ; Otherwise:
    Send, {2}
    Sleep, 25
    }
    }
    else
    {
    send 2
    }
    return

    $3::
    IfWinActive, Star Wars: The Old Republic
    {
    Loop
    {
    GetKeyState, state, 3, p
    if state = U
    break
    ; Otherwise:
    Send, {3}
    Sleep, 25
    }
    }
    else
    {
    send 3
    }
    return

    $4::
    IfWinActive, Star Wars: The Old Republic
    {
    Loop
    {
    GetKeyState, state, 4, p
    if state = U
    break
    ; Otherwise:
    Send, {4}
    Sleep, 25
    }
    }
    else
    {
    send 4
    }
    return

    $5::
    IfWinActive, Star Wars: The Old Republic
    {
    Loop
    {
    GetKeyState, state, 5, p
    if state = U
    break
    ; Otherwise:
    Send, {5}
    Sleep, 25
    }
    }
    else
    {
    send 5
    }
    return

    $6::
    IfWinActive, Star Wars: The Old Republic
    {
    Loop
    {
    GetKeyState, state, 6, p
    if state = U
    break
    ; Otherwise:
    Send, {6}
    Sleep, 25
    }
    }
    else
    {
    send 6
    }
    return

    $7::
    IfWinActive, Star Wars: The Old Republic
    {
    Loop
    {
    GetKeyState, state, 7, p
    if state = U
    break
    ; Otherwise:
    Send, {7}
    Sleep, 25
    }
    }
    else
    {
    send 7
    }
    return

    $8::
    IfWinActive, Star Wars: The Old Republic
    {
    Loop
    {
    GetKeyState, state, 8, p
    if state = U
    break
    ; Otherwise:
    Send, {8}
    Sleep, 25
    }
    }
    else
    {
    send 8
    }
    return

    $9::
    IfWinActive, Star Wars: The Old Republic
    {
    Loop
    {
    GetKeyState, state, 9, p
    if state = U
    break
    ; Otherwise:
    Send, {9}
    Sleep, 25
    }
    }
    else
    {
    send 9
    }
    return

    $0::
    IfWinActive, Star Wars: The Old Republic
    {
    Loop
    {
    GetKeyState, state, 0, p
    if state = U
    break
    ; Otherwise:
    Send, {0}
    Sleep, 25
    }
    }
    else
    {
    send 0
    }
    return

  14. #14
    Sergeant
    Reputation
    7
    Join Date
    Mar 2009
    Posts
    55
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    can anyone use this ?since the patch 1.2 i can't use it anymore.. i right click run as admin..
    thanks

  15. #15
    Member
    Reputation
    1
    Join Date
    Oct 2007
    Posts
    19
    CoreCoins
    26

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    This is script I have used for a while. Its much more condensed though I am not sure how it will handle modifiers as I have never need to spam those keys anyways. This has worked for me since day one and has never stopped working due to a patch. I keep the window name out cause its not needed as you can hold keys down in normal windows operations anyways so it does not change the function of other programs besides games

    keys = 1,2,3,4,5,6,7,8,9,0,-,=,f,e,q ; key-names/scan-codes to accelarate
    Loop Parse, keys, `,
    Hotkey *%A_LoopField%, KEY
    Return

    KEY:
    StringTrimLeft key, A_ThisHotKey, 1
    t := 0.2 ; initial delay [seconds]
    Loop {
    SendInput {BLIND}{%key%}
    KeyWait %key%, T%t%
    If ErrorLevel = 0
    Break
    t := 0.1 ; delay *= 1, while delay > 0.2
    }

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 05:31 AM. Powered by vBulletin® Version 4.2.0
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved. Resources saved on this page: MySQL 5.88%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search