Ahk menu

User Tag List

Thread: Ahk

Results 1 to 4 of 4
  1. #1
    Gabbz's Avatar Contributor
    Reputation
    184
    Join Date
    Dec 2011
    Posts
    451
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ahk

    Hi !

    Im a vivid AHK user but i found 1 problem.
    I cant get AHK to send to SWTOR unless its active window.
    In other games i managed with the ControlClick command
    ControlClick

    ControlClick, x55 y77, Star Wars: The Old Republic

    Anyone got it to work ?
    Basically what i want todo is click on certain x,y when im browsing the internet for pron.

    Ahk
  2. #2
    zzj's Avatar Member
    Reputation
    2
    Join Date
    Jan 2012
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd like to know that too. but Not for porn

    does swtor somehow (with a trick) accept PostMessage or SendMessage ? (in-background input to the game)
    or only SendInput or keybd_event (foreground, active window input) like aion used to and we've to settle with memory writing for background movement ?

    some simple tests with c# and ahk were not sucessful with messages

    _____
    edit:
    ah after some more reading, it was just the stupid UAC which stopped my c# code from working.
    ran the code as admin or without UAC and now it works

    hmm movement not working yet for me
    Last edited by zzj; 01-10-2012 at 06:01 AM.

  3. #3
    Xiandri's Avatar Established Member
    Reputation
    66
    Join Date
    Feb 2008
    Posts
    159
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try putting this bit of code in at the start... it works for me. also make sure you run the macro as an administrator (or disable UAC)

    Code:
    WinActive("Star Wars: The Old Republic")
    SendKeepActive("Star Wars: The Old Republic")
    
    Func Start ()
    WinActivate ("Star Wars: The Old Republic")

  4. #4
    thebluefish's Avatar Sergeant
    Reputation
    15
    Join Date
    Aug 2010
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sending a mouse key to the game window:
    ; 0x204 = right button down
    ; 0x205 = right button up
    PostMessage, 0x204, 0x1, ((PosY<<16)^PosX), , Star Wars: The Old Republic
    PostMessage, 0x205, 0x0, ((PosY<<16)^PosX), , Star Wars: The Old Republic
    Sending a keypress to the game window:
    ControlSend, , {Space}, Star Wars: The Old Republic
    Only thing you cannot do just to the game window is move the mouse pointer. If you send a click command to the game window, the game will actually take the current mouse coordinates and compare them to the coordinates you send. You won't be able to get that part working unless you move the mouse cursor:
    DllCall("SetCursorPos", int, PosX, int, PosY)
    However the info I just gave you is what I use to script the game running in the background. It's a minor annoyance to have the mouse constantly snap to the same area while I'm browsing firefox, but hey it's better than nothing xD
    Last edited by thebluefish; 01-10-2012 at 11:51 AM.

Similar Threads

  1. [PvE] 1 button 10k Unholy DK DPS using AHK
    By Bonkler in forum World of Warcraft Guides
    Replies: 25
    Last Post: 08-03-2011, 12:09 AM
  2. 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
  3. [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
  4. Auto prospecting! AHK!
    By Speakerwire in forum World of Warcraft Guides
    Replies: 7
    Last Post: 01-05-2009, 03:38 PM
All times are GMT -5. The time now is 03:15 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