bishop
Joined: 11 Mar 2005 Posts: 3
|
Posted: Fri Mar 11, 2005 6:43 am Post subject: mouse moving too slow |
|
|
| 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.  |
|