Noncentz705's Recent Forum Activity

  • maybe try setTimeout(fn,0);

    Example from pointerpos behavior where this.inst.elem isn't defined yet.

    	behinstProto.onCreate = function(){
    		var self = this.inst;
    		setTimeout(function(){
    			self.elem['onselect'] = function(){ ... };
    		},0);
    	};
    [/code:1d0dx5fe]
  • Ashley, i had made this for Joannesalfa behavior-exif_t111568

    It uses this lib - https://github.com/blueimp/JavaScript-Load-Image

  • If you give the list an id and use the browser object you could prevent the context menu.

    some_id.oncontextmenu = function(e){e.preventDefault();}[/code:nmimjs26]
    
    Then you'll run into the other problem mentioned of clicks not registering. 
    To solve this, add the function object to your project, create a function called onrightclick and use c2_callFunction  to fire a callback.
    
    Now your code would look like this instead
    On start of layout execute JS  [code:nmimjs26]some_id.oncontextmenu = function(e){e.preventDefault();c2_callFunction('onrightclick');}[/code:nmimjs26]
    
    Function on 'onrightclick'
    Selected item text is "Item 1"       Do something
  • I've written a plugin that pipes to cmd directly, and returns the shell response, but I won't release it.

    The double batch trick works fine. Make sure you've defined a global variable named cd and that you are previewing with node-webkit.

    Global text c:/users/bob/desktop/foo.bat

    On some event browser execute JS "require('child_process').execFile('"&cd&"');"

  • A behavior was requested to get exif data of images and help keep orientation.

    It works with either file-chooser or custom input plugin.

    Download Example in zip (json plugin required)

  • Can add the keyboard plugin to your project 'Keyboard on return pressed do something'.

    If you need getting/setting cursor position... with textarea you could try pointer pos behavior

  • Get the argument list passed to node-webkit at launch.

    For instance running newproject.exe -layout lvl1 would return an arguments list with a length of 2,

    where -layout and lvl1 are each an argument. Avoid using --prefixes, they are used for chromium arguments

    EXPRESSIONS

    argv (Arguments as JSON (Load into array))

    args (Arguments as String)

    length (Arguments length)

    argAt (Argument at index)

    CONDITIONS

    Is nodeWebkit

    Has argument ("")

    EXAMPLE

    Has argument('-layout') Go to layout of the next index

    (see capx in zip)

    Download

    Update : Added the ability to take a snapshot of the window

  • A behavior for the textbox plugin

    ACTIONS:

    Remove line

    Insert text at line index

    Insert text at index

    Select text

    Select text range

    Exps :

    lineStart(0)

    lineEnd(0)

    lineText(0)

    lineLength(0)

    currentLine

    lineCount

    selectionStart

    selectionEnd

    selectedText

    CONDITIONS:

    Is date

    Is email

    ::DOWNLOAD::

    ::DEMO::

  • thenewboston used to watch your videos awesome, if it's really you.

  • Hello I'm... here for the 25 reputation

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> Thank me by testing my plugins and maybe you could suggest these kind of features be added.

    For now here's a behavior, that should do that for textbox. https://dl.dropboxusercontent.com/u/139 ... terpos.zip ...

  • It's not perfect but does what you want if want to move it's index.

Noncentz705's avatar

Noncentz705

Member since 28 Apr, 2013

None one is following Noncentz705 yet!

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

13/44
How to earn trophies