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 

Help a newbie

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





PostPosted: Sun Oct 21, 2007 5:13 pm    Post subject: Help a newbie Reply with quote

Hi, i'm trying to do a easy script who will click at different place in the screen and wait between all those click. I made a function to make it better, but it doesnt work, it look like the the Click function doesnt like to receive parameters... can you help me ?

;The function I made
AppelClick(x, y, delais, delais_min, delais_max)
{
Click x, y
Random, delais, delais_min, delais_max
sleep delais
return 1
}


;My main program
Run http://www.coucou.com
sleep delais_max

Loop, 10
{
AppelClick(220,450, delais, delais_min, delais_max)
AppelClick(320,450, delais, delais_min, delais_max)
AppelClick(420,450, delais, delais_min, delais_max)
}

MsgBox End of my script
Back to top
YMP



Joined: 23 Dec 2006
Posts: 265
Location: Russia

PostPosted: Sun Oct 21, 2007 6:29 pm    Post subject: Reply with quote

Click's arguments can't be expressions. Put them in percent signs:
Code:

Click %x%, %y%
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