hugone's Forum Posts

  • Hello everyone!

    I got several buttons (button plugin) that have css animation,that works with mouse/touch.

    But when only have keyboard (desktop) I would like it to simulate the click event (at least play the animation of pressing it).

    in construct2 was simple with a plugin from rex.

    in JS should be something as:

    	var button = document.getElementById('Login');
    	button.click();
    

    but does not seem to work.

    thanks in advance.

  • Does anyone have the links?

    are broken!

    thanks!

  • Mikal seems promissing!!! thank you

    could you be so kind to reupload the example? link its broken :(

  • why you dont use Mouse.X instead of absoluteX ?

    then you do not need to know the canvas size...

  • if I understood good, here is the solution:

    https://drive.google.com/file/d/1GgR2919wpv4XV4fKzQ5jGaoqOXOKyW7k/view?usp=sharing

    just reupload the link, I made it look more natural.

  • you should add the parameters in the function with right click as shown:

  • You do not have permission to view this post

  • thank you!

    I did not seen any help in the binary data object, maybe there is a way but I can not find it.

    I´ll try with the drawing canvas, I miss paster from C2... I miss C2 :((((

  • I would like to know if there is a way to convert an sprite (better the drawing canvas) to base64 or obtain the url of it in.

    thanks!

  • but I would have to include in the files the print.min.js, right?

    should I call this file in on start layout before "Browser Execute JS" ?

    if so.. how to do that?

    thanks for your patience and thank you!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thanks!

    its working like a charm!

    one more question, its possible to make it also in C2?

  • How could I just print (send to printer) the content of one image or pdf?

  • Thanks Dop2000!

    its hard for me as I never figured out how to insert JS into C2, but will try to find how

  • Hello Eren!

    great thing you made! a barcode reader is a must!!

    one thing I seen is that if the barcode exceeds the side limits of the canvas as shown here:

    it resolves the code as " ???????? ":

    I am trying to make the barcode work on camera and is difficult to make it match...

    a) do you have any idea how to make it work in such condition?

    b) in my case I would like to read code-39 (extended) but seems only to work with code-128 (both versions, the JS and plugin too)

    Thanks in advance

  • When I try to open project with LiveAudio plugin, I get an error like "Failed to open project <path>, action parameter ID duplicated in XML <XML file path> The file may be invalid..."

    And I should open this XML file and erase all lines with LiveAudio plugin.

    Not really, this happens only in the action "Play a tag (with more options)" due to volume ID... avoid to use this one and its ok... I could fix it but is not my pluging, can not fix and upload it...

    Anyway its a great plugin!