AutoHotkey Community

It is currently May 25th, 2012, 11:14 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: July 2nd, 2007, 4:48 pm 
Offline

Joined: July 2nd, 2007, 4:00 pm
Posts: 19
Hey, I have been using this other hotkey program to use in this game called MuOnline. It is really simple and it sort of works. I made two hotkeys on it for one to hold right until I press right again to do a skill in the game and another that is supposed to do a combo but it doesn't want to work. So now I heard about this program AutoHotkey and was wanting to see if I could get it working with this one but don't really understand how to use this.

I was trying to make a hotkey Ctrl+Shift+Z to hold the right mouse button until I press right mouse again. And then Ctrl+Shift+X to hold right mouse button and press 1, 2, 3, and 4 to go through the skills the character has when attacking. But with this I can't even figure out the simple hold right mouse :P. And I am not sure why it was not working in the other program because if I press the chat button before my combo hotkey to test if its really typing the buttons I can see it is putting 1234 buttons. So I don't know...maybe it is using the buttons on the keypad which do not do anything in the game, I have the use the #s above the letters.


Last edited by BliND123 on July 4th, 2007, 11:40 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2007, 4:52 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8647
Location: Salem, MA
the command to hold down the right mouse button is
Code:
Send {RButton, Down}
;or
Click, right, down



really, someone needs to make a tutorial just for games, so that I can just link to that.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2007, 5:41 pm 
Offline

Joined: July 2nd, 2007, 4:00 pm
Posts: 19
I thought I was doing something wrong but its that Send {RButton. Down} that isn't working for me. So I am using the Click one which is working but with the first hotkey the Right mouse button doesn't stop with Click, Right, Up?

Code:
;
;MuOnline Combo and Skill Hotkey
;By: BliNDFury
;
XButton2::
Sendinput {1 Down}
Click, Right, Down
{
Sendinput {1 Down}
Sleep 100
Sendinput {1 Up}
Sleep 100
Sendinput {2 Down}
Sleep 100
Sendinput {2 Up}
Sleep 100
Sendinput {3 Down}
Sleep 100
Sendinput {3 Up}
Sleep 100
Sendinput {4 Down}
Sleep 100
Sendinput {4 Up}
Sleep 100
}
Click, Right, Up

XButton1::
Click, Right, Down


So what should I change for it to stop once it does the combo once? Now I just need to just get the timing right :D.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2007, 5:43 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8647
Location: Salem, MA
i shouldn't have had the comma in Send, {Rbutton down} - my mistake

Code:
;MuOnline Combo and Skill Hotkey
;By: BliNDFury
;
XButton2::
Sendinput {1 Down}
Click, Right, Down
;{   why {?
Sendinput {1 Down}
Sleep 100
Sendinput {1 Up}
Sleep 100
Sendinput {2 Down}
Sleep 100
Sendinput {2 Up}
Sleep 100
Sendinput {3 Down}
Sleep 100
Sendinput {3 Up}
Sleep 100
Sendinput {4 Down}
Sleep 100
Sendinput {4 Up}
Sleep 100
;}   why }?
Click, Right, Up
return


XButton1::
Click, Right, Down

return


Edit: Me, of all people, forgetting code tags! Sheesh.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Last edited by engunneer on July 2nd, 2007, 7:02 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2007, 6:56 pm 
Thank you.

Got the combo timed pretty good now.

Code:
;MuOnline Combo and Skill Hotkey
;By: BliNDFury
;
XButton2::
Sendinput {1 Down}
Click, Right, Down
Sleep 1000
;{ why {?
Sendinput {1 Down}
Sleep 20
Sendinput {1 Up}
Sleep 20
Sendinput {2 Down}
Sleep 20
Sendinput {2 Up}
Sleep 20
Sendinput {3 Down}
Sleep 20
Sendinput {3 Up}
Sleep 20
Sendinput {4 Down}
Sleep 20
Sendinput {4 Up}
Sleep 20
;} why }?
Click, Right, Up
Return


XButton1::
Sendinput {3 Down}
Click, Right, Down
Return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2007, 7:02 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8647
Location: Salem, MA
since you are using the same sleep between all the kes, you can use SetKeyDelay, then string all the commands into one Send Line.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2007, 7:16 pm 
Offline

Joined: July 2nd, 2007, 4:00 pm
Posts: 19
Actually I think I might mess with the timing a little more since the skills aren't all the same speed in the game I will have to set the speed differently. But right now the combo is working about 80% of the time the way it is.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 4th, 2007, 6:59 pm 
Offline

Joined: July 2nd, 2007, 4:00 pm
Posts: 19
Hey, I've been changing it around and adding stuff and was wondering if there was anything obviously wrong here? And that last one on my script the Auto Add Health, the way I have it it should press Q 30 times, or is that wrong?

And I am having some problem with AutoHotkey....All of a sudden I can't run or compile any of my scripts I was trying without it crashing. I just tried to uninstall/reinstall it but the same thing is happening. Did I compile too many times? :P

Edit: In Ahk2Exe it crashes when it says "Auto including any functions called from a library..."

Image

Code:
;MuOnline Combo and Skill Hotkey
;By: BliNDFury
;

