 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
delcolt Guest
|
Posted: Fri Jun 25, 2004 7:41 pm Post subject: i guess my final question |
|
|
| Code: | IfWinExist, Tibia
{
WinActivate
}
MsgBox, Now press ok and the prog will start
loop, 4
{
loop, 100
{
Random, w, 600, 300
Random, x, 1065, 1090
Random, y, 303, 328
Random, xx, 600, 842
Random, yy, 135, 600
Send, {CTRL down}
mouseclick, left, %x%, %y%
sleep, %w%
mouseclick,left, %xx%, %yy%
sleep, %w%
PixelGetColor, p, 1040, 570
if p = 9014131; if color is found
break ; exit loop
}
Send, CTRL up}
Mouseclickdrag{, left, 1000,505,1040,570
}
^z::ExitApp
exit |
u see pixelgetcolor at the end
if it finds it it doesnt drag the mouse:S
how can i make it drag it? |
|
| Back to top |
|
 |
delcolt Guest
|
Posted: Fri Jun 25, 2004 7:43 pm Post subject: |
|
|
| and does someone also know how u can control click instead of holding that ctrl button? |
|
| Back to top |
|
 |
beardboy
Joined: 02 Mar 2004 Posts: 444 Location: SLC, Utah
|
Posted: Fri Jun 25, 2004 8:20 pm Post subject: |
|
|
I don't know if you had problems cutting and pasting or if your code does look like that, but the bottom should be like this:
| Code: | Send, {CTRL up}
Mouseclickdrag, left, 1000,505,1040,570 |
thanks,
beardboy |
|
| Back to top |
|
 |
delcolt Guest
|
Posted: Fri Jun 25, 2004 8:36 pm Post subject: |
|
|
okay, edited that,
still doesn't work
| Code: | IfWinExist, Tibia
{
WinActivate
}
MsgBox, Now press ok and the prog will start
loop
{
loop
{
Random, w, 600, 300
Random, x, 1065, 1090
Random, y, 303, 328
Random, xx, 600, 842
Random, yy, 135, 600
Send, {CTRL down}
mouseclick, left, %x%, %y%
sleep, %w%
mouseclick,left, %xx%, %yy%
sleep, %w%
PixelGetColor, p, 1039, 510
if p = 11581602; if color is found
break ; exit loop
}
Send, {CTRL up}
Mouseclickdrag, left, 1000,505,1040,570
}
^z::ExitApp
^x::Reload
exit |
|
|
| Back to top |
|
 |
beardboy
Joined: 02 Mar 2004 Posts: 444 Location: SLC, Utah
|
Posted: Fri Jun 25, 2004 8:49 pm Post subject: |
|
|
I'm not seeing anything that is sticking out, but then again I might just be missing it. I cut and paste your MouseClickDrag command and ran it on my computer and it moved so fast by default that I didn't see the mouse move. I put in SetDefaultMouseSpeed, 15 and was then able to see that it was clicking and draging on my PC.
Have you ran your script and looked at the script lines most recently executed? To see if it is getting stuck some where or appears to be running the MouseClickDrag?
thanks,
beardboy |
|
| Back to top |
|
 |
delcolt Guest
|
Posted: Fri Jun 25, 2004 9:11 pm Post subject: |
|
|
most recently executed?
well neways i got my script working
it was the letter p
i changed it to pixels and it worked |
|
| 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
|