 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Sun Jun 01, 2008 5:08 am Post subject: |
|
|
| possible, but you forget i'm new:P could you give me a hand with it? and i didn't mean to be snappy earlir, but i'm already frustrated with this..lol |
|
| Back to top |
|
 |
Z Gecko Guest
|
Posted: Sun Jun 01, 2008 5:16 am Post subject: |
|
|
regard the comments in the script (green text)
| Code: |
SendMode Play ; exchange "play" with "Input" or "Event" to try different modes
SetKeyDelay, 0, 50 ; exchange "50" with differnt numbers to test different timings
^!t::
CoordMode, Mouse, Screen
MouseClick, left, 1655, 966
MouseClick, left, 1655, 966
Sleep, 100
MouseClick, left, 1623, 962
MouseClick, left, 1623, 962
Sleep, 100
MouseClick, left, 1584, 959
MouseClick, left, 1584, 959
Sleep, 100
MouseClick, left, 1593, 959
MouseClick, left, 1593, 959
Sleep, 100
MouseClick, left, 54, 422
return
|
|
|
| Back to top |
|
 |
Guest
|
Posted: Sun Jun 01, 2008 5:31 am Post subject: |
|
|
still the same problem  |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Jun 01, 2008 5:41 am Post subject: |
|
|
| how would i put that controlsend command? maybe that will work |
|
| Back to top |
|
 |
Guest2 Guest
|
Posted: Sun Jun 01, 2008 5:42 am Post subject: |
|
|
Actually its not Game Related.
The Autoscriptwriter works under Xp and W2k without any Problems.
His OS is Vista.
At last, the clicks are recorded with CoordMode, Mouse, Screen
but at replay, when the Game is open, and infront, it does not count the doubleclicks.
The Doubleclick would make a Item move.
But under Vista, it does not even move the Mousepointer, when the Game is on Top. |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Jun 01, 2008 5:43 am Post subject: |
|
|
exactly.. i should have had you come here earlier  |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Jun 01, 2008 5:59 am Post subject: |
|
|
| how would i use the contolclick command? |
|
| Back to top |
|
 |
Z Gecko Guest
|
Posted: Sun Jun 01, 2008 6:51 am Post subject: |
|
|
i am confused:
who is guest2?
and why does he know what game guest is playing?
and why should it be related to the script-writer? Guest has already shown a pice code, that perform the mouseclicks, so some scriptwriter must have worked.
if the game receives clicks but no double-clicks, it is very well game related!
if double-click is the issue, the ClickCount-parameter of MouseClick could help [e.g. MouseClick, left, 100, 100, 2]
or you could use individual DOWN and UP commands. (check the help for more info: MouseClick )
and finaly, the ControlClick and ControlSend commands are quite similar to the MouseClick-Command so you could easily replace them, if you find out the window-title (e.g. with the AutoIt Windows Spy) |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Jun 01, 2008 7:22 am Post subject: |
|
|
| guest 2 is my guild leader on the game. to make the script i had to alt+tab out of the game and record the clicks on firefox. it still does nothing in the game |
|
| Back to top |
|
 |
Zed Gecko
Joined: 23 Sep 2006 Posts: 101
|
Posted: Sun Jun 01, 2008 7:48 am Post subject: |
|
|
Please be more specific!
What doesn´t work?
Does it not click? Not double-click? Not click in the right spot?
What have you tried? (specific please: Modes, Timings)
And what game are you testing it in? _________________ 1) All my code can be reused in ANY way. 2) Please check the help and the forum-search, before posting questions; the answer is out there... |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Jun 01, 2008 1:03 pm Post subject: |
|
|
| the game is dark and light, when the game is the active window the script does nothing at all, and when i'm at the desktop, the script works fine. cycled through all the settings you gave me, input play etc, and tried several different numbers in the timing |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Jun 01, 2008 3:10 pm Post subject: |
|
|
| got it^^ for anyone else reading this and having the same problem in vista, go into your control panel, then user accounts, and disable user account control(requires a restart) |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|