Close
Showing results 1 to 4 of 4

Hybrid View

  1. #1

    Default trying to write a code for mouse click

    Hello, just started learning ahk and found out not much tutorials exist on the web about it. Anyway I'm trying to write a code that will connect between 2 windows so if I click with the mouse in 1 game window it will click in the other game window in the same place aswel (same for left and right mouse click)

    Been trying to work with both those codes but it got messy and nothing worked and I'm not even sure I'm doing the right thing here.
    Code:
    KeyWait, LButton, D
    ~LButton:: 
    ControlSend,, {LButton}, ahk_id %active_id%
    Return
    
    
    MouseGetPos xpos, ypos
    Click::ControlSend, , {MouseClick, left, xpos, ypos}, ahk_pid %active_id%
    Would be glad to get some assistance to get my project running.
    Thanks in advance.

  2. #2

    Default

    Similar: http://www.dual-boxing.com/threads/47954-Mouse-Button-4-and-5-Cloning-using-AutoHotKey

    I haven't found a way to broadcast mouseclicks reliably with AHK. It seems that I have to press multiple times to get a click through. I would post my script if it were any usefull. However it causes more pain that is helpfull. You could do most clicking of the different windows by using macros. Write "/fstack" in wow chat and hit enter. the the see button codes for each button. Once you get the name of the butotn you can make macros e.g.
    /click "ButtonNameHereCaseSensitive"


    If you MUST get clicks through then I suggest trying Hotkeynet or ISboxer.

  3. #3
    Member
    Join Date
    Sep 2008
    Location
    Calgary, AB and Vancouver, BC
    Posts
    7638
    Blog Entries
    2

    Default

    You could use what IS Boxer calls a "Repeater Region", and set it up for free with HKN.
    Hot Key Net is free...

    You can use HKN in conjunction with AHK.
    But if HKN will do what you want, while AHK will not...
    Why not move to HKN?

    Anyway, here's how to do a Repeater Region with HKN: http://www.dual-boxing.com/threads/3...rthquake/page2
    EverQuest I: Bard / Enchanter / Druid / Wizard / 2x Magician.
    Diablo III: 4x Crusader & 4x Wizard.

    My Guide to IS Boxer http://www.dual-boxing.com/showthread.php?t=26231 (somewhat dated).
    Streaming in 1080p HD: www.twitch.tv/ualaa
    Twitter: @Ualaa


  4. #4

    Default

    http://www.dual-boxing.com/threads/4...quot-WoW-spell

    Note the use of coordmode function.

    It was mentioned in AHK forum that ControlClick is a better approach. However I didn't use it as my current method works for me. Not ideal, but it didn't fail me when I 10 boxed raid. If you get it to work, please share.

    BTW, if you are comfortable with scripts, and want to continue this path, choose the 64-bit version of AHK and WOW client. As a minimalist, I am a very happy user of them.

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •