11 posts in this topic

#1 ·  Posted (edited)

Ever wondered of passing on variables or words to other windows well there is a udf ready for it you can easily pass on variables words etc to other windows (non-autoit) and as well as recieve them.Basic functions and examples are provided with the UDF.The function allows two complied scripts to communicate with each other directly.

UDF available here : Download Transpond UDF.zip

 

Version updated [Current :2.0.1]

------- [Changelog] ---------

* Fixed bugs

* Fixed errors in help

 

Edited by Surya
1 person likes this

No matter whatever the challenge maybe control on the outcome its on you its always have been.

MY UDF: Transpond UDF (Sent vriables to Programs) , Utter UDF (Speech Recognition)

Share this post


Link to post
Share on other sites



Looks nice, Some errors though:

1. Use relative paths instead of @ScriptDir in includes

2. You forgot to include WindowsConstants.au3 and GUIConstantsEx.au3 :lol:

 

TD :)


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Uop, thanks a lot for sharing it with us!

Right now I'm working on a proect where some scripts should send data to the main one. I was thinking about writting the data in .ini files, and reading the .ini from the main script, but I'm going to try your solution.

 

Greets from Barcelona

 

PS: I don't know how to transpond an array, it's me or is it imposible?

Edited by Qwerty212

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Thanks for Sharing!

Unfortunately, the example doesn't seems to work, (no message/data on the receiving program).

(edited 2015.09.17)

Surya: I have read the UDF and as other already point out, it seems an incomplete copy from other post. What is going on?

Edited by Alenis
The code seems not original, instead a copy/paste from other posts. (Plagiarism)

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Surya,

The above spurred me to take a look as well.

Having either blocking functions, or calls to functions of unknown duration, within a message handler is incredibly bad coding practice - you are doing both:

Func WM_COPYDATA($hWnd, $iMsg, $wParam, $lParam)
    [...]
    MsgBox ("","calls",$return)
    Call($dat, $return)
    [...]
EndFunc   ;==>WM_COPYDATA

The Help file says quite clearly:

Warning: blocking of running user functions which executes window messages with commands such as "MsgBox()" can lead to unexpected behavior, the return to the system should be as fast as possible !!!

If you do not return ASAP you risk blocking the message flow and bringing the entire system down. I would strongly recommend recoding that handler.

M23

1 person likes this

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

You don't have to remove your code. Just give credit to guinness/KaFu that your code was based on their code. I think you should add your code again.

Regards Lars

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