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 

AutoClicker

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





PostPosted: Sun May 25, 2008 5:05 pm    Post subject: AutoClicker Reply with quote

When i lauch it, it doesn't click somethimes. How can i prevoit that:


WinWait, Program Manager, FolderView
IfWinNotActive, Program Manager, FolderView, WinActivate, Program Manager, FolderView
WinWaitActive, Program Manager, FolderView
MouseClick, left, 121, 300
MouseClick, left, 121, 300
Sleep, 100
WinWait, Google - Windows Internet Explorer, Opdrachtbalk voor fa
IfWinNotActive, Google - Windows Internet Explorer, Opdrachtbalk voor fa, WinActivate, Google - Windows Internet Explorer, Opdrachtbalk voor fa
WinWaitActive, Google - Windows Internet Explorer, Opdrachtbalk voor fa
MouseClick, left, 158, 8
MouseClick, left, 158, 8
Sleep, 100
MouseClick, left, 205, 48
Sleep, 100
Send, www{SHIFTDOWN}.{SHIFTUP}runesca{DOWN}{ENTER}
WinWait, RuneScape - the massive online adventure game by Jagex Ltd - Windows Internet Explorer, Opdrachtbalk voor fa
IfWinNotActive, RuneScape - the massive online adventure game by Jagex Ltd - Windows Internet Explorer, Opdrachtbalk voor fa, WinActivate, RuneScape - the massive online adventure game by Jagex Ltd - Windows Internet Explorer, Opdrachtbalk voor fa
WinWaitActive, RuneScape - the massive online adventure game by Jagex Ltd - Windows Internet Explorer, Opdrachtbalk voor fa
MouseClick, left, 817, 396
MouseClick, left, 817, 396
MouseClick, left, 817, 396
MouseClick, left, 817, 396
Sleep, 3000
MouseClick, left, 641, 367
MouseClick, left, 641, 367
Sleep, 3000
MouseClick, left, 347, 584
MouseClick, left, 347, 584
Sleep, 3000
MouseClick, left, 347, 585
Sleep, 3000
MouseClick, left, 869, 697
Sleep, 3000
MouseClick, left, 604, 530
Sleep, 3000
Back to top
Guest






PostPosted: Sun May 25, 2008 5:16 pm    Post subject: Reply with quote

probably you're stucked on winwait
as it says WinWait waits for specific window forever put timeout option

WinWait [, WinTitle, WinText, Seconds, ExcludeTitle, ExcludeText]
Back to top
sinkfaze



Joined: 18 Mar 2008
Posts: 139

PostPosted: Sun May 25, 2008 6:14 pm    Post subject: Reply with quote

In the future try using the code tags around your script, makes it easier to read:

Code:
WinWait, Program Manager, FolderView
IfWinNotActive, Program Manager, FolderView, WinActivate, Program Manager, FolderView
WinWaitActive, Program Manager, FolderView
MouseClick, left, 121, 300
MouseClick, left, 121, 300
Sleep, 100
WinWait, Google - Windows Internet Explorer, Opdrachtbalk voor fa
IfWinNotActive, Google - Windows Internet Explorer, Opdrachtbalk voor fa, WinActivate, Google - Windows Internet Explorer, Opdrachtbalk voor fa
WinWaitActive, Google - Windows Internet Explorer, Opdrachtbalk voor fa
MouseClick, left, 158, 8
MouseClick, left, 158, 8
Sleep, 100
MouseClick, left, 205, 48
Sleep, 100
Send, www{SHIFTDOWN}.{SHIFTUP}runesca{DOWN}{ENTER}
WinWait, RuneScape - the massive online adventure game by Jagex Ltd - Windows Internet Explorer, Opdrachtbalk voor fa
IfWinNotActive, RuneScape - the massive online adventure game by Jagex Ltd - Windows Internet Explorer, Opdrachtbalk voor fa, WinActivate, RuneScape - the massive online adventure game by Jagex Ltd - Windows Internet Explorer, Opdrachtbalk voor fa
WinWaitActive, RuneScape - the massive online adventure game by Jagex Ltd - Windows Internet Explorer, Opdrachtbalk voor fa
MouseClick, left, 817, 396
MouseClick, left, 817, 396
MouseClick, left, 817, 396
MouseClick, left, 817, 396
Sleep, 3000
MouseClick, left, 641, 367
MouseClick, left, 641, 367
Sleep, 3000
MouseClick, left, 347, 584
MouseClick, left, 347, 584
Sleep, 3000
MouseClick, left, 347, 585
Sleep, 3000
MouseClick, left, 869, 697
Sleep, 3000
MouseClick, left, 604, 530
Sleep, 3000


There could be any number of reasons your code doesn't appear to work, but you'd have to explain in more detail what each movement is trying to do in order for us to better understand. It looks like you're taking two steps to get to the Runescape website which may not be necessary. You could try this portion of script based on what I presume you're trying to do:

Code:
Run http://www.runescape.com{ENTER} ; this skips opening Internet Explorer and clicking into the address bar to enter the website address
WinActivate, RuneScape - the massive online adventure game by Jagex Ltd - Windows Internet Explorer
WinWaitActive, RuneScape - the massive online adventure game by Jagex Ltd - Windows Internet Explorer,
StatusBarWait, Done, , RuneScape - the massive online adventure game by Jagex Ltd - Windows Internet Explorer ;waits until the status bar says 'Done' before executing any further script
...


Everything below that point you would have to explain what you're trying to do with each set of mouse clicks. It looks like you're just clicking buttons to gain further access into the site, in which case using StatusBarWait to tell you when the page is done loading would be helpful.
Back to top
View user's profile Send private message
ahkmaniac
Guest





PostPosted: Thu May 29, 2008 10:37 am    Post subject: Reply with quote

For clicks inside a browser window I use imacros for firefox
http://www.iopus.com/imacros/firefox/
It runs inside firefox and works very reliable.
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