Search notes:

Stellarium API: core.selectObjectByName

core.selectObjectByName(
 'Venus'  , // The english name of the object to be selected
  true      // If the pointer needs to be enabled
);

Pointer

An enabled «pointer» (second argument) refers to the four red somewhat glowing lines around the selected object:

See also

What (that is: how much) object related data is shown when an object is select can be configured in Configuration->Information.
The corresponding Script API function is core.setSelectedObjectInfo.
core.getObjectPosition()
core.moveToObject(), core.moveToSelectedObject()
StelMovementMgr.setFlagTracking(true) goes to the selected object and tracks it.
Stellarium Script API

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Wissensc...', 1758201371, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Wissenschaft/Astronomie/tools/Stellarium/script/API/core/selectObjectByName(58): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78