;Quick Combo Attack
*XButton2::
Click, Right, Down
Sleep 30
Sendinput, {1 Down}{Sleep 2}
Sendinput, {2 Down}{Sleep 2}
Sendinput, {3 Down}{Sleep 2}
Sendinput, {4 Down}{Sleep 2}
Sleep 5
Sendinput, {1 Up}
Sleep 5
Sendinput, {2 Up}
Sleep 5
Sendinput, {3 Up}
Sleep 5
Sendinput, {4 Up}
Sleep 5
Click, Right, Up
Sleep 5
Sendinput, {1 Down}
Sleep 50
Sendinput, {1 Up}
Return

;Auto Twisting Slash Skill
XButton1::
Sendinput, {3 Down}
Sendinput, {3 Up}
Click, Right, Down
Return

;Auto Add  Health
+Z::
Sendinput, {Q Down}
Sendinput, {Q Up}
Loop 30


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 4th, 2007, 9:01 pm 
Offline

Joined: June 16th, 2007, 6:43 pm
Posts: 35
BliND123 wrote:
Code:
;Auto Add  Health
+Z::
Sendinput, {Q Down}
Sendinput, {Q Up}
Loop 30


Make that
Code:
;Auto Add  Health
+Z::
Loop 30
{
SendInput, Q
}

But wouldn't this just send "Q" 30 times in a row?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 4th, 2007, 9:29 pm 
Offline

Joined: July 2nd, 2007, 4:00 pm
Posts: 19
Yeah. It needs a lot of health after this power up skill which just takes too long when having to press Q 30 times and do the combo skill and attack another player at the same time :). But I am not sure I will be able to use it anymore, can't run the ahk file or compile it without getting that error every time. Uninstalling and reinstalling doesn't fix it :(. So now I am trying to learn how to use Autoit and do the same over there.

Edit: I found a way I can still run my scripts but I am currently only able to use the ahk it automatically created in My Documents when I opened AutoHotkey. So it works now, sorta, but I would really like to be able to Compile this into an .exe file.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 13th, 2007, 1:34 am 
Offline

Joined: July 2nd, 2007, 4:00 pm
Posts: 19
I changed it some more and now need some help with something I've been noticing. I have noticed that even after I close the script the mouse is acting weird....double clicking when I only click once and stuff or as I am dragging something its clicking. So I was trying to make it only work in Mu but I am not sure how to do that, but from what I read I added that part from IfWinExist to WinActivate. Can someone help me to get this to work ONLY inside Mu?

Code:
;MuOnline Combo and Skill Hotkey
;By: BliNDFury
;

IfWinExist Mu
{
    WinActivate
}
else
{
    WinWait Mu
    WinActivate
}


;Auto Skill Attack
XButton1::
Sendinput, {3 Down}
Sendinput, {3 Up}
Click, Right, Down
Return


;Quick Combo Attack
XButton2::
Click, Right, Down
Sleep 30
Sendinput, {1 Down}{Sleep 2}
Sendinput, {2 Down}{Sleep 2}
Sendinput, {3 Down}{Sleep 2}
Sendinput, {4 Down}{Sleep 2}
Sendinput, {1 Up}{Sleep 5}
Sendinput, {2 Up}{Sleep 5}
Sendinput, {3 Up}{Sleep 5}
Sendinput, {4 Up}{Sleep 5}
Sleep 5
Click, Right, Up
Sleep 5
Sendinput, {1 Down}
Sleep 50
Sendinput, {1 Up}
Return

;Quick Combo Attack PK
+z::
Click, Right, Down
Sendinput, {LCtrl Down}
Sleep 30
Sendinput, {1 Down}{Sleep 2}
Sendinput, {2 Down}{Sleep 2}
Sendinput, {3 Down}{Sleep 2}
Sendinput, {4 Down}{Sleep 2}
Sendinput, {1 Up}{Sleep 5}
Sendinput, {2 Up}{Sleep 5}
Sendinput, {3 Up}{Sleep 5}
Sendinput, {4 Up}{Sleep 5}
Sleep 5
Click, Right, Up
Sendinput, {LCtrl Up}
Sleep 5
Sendinput, {1 Down}
Sleep 50
Sendinput, {1 Up}
Return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 13th, 2007, 5:51 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8647
Location: Salem, MA
use #IfWinActive Mu at the very top of the script. It is different than IfWinActive

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 13th, 2007, 8:50 pm 
Offline

Joined: July 2nd, 2007, 4:00 pm
Posts: 19
Thank you very much, that worked. Do you know why it was affecting my mouse even after I close the program by looking at my script? I was just wondering, but I don't have that problem anymore anyways.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2008, 4:39 am 
Offline

Joined: July 2nd, 2007, 4:00 pm
Posts: 19
BUMP!

Hey, it's me again....I built a new PC a while back and long story short lost my script. I found this post again and tried to use it but it's not working anymore. I am on Vista if that matters and I have a multimedia keyboard that uses IntelliType Pro. Would either of those things affect it or should it still be working? I remember I had changed a few things more than the last one I posted so I am not sure if that is why it's not working.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Hi
PostPosted: October 3rd, 2008, 4:00 am 
Can you please email me the source code i want to learn how to do that is that C#? btw my email address is vbuser26@yahoo.com thanks in advanced. :)


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Blackholyman, BrandonHotkey, mrhobbeys, snyder and 62 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group