====== Differences ====== This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
script_8wheel [2017/05/18 10:15] tbog [How to use the script] |
script_8wheel [2017/05/18 12:27] (current) tbog [Script code] |
||
|---|---|---|---|
| Line 55: | Line 55: | ||
| continue; | continue; | ||
| } | } | ||
| - | // var prop = item.getProperties(); | ||
| - | // var pinMode = prop.getString( 'i.pinMode' ); | ||
| - | // /*NONE|XY|X|Y*/ | ||
| - | // if ( pinMode.indexOf( 'X' ) == -1 ) | ||
| - | // { | ||
| - | // prop.edit().setString( 'i.pinMode', 'X' ).commit(); | ||
| - | // } | ||
| - | // var onGrid = prop.getBoolean( 'i.onGrid' ); | ||
| - | // if ( onGrid ) | ||
| - | // { | ||
| - | // prop.edit().setBoolean( 'i.onGrid', false ).commit(); | ||
| - | // } | ||
| a[na++] = item; | a[na++] = item; | ||
| } | } | ||
| Line 535: | Line 523: | ||
| alert( 'unknown event source ' + event.getSource() ); | alert( 'unknown event source ' + event.getSource() ); | ||
| return; | return; | ||
| - | } | ||
| - | |||
| - | if ( empty( container.getTag("8wheel") ) ) | ||
| - | { | ||
| - | /* alert('Add shortcuts and/or folders to this container then enable the script'); | ||
| - | getCurrentScript().setFlag(Script.FLAG_DISABLED, true); | ||
| - | return; | ||
| - | */ | ||
| - | ; | ||
| } | } | ||
| </sxh> | </sxh> | ||