DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


sample_code:getposition

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
sample_code:getposition [2015/01/07 08:51]
octazid
sample_code:getposition [2018/05/20 23:49]
geez437
Line 1: Line 1:
 ====== GetPosition() ====== ====== GetPosition() ======
-(Sample Code taken from the DroidScript Google-Group)+//(Sample Code taken from the DroidScript Google-Group)
 <code JavaScript GetPosition.js>​ <code JavaScript GetPosition.js>​
    var obj = element.GetPosition();​    var obj = element.GetPosition();​
    ​app.Alert(obj.left + "​\n"​ + obj.top + "​\n"​+ obj.width + "​\n"​ + obj.height ​ )    ​app.Alert(obj.left + "​\n"​ + obj.top + "​\n"​+ obj.width + "​\n"​ + obj.height ​ )
 </​code>​ </​code>​
sample_code/getposition.txt ยท Last modified: 2018/05/20 23:49 by geez437