Script to click away from an icon

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
abanowBUSTfGf
Posts: 63
Joined: Sat Dec 22, 2012 3:01 am

Script to click away from an icon

Post by abanowBUSTfGf » Thu Jan 10, 2013 2:54 am

There is obviously no "hover" on a touchscreen eg. of an Android. How do I script to click away from an object.
I tried the script:

Click at "1,1"
but it does not work. Any ideas?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Script to click away from an icon

Post by dunbarx » Thu Jan 10, 2013 3:56 am

Hi.

Yes, the "click" command simulates a click at a given point, but does not actually move the cursor to that location.

Check out "the screenMouseLoc" in the dictionary.

You can also hide the cursor, I guess.

Craig Newman

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Script to click away from an icon

Post by sturgis » Thu Jan 10, 2013 5:12 am

Also, if you're just trying to remove focus from an object you can try

Code: Select all

focus on nothing

Post Reply