Jump to content

Recommended Posts

Posted

Hokay i have two programs i want to be able to send a command to one from the other without using regkeys or files so i could have it send msgbox("","","") to the other program which would show a msgbox from the other program.

Anyone know a good way to do this?

[quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]

Posted (edited)

Hokay i have two programs i want to be able to send a command to one from the other without using regkeys or files so i could have it send msgbox("","","") to the other program which would show a msgbox from the other program.

Anyone know a good way to do this?

You could send a number to indicate the function to be performed, and a string with the parameters.

Say the number sent is $number, and the string is $String with parameters separated by '|' .

$ArString = StringSplit($string,'|')
 switch $number
   Case 5;msgbox wanted
            msgbox($ArString[1],$ArString[2],$ArString[3],$ArString[4])
      endswitch

To send information from one program to another you could use this which is an example of sending a number and a string.

Edited by martin
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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...