LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
Fasasoftware
- Posts: 203
- Joined: Mon Oct 31, 2011 9:36 pm
-
Contact:
Post
by Fasasoftware » Mon Apr 07, 2014 10:48 pm
Dear friends,
How to point a Loc in a Screen And Make A Click on that point??? In other words select a point in the screen and then click on it to do something???
Can you help me please with some demo codes??? Best regads,
Lestroso

-
jmburnod
- VIP Livecode Opensource Backer

- Posts: 2729
- Joined: Sat Dec 22, 2007 5:35 pm
-
Contact:
Post
by jmburnod » Mon Apr 07, 2014 11:42 pm
Hi Lestroso
If i understand correctly what you want
Why not ?
Code: Select all
click at the loc of btn 1 -- or other loc that you want
Kind regards
Jean-Marc
https://alternatic.ch
-
Fasasoftware
- Posts: 203
- Joined: Mon Oct 31, 2011 9:36 pm
-
Contact:
Post
by Fasasoftware » Tue Apr 08, 2014 12:31 pm
the click function don't work because i would like to click another window app outside the main livecode stack...Is there any other manner to do clik outside the main windows??
Thanks A lot,
Best regards,
Lestroso
-
Klaus
- Posts: 14194
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Tue Apr 08, 2014 12:34 pm
Hi Lestroso,
Fasasoftware wrote:Is there any other manner to do clik outside the main windows??
not with the build-in means.
Best
Klaus
-
Fasasoftware
- Posts: 203
- Joined: Mon Oct 31, 2011 9:36 pm
-
Contact:
Post
by Fasasoftware » Tue Apr 08, 2014 12:57 pm
thanks klaus....sob....so i can't....i hope in the future...thanks again to everybody....
lestroso
-
SparkOut
- Posts: 2945
- Joined: Sun Sep 23, 2007 4:58 pm
Post
by SparkOut » Thu Apr 10, 2014 2:03 pm
On Windows you could do this with an external (not something I could help with). You CAN use a shell command to run a pre-compiled application which does have a mouse event interface. Here is an AutoIT script which can do the mouse clicking. You can choose the "Compile With Options" version and create a CUI interface (ie, not a GUI - there is a checkbox option for this). That way you can pass arguments and retrieve return value to/from the console application.
If you write out the CUI compiled app to the temporary folder and use shell to run it, you can send it parameters to choose your click location and options. I will also find somewhere to upload a little sampler (too big to attach to the forum post) which contains the CUI compiled script as a custom property of the stack and you can see how it operates.
Edit: here is the sampler location (it may not stay there for that long)
http://mapleitsolutions.on-rev.com/test ... r.livecode
-
Attachments
-
- MouseClicksScript.zip
- Unzip to .au3 file and edit with text editor
- (590 Bytes) Downloaded 277 times
-
Thierry
- VIP Livecode Opensource Backer

- Posts: 875
- Joined: Wed Nov 22, 2006 3:42 pm
Post
by Thierry » Thu Apr 10, 2014 3:50 pm
Fasasoftware wrote:the click function don't work because i would like to click another window app outside the main livecode stack...Is there any other manner to do clik outside the main windows??
May be worth having a look:
http://www.autohotkey.com/board/topic/5 ... utohotkey/
Disclaimer: I don't use this tool; it's just in my special bookmarks.
HTH,
Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!