Close
Showing results 1 to 7 of 7

Thread: AHK Mouseclick

  1. #1

    Default AHK Mouseclick

    Hi guys need some help at Mouseclicks at AHK well my german mates cant help me
    Well i made a script

    Code:
    #IfWinActive, Leader
    LButton::
    
     if MouseInRange(250,269,759,778)
    	ControlSend,,{3 down}{3 up},	Leader
    else if MouseInRange(250,269,759,778)
    	ControlSend,,{3 down}{3 up},	Box1
    else if MouseInRange(250,269,759,778)
     	ControlSend,,{3 down}{3 up},	Box2
    
    else
    	Click
    return
    but then only my Leader cast then and if i wirte this

    Code:
    #IfWinActive, Leader
    LButton::
    
     if MouseInRange(250,269,759,778)
    	ControlSend,,{3 down}{3 up},	Box1
    else if MouseInRange(250,269,759,778)
    	ControlSend,,{3 down}{3 up},	Leader
    else if MouseInRange(250,269,759,778)
     	ControlSend,,{3 down}{3 up},	Box2
    
    else
    	Click
    return
    Only the Box1 cast can you help that all cast if i Click in this Range

    Sorry for my bad english
    [align=center]Angsthase Angstmaus Angsttiger Angstfalke Angstbaerchi
    Shamanen

    1-----10-----20----30-----40-----50-----60-----70


    [/align]

  2. #2

    Default

    please guys help me /up
    [align=center]Angsthase Angstmaus Angsttiger Angstfalke Angstbaerchi
    Shamanen

    1-----10-----20----30-----40-----50-----60-----70


    [/align]

  3. #3

    Default

    I'm not sure what you are trying to do. All of the conditions in your if/then/else are the same. Don't you want to test for MouseInRange using 3 different regions?
    All my codes r belong to you: wow5box

  4. #4

    Default

    only in 1 region but if make a normal script like

    Code:
    #IfWinActive, Leader
    LButton::
    
     if MouseInRange(250,269,759,778)
    ControlSend,,{3 down}{3 up},Leader
    ControlSend,,{3 down}{3 up},Box1
     ControlSend,,{3 down}{3 up},Box2
    
    else
    Click
    return
    then only the leader cast in this region the box1 und 2 casting in all window range if i click i dont know why
    [align=center]Angsthase Angstmaus Angsttiger Angstfalke Angstbaerchi
    Shamanen

    1-----10-----20----30-----40-----50-----60-----70


    [/align]

  5. #5

    Default

    Wenn eine IF oder ELSE besitzt mehr als eine Zeile, Du musst { } schreiben.

    Code:
    #IfWinActive, Leader
    LButton::
    
    if MouseInRange(250,269,759,778)
    {
        ControlSend,,{3 down}{3 up},Leader
        ControlSend,,{3 down}{3 up},Box1
        ControlSend,,{3 down}{3 up},Box2
    }
    
    else
        Click
    
    return
    �Author of HotkeyNet and Mojo

  6. #6

    Default

    Boah danke funkt wie ne 1

    Kennste dich aus mit Mouse4 taste des funkt bei mir irgendwie net mit Xbutton1
    [align=center]Angsthase Angstmaus Angsttiger Angstfalke Angstbaerchi
    Shamanen

    1-----10-----20----30-----40-----50-----60-----70


    [/align]

  7. #7

    Default

    If I were you I would take things one step at a time to find the problem.

    First, without AHK, does Xbutton1 on the mouse trigger Mouse4 in WoW?

    Second, with AHK, write a script that sends Xbutton1 to one copy of the game when you press a key. Does it trigger Mouse 4?

    Third, with AHK, write a script that sends Xbutton 1 to one copy of the game when you press Xbutton 1. Does it trigger Mouse 4?

    Finally, write a script that sends Xbutton 1 to multiple copies of the game when you press Xbutton 1.
    �Author of HotkeyNet and Mojo

Similar Threads

  1. Replies: 6
    Last Post: 05-27-2008, 06:17 AM
  2. Mouseclick on same computer
    By Razakel in forum New Multi-Boxers & Support
    Replies: 2
    Last Post: 04-19-2008, 12:41 PM

Posting Rules

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