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 

i guess my final question

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





PostPosted: Fri Jun 25, 2004 7:41 pm    Post subject: i guess my final question Reply with quote

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





PostPosted: Fri Jun 25, 2004 7:43 pm    Post subject: Reply with quote

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

PostPosted: Fri Jun 25, 2004 8:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
delcolt
Guest





PostPosted: Fri Jun 25, 2004 8:36 pm    Post subject: Reply with quote

okay, edited that,
still doesn't work Razz
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

PostPosted: Fri Jun 25, 2004 8:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
delcolt
Guest





PostPosted: Fri Jun 25, 2004 9:11 pm    Post subject: Reply with quote

most recently executed?
well neways i got my script working Laughing
it was the letter p Razz
i changed it to pixels and it worked
Back to top
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