Help - Search - Members - Calendar
Full Version: IsObject won't work?
AC Tools Everything Macro > AC Tool Macros > Macro Development
SkH
Hello
I'm using a Capture program to capture a part of my screen
but When I execute the macro it won't work for selecting the area for capture (i.e. holding down the mouse button and dragging)
the object is just for the check if it has loaded or not.

But you'll see it yourself
just use this without the isobject
CODE
MousePos 818, 835
  LeftClick
  Delay 1 sec
  DragTo 869, 852
  LeftClick


and with isobject:

CODE
Object Captcha
  118=4,4|55=4,6|63=4,8|68=4,10|66=4,12|74=4,14|63=4,16|64=4,18|64=4,20
  58=6,4
  63=8,4
  66=10,4
  66=12,4
  74=14,4
  63=16,4
  64=18,4
  66=20,4
End

MousePos 1290, 547
LeftClick

IsObject Captcha at 798, 824
  // Do these commands if true
  MousePos 818, 835
  LeftClick
  Delay 1 sec
  DragTo 869, 852
  LeftClick
Else
  // Do these commands if false
  Delay 1 sec
End


it's like if it doesn't work :S

please help me sad.gif
Ahk
What isn't working, I tested with this, and the drag box worked fine on my desktop.

CODE
Delay 5000
MousePos 450, 450
  LeftClick
  Delay 1 sec
  DragTo 400, 400
  LeftClick
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.