Page 1 of 1

Control mouse and keyboard? Search screen for specific color

Posted: Mon Jul 04, 2016 8:05 pm
by Jordy
Anyone have any suggestions for the commands to control the mouse and keyboard?

Also wondering if there is a way to search the screen and use something like an "eyedropper" to check the color

Re: Control mouse and keyboard? Search screen for specific c

Posted: Mon Jul 04, 2016 8:46 pm
by Simon
Hi Jordy,
1st one is ...set the screenMouseLoc x,y
2nd Is ...type "Hi Jordy"
3rd is ... put the mouseColor

Not sure this is exactly what you were asking for.
Check them out in the dictionary.

Simon

Re: Control mouse and keyboard? Search screen for specific c

Posted: Mon Jul 04, 2016 9:09 pm
by Jordy
some good hints, dictionary says mouseloc can find or set the mouse cursor (which is what I was looking for). Would this limit to the satck or could it access the entire desktop

Re: Control mouse and keyboard? Search screen for specific c

Posted: Mon Jul 04, 2016 9:15 pm
by Simon
Be sure... it's screenMouseLoc
To answer your question, the whole screen.

Simon

Re: Control mouse and keyboard? Search screen for specific c

Posted: Tue Jul 05, 2016 5:18 am
by Jordy
screenMouseLoc worked great, it will access the entire desktop.

I tried to use the click command to open IE but click wasn't working outside of the stack.

from dictionary on click command:
If the point is not within one of the application's windows, the click command has no effect. This means that you cannot use the click command to switch to another application.

Any suggestions to get around this?

Re: Control mouse and keyboard? Search screen for specific c

Posted: Tue Jul 05, 2016 6:41 am
by SparkOut
http://forums.livecode.com/viewtopic.ph ... 5&p=101118 will help with Windows. You may be able to do something similar for other platforms

Re: Control mouse and keyboard? Search screen for specific c

Posted: Tue Jul 05, 2016 3:36 pm
by dunbarx
Hi.

Usually, we use the "launch" command to do what you asked for. In that way, the location of the application window is not important. Dictionary, please...

Craig Newman