position of cursor in the field

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

Post Reply
scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

position of cursor in the field

Post by scotttyang » Sat Jan 31, 2009 12:04 am

I'm racking my brain to figure out how to identify the location of my cursor in a field so I can run a script and then return back to the end of the line that my text was one. sometimes the blinking i-beam cursor can be mid field in a group of text. please assist

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Jan 31, 2009 1:32 am

Dear scotttyang,

You can use the selectedChunk, the selectedLine, or the selectedField or a combination of those.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply