Page 1 of 1
Help with (write file, data input and another question)
Posted: 24 Mar 2014, 08:25
by srex
Ok so greetings, and thanks for taking you time to help me first of all.
I need help with the write text option, how do I make it write into a txt file when i already got it on the clipboard?
Basicly just need it to CTRL+V into a txt file.
Second I will need some help with data input. It shall ask the user where he wants to start in the script theres 10k cycles so if he says 2500 the user will start at cycle 2500, each cycle is already named "XXXX cycle" in the ID is it possible to do this :S?
and last is it as easy as googling how to convert to exe scripts with this program?
Re: Help with (write file, data input and another question)
Posted: 25 Mar 2014, 14:11
by Jmgr
I need help with the write text option, how do I make it write into a txt file when i already got it on the clipboard?
Basicly just need it to CTRL+V into a txt file.
You could open an editor, click on it so it has the focus and then use a Key action to press Ctrl+V. Or you could a Read Clipboard and a Write Text action :
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<scriptfile>
<settings program="actionaz" version="3.8.0" scriptVersion="1.1.0" os="Windows"/>
<actions>
<action name="ActionReadClipboard" version="1.0.0"/>
<action name="ActionWriteTextFile" version="1.0.0"/>
</actions>
<parameters/>
<resources/>
<script pauseBefore="0" pauseAfter="0">
<action name="ActionReadClipboard">
<exception id="0" action="0" line=""/>
<exception id="1" action="0" line=""/>
<exception id="2" action="1" line=""/>
<parameter name="variable">
<subParameter name="value" code="0">data</subParameter>
</parameter>
</action>
<action name="ActionWriteTextFile">
<exception id="0" action="0" line=""/>
<exception id="1" action="0" line=""/>
<exception id="2" action="1" line=""/>
<exception id="32" action="0" line=""/>
<parameter name="mode">
<subParameter name="value" code="0">truncate</subParameter>
</parameter>
<parameter name="file">
<subParameter name="value" code="0">myfile.txt</subParameter>
</parameter>
<parameter name="text">
<subParameter name="value" code="0">$data</subParameter>
</parameter>
</action>
</script>
</scriptfile>
Second I will need some help with data input. It shall ask the user where he wants to start in the script theres 10k cycles so if he says 2500 the user will start at cycle 2500, each cycle is already named "XXXX cycle" in the ID is it possible to do this :S?
By "cycle" I suppose you mean "script line" ? You can use a Goto action to jump to a specific line. If you use a variable then it will jump to the line corresponding to the value of the variable.
and last is it as easy as googling how to convert to exe scripts with this program?
You can export an SFX script (.exe) by clicking File->Export->Executable.