Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Script Writing in AutoHotKey

Script Writing in AutoHotKey

Scheduled Pinned Locked Moved C / C++ / MFC
c++game-devtoolshelp
8 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    ThatOldGuy
    wrote on last edited by
    #1

    Good Morning Ladies and Gentlemen! I need help with my first script ever, being created in AutoHotKey. I hope that I am posting this in the right forum, considering it seems close to C++ language. I do apologize for my ignorance. I am trying to write a script to work on a non-active windowed game, while I am spawning with another character in a separate window. This is my first script, so all the help I can get would be greatly appreciated. I am willing to pay you for a full working script to do the functions I like. The functions are as followed, I need the script to spell my character up, which includes hitting multiple F-Keys and then clicking my character to apply for most, some are automatically casted when clicked, applying to the character itself. Secondly, I need it to hold down the F4 key to spam a AOE spell also for atleast 10min. After spelling up, before casting the AOE, and or before the spellup, I need to Hit the F3 key, which is a manastone filling my mana bar for magic use. I need this to loop itself continuously and have a start and a stop to the script. Please see below what I have and let me know where I went wrong. It is not finished, just kind of a idea. Please see below, not finished, stumped currently.

    #SingleInstance, force
    #If WinExist, ""
    setKeyDelay, 10, 10
    setMouseDelay, 10

    `::
    Loop {
    Send, F3
    Sleep, 100 ; ------------------- optional extra sleep timer
    Send, F6
    Sleep, 100
    Send, F8
    Sleep, 100
    Send, F10
    Sleep, 100
    Click 0,0 ;These are the coords
    Sleep, 100
    Send, F11 ; ----- If doesnt work use ;ControlSend {F11}
    Sleep, 100
    Click, 0,0 ; ----- If doesnt work use ;ControlClick, x# y#, ahk_class , , Left, #oftimes, NA
    Sleep, 100
    Send, F12
    Sleep, 100
    Send, {F4 down}
    Sleep, 10000 ;ten minutes
    Send, {F4 up}
    }
    Return
    ; all loops should have some emergency pause, suspend or exit key
    Esc::
    Pause

    L 1 Reply Last reply
    0
    • T ThatOldGuy

      Good Morning Ladies and Gentlemen! I need help with my first script ever, being created in AutoHotKey. I hope that I am posting this in the right forum, considering it seems close to C++ language. I do apologize for my ignorance. I am trying to write a script to work on a non-active windowed game, while I am spawning with another character in a separate window. This is my first script, so all the help I can get would be greatly appreciated. I am willing to pay you for a full working script to do the functions I like. The functions are as followed, I need the script to spell my character up, which includes hitting multiple F-Keys and then clicking my character to apply for most, some are automatically casted when clicked, applying to the character itself. Secondly, I need it to hold down the F4 key to spam a AOE spell also for atleast 10min. After spelling up, before casting the AOE, and or before the spellup, I need to Hit the F3 key, which is a manastone filling my mana bar for magic use. I need this to loop itself continuously and have a start and a stop to the script. Please see below what I have and let me know where I went wrong. It is not finished, just kind of a idea. Please see below, not finished, stumped currently.

      #SingleInstance, force
      #If WinExist, ""
      setKeyDelay, 10, 10
      setMouseDelay, 10

      `::
      Loop {
      Send, F3
      Sleep, 100 ; ------------------- optional extra sleep timer
      Send, F6
      Sleep, 100
      Send, F8
      Sleep, 100
      Send, F10
      Sleep, 100
      Click 0,0 ;These are the coords
      Sleep, 100
      Send, F11 ; ----- If doesnt work use ;ControlSend {F11}
      Sleep, 100
      Click, 0,0 ; ----- If doesnt work use ;ControlClick, x# y#, ahk_class , , Left, #oftimes, NA
      Sleep, 100
      Send, F12
      Sleep, 100
      Send, {F4 down}
      Sleep, 10000 ;ten minutes
      Send, {F4 up}
      }
      Return
      ; all loops should have some emergency pause, suspend or exit key
      Esc::
      Pause

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      ThatOldGuy wrote:

      it seems close to C++ language.

      Not even remotely so. The correct forum would obviously be The autohotkey forums[^]

      T 1 Reply Last reply
      0
      • L Lost User

        ThatOldGuy wrote:

        it seems close to C++ language.

        Not even remotely so. The correct forum would obviously be The autohotkey forums[^]

        T Offline
        T Offline
        ThatOldGuy
        wrote on last edited by
        #3

        Richard, I'm sorry brother, did not see that forum when I searched through the different ones. Can this possibly be moved to there?

        R L 2 Replies Last reply
        0
        • T ThatOldGuy

          Richard, I'm sorry brother, did not see that forum when I searched through the different ones. Can this possibly be moved to there?

          R Offline
          R Offline
          Rick York
          wrote on last edited by
          #4

          No, it can't. Posts can not be moved between unrelated forums.

          1 Reply Last reply
          0
          • T ThatOldGuy

            Richard, I'm sorry brother, did not see that forum when I searched through the different ones. Can this possibly be moved to there?

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            It wasn't exactly hard to find; all I did was type "AutoHotkey" into Google.

            T 1 Reply Last reply
            0
            • L Lost User

              It wasn't exactly hard to find; all I did was type "AutoHotkey" into Google.

              T Offline
              T Offline
              ThatOldGuy
              wrote on last edited by
              #6

              Rick, I misunderstood you, I thought you meant it was a group on this forum. Unfortunately that forum is not really active, and I have tried to ask there. Do you think you could, or would be able to take on a task like this? Thank You ThatOldGuy

              L 1 Reply Last reply
              0
              • T ThatOldGuy

                Rick, I misunderstood you, I thought you meant it was a group on this forum. Unfortunately that forum is not really active, and I have tried to ask there. Do you think you could, or would be able to take on a task like this? Thank You ThatOldGuy

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                ThatOldGuy wrote:

                Do you think you could, or would be able to take on a task like this?

                Sorry, I have no idea what AutoHotKey is, or what it is supposed to do; that's why I pointed you to their website.

                T 1 Reply Last reply
                0
                • L Lost User

                  ThatOldGuy wrote:

                  Do you think you could, or would be able to take on a task like this?

                  Sorry, I have no idea what AutoHotKey is, or what it is supposed to do; that's why I pointed you to their website.

                  T Offline
                  T Offline
                  ThatOldGuy
                  wrote on last edited by
                  #8

                  Rick, Ok, no worries. I appreciate the response. Thank You

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups