AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mouse moving too slow

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
bishop



Joined: 11 Mar 2005
Posts: 3

PostPosted: Fri Mar 11, 2005 6:43 am    Post subject: mouse moving too slow Reply with quote

Quote:

^z::
MouseGetPos, posX, posY
Send, {ALTDOWN}
MouseClick, left, 75, 647
Send, {ALTUP}
MouseMove, posX, posY
return


Mouse is moving too slow and if you try to drag mosue to some place while this thing working, it will not leftklick in (75,647) coordinats. I try to add BlockInput On before MouseGetPos, posX, posY and BlockInput Off after MouseMove, posX, posY to prevent any user action while this part is executing. But there are some troubles with pushing other keys after this piece of code executing os over. It tries always push Enter or smth like that. If you push Shift+q for example after that (full text of a script is below), everything becomes normal.
He is a full list of a program:

+q::Send, {Numpad7}
+w::Send, {Numpad8}
+a::Send, {Numpad4}
+s::Send, {Numpad5}
+z::Send, {Numpad1}
+x::Send, {Numpad2}

^q:: Send, {enter}bb{enter}
^w:: Send, {enter}me base{enter}
^a:: Send, {enter}H_E_L_P{enter}
^s:: Send, {enter}heal me pliz{enter}

^z::
MouseGetPos, posX, posY
Send, {ALTDOWN}
MouseClick, left, 75, 647
Send, {ALTUP}
MouseMove, posX, posY
return
^x::
MouseGetPos, posX, posY
Send, {ALTDOWN}
MouseClick, left, 140, 690
Send, {ALTUP}
MouseMove, posX, posY
return
^c::
MouseGetPos, posX, posY
MouseClick, right, 33, 736
MouseMove, posX, posY
return

*Enter::
{
Hotkey, +q, Toggle
Hotkey, +w, Toggle
Hotkey, +a, Toggle
Hotkey, +s, Toggle
Hotkey, +z, Toggle
Hotkey, +x, Toggle
}

It's about adding some new featres to play WarCraft DotA. It's like using Shift+q instead of {Numpad 7} or like showing that there is a powerup bonus (Ctrl+z). Or even running home (Ctrl+c).
I'm from Russia, so if you don't understand somthing I wrote, ask me. Cool
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Fri Mar 11, 2005 11:25 am    Post subject: Reply with quote

You can use SetMouseDelay
_________________

RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Mar 11, 2005 1:03 pm    Post subject: Reply with quote

And also, SetDefaultMouseSpeed (or the Speed parameters of MouseMove and MouseClick) determine how quickly the mouse moves from source to destination.
Back to top
View user's profile Send private message Send e-mail
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Fri Mar 11, 2005 5:48 pm    Post subject: Reply with quote

Cool, I used to play DotA. Are you on RoC or TFT?
Back to top
View user's profile Send private message
bishop



Joined: 11 Mar 2005
Posts: 3

PostPosted: Sat Mar 12, 2005 1:29 pm    Post subject: Reply with quote

TFT.
Nick [bc]Bishop[ru] on eurobattle.net and dota.Bishop.ru on battle.net Europe.
Ok. I'll try SetMouseDelay and SetDefaultMouseSpeed and tell you what happened. Thnx!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group