Sign in to follow this  
Followers 0
Yaan1

Why Doesnt this work?

2 posts in this topic

So i want to move the mouse to a predefined place and click there 5 times. But the mouse just go's to 0.0. not 100 100 or 500 500 When mouse is set to 1 or 2. Why???

HotKeySet("m", "startmove")
HotKeySet("q", "one")
Global $mouse=0
global $cord1
global $cord2
global $mouse=0
global $123 =1
global $loop=1
global $1=1
While $loop=1
sleep(99999999)
WEnd
Func one()
While $mouse =0
  $mouse = InputBox("Hello", "Where would you like the mouse to go ")
  if $mouse=1 then
  $cord1=100 and $cord2=100
  if $mouse=2 then
  $cord1=500 and $cord2=500
  sleep(60000)
EndIf
EndIf
WEnd
endfunc
Func startmove()
while $1<=5
  MouseClick("left",$cord1,$cord2,1,10)
  $1=$1+1
WEnd
endfunc

Share this post


Link to post
Share on other sites



Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0