Looking for a GUI library that will do this

I have been looking for a library that will allow me to drag something from cooridinated x,y on my to some other x’,y’ on my screen and release the mouse button. If you have any suggestions for some that might help me do this, please let me know.

Salling clicker “SEC Helper” comes with a script to remotely control the mouse
using mouse button down option. and scroll options

Maybe if you look there you may be able to adapt it to what you need.

http://www.salling.com/

Thanks for the link. I am not sure that this is really going to do what I need it to. I suppose it would be helpful to mention that I already have tools to preform the mouse click and move to a certain cooridinate on my screen.

I have been looking at the GUI tools tutorial at apple and various sites and see a mouse down kind of handler. I unfortunately haven’t had any luck using this in my code. Ideally I would be able to nest the portion of code that moves cooridinates inside a mouse down kind of handler ( i assume this just depresses a mouse and releases the depression at the end of it)

With a quick play.

I placed my mouse on the title bar of this script

and the hit Apple + R to run it. The script pressed the mouse down, grabbed the window and moved it.

tell application "SEC Helper"
simulate mouse button down number 1
	simulate mouse movement x -1 y 0 speed 20
	delay 2
	simulate mouse stop
end tell

This is only a test script So Make sure your mouse is over the Title bar or you will be chasing the mouse about.
and have a second window with

tell application "SEC Helper"

	simulate mouse stop
end tell

Just in case

You do not need to use the bluetooth stuff to use the Sec helper app embedded in SC
Using SEC helper