Sign in to follow this  
Followers 0
paavtbirk

Please help how run script in another script

16 posts in this topic

Please help write scripts.

How run script2 ("...au3") in script1 ("...au3") and return variables from script2 in script1 (for use this variables in script1). Not use "#include".

Thank.

Ответ можно по Русски.

Share this post


Link to post
Share on other sites



Please help write scripts.

How run script2 ("...au3") in script1 ("...au3") and return variables from script2 in script1 (for use this variables in script1). Not use "#include".

Thank.

Ответ можно по Русски.

Assuming that script2 hasn't been compiled then you will find what you need in the help under "running scripts".

Here is an example.

$AutoItProdexePath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir");installDir for production
$AutoItBetaexePath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "betaInstallDir");installDir for Beta

Run('"' & $AutoItProdexePath & '\AutoIt3.exe" Script2.au3')

Welcome to the AUtoIt forums :)


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

paavtbirk,

First, welcome to the AutoIt forums.

Using the Search facility is a good tip as there is a pretty good chance your question, or something like it, has been asked before. Look for the "Search" button to the right in the title bar.

Some possible solutions I found:

1 - Use ClipPut and ClipGet.

2. - Use IniWrite and IniRead.

3. - Try ChrisL's code here.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Share this post


Link to post
Share on other sites

Yashied,

As usual, very nice!

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Thanks for all.

Are any examples the safe ( in interception another programs)?

Assuming that script2 hasn't been compiled then you will find what you need in the help under "running scripts".

Here is an example.

$AutoItProdexePath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir");installDir for production
$AutoItBetaexePath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "betaInstallDir");installDir for Beta

Run('"' & $AutoItProdexePath & '\AutoIt3.exe" Script2.au3')

Welcome to the AUtoIt forums :)

In AutoIt help file i not find this example...

Share this post


Link to post
Share on other sites

What do you mean?

I have in mind.

The potential threat of interception variables by hackers or another AutoIT scripts.

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Wow! You can use encryption. If somebody wants to intentionally intercept your data, it would do so in any case.

Generation MD5 not support decrypt text (decrypt text not), or no?

What you think, what algoritm very good or what algoritm refers to Claude Elwood Shannon requirements.

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

Generation MD5 not support decrypt text (decrypt text not), or no?

What you think, what algoritm very good or what algoritm refers to Claude Elwood Shannon requirements.

Depends on what you are objective. May be sufficient RC4 - _StringEncrypt()?

:)

EDIT: I do not know what you thought, but I think that the ( pipe + _StringEncrypt() ) = Good Choice.

Edited by Yashied

Share this post


Link to post
Share on other sites

Depends on what you are objective. May be sufficient RC4 - _StringEncrypt()?

:)

EDIT: I do not know what you thought, but I think that the ( pipe + _StringEncrypt() ) = Good Choice.

For generation absolutly random keys.

Share this post


Link to post
Share on other sites

This is a senseless discussion. I think you better describe what you want done. What kind of data you pass from one script to another.

For generation absolutly random keys.

To get started, see Help File for AutoIt to _StringEncrypt().

Share this post


Link to post
Share on other sites

( pipe + _StringEncrypt() ) = Good Choice.

You can link to about pipe?

This is a senseless discussion. I think you better describe what you want done. What kind of data you pass from one script to another.

I submit random keys for crypt text in main script.

Share this post


Link to post
Share on other sites

You can link to about pipe?

http://www.autoitscript.com/forum/index.php?showtopic=59464

I submit random keys for crypt text in main script.

Use _StringEncrypt (). This is more than enough, and quite enough of my example.

Share this post


Link to post
Share on other sites

Thank you for your attention.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0