Jump to content

Why Doesnt this work?


Yaan1
 Share

Recommended Posts

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
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...