Git Product home page Git Product logo

Comments (4)

datavectors avatar datavectors commented on June 26, 2024

You can launch through command object a parallel message box using another tool such as yad. Or possibly two Actiona processes (each launched by actexec) which intercommunicate in parallel? Just use Actiona with other tools in a toolchain.

from actiona.

Jmgr avatar Jmgr commented on June 26, 2024

You can write some code creating a MessageBox. You can then call show and close to display a non-modal message box.

from actiona.

datavectors avatar datavectors commented on June 26, 2024

I have just tried this in a Code object but no MessageBox shows.

I am in Ubuntu 20.04 with Actiona 3.10.1.


// MessageBox object
// https://wiki.actiona.tools/doku.php?id=en:code:windows:messagebox

var myObject = new MessageBox({
	title: "Press yes or no",
	icon: MessageBox.Warning,
	buttons: MessageBox.Yes | MessageBox.No
});

myObject.show();


from actiona.

Jmgr avatar Jmgr commented on June 26, 2024

The issue is that this code will not block the execution of the script, so the messagebox is probably shown and instantaneously closed because the script has finished running.

Try with this script:

<?xml version="1.0" encoding="UTF-8"?>
<scriptfile>
    <settings program="actiona" version="3.10.1" scriptVersion="1.1.0" os="GNU/Linux"/>
    <actions>
        <action name="ActionPause" version="1.0.0"/>
        <action name="ActionCode" version="1.0.0"/>
    </actions>
    <parameters/>
    <resources/>
    <script pauseBefore="0" pauseAfter="0">
        <action name="ActionCode">
            <exception id="0" action="0" line=""/>
            <exception id="1" action="0" line=""/>
            <exception id="2" action="1" line=""/>
            <parameter name="code">
                <subParameter name="value" code="1">var myObject = new MessageBox({
	title: &quot;Press yes or no&quot;,
	icon: MessageBox.Warning,
	buttons: MessageBox.Yes | MessageBox.No
});

myObject.show();</subParameter>
            </parameter>
        </action>
        <action name="ActionPause">
            <exception id="0" action="0" line=""/>
            <exception id="1" action="0" line=""/>
            <exception id="2" action="1" line=""/>
            <parameter name="duration">
                <subParameter name="value" code="0">30</subParameter>
            </parameter>
            <parameter name="unit">
                <subParameter name="value" code="0">seconds</subParameter>
            </parameter>
        </action>
    </script>
</scriptfile>

from actiona.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.