Jump to content
Sign in to follow this  

Problem with passing data to another script

Recommended Posts


$asksync = MsgBox(36,"MediaSync v" & $version, "A synchronizable drive was detected on drive " & $sync_drive & ". Do you want to perform a synchronization?")
            ; Send HideTrayIcon command to the Tray
            IniWrite("Messages.ini", "Message", "Tray", "HideTrayIcon")
            ; Show tray icon
            Opt("TrayIconHide", 0)
            ; Get settings from the .ini file on the drive
            $srcfldr = IniRead($sync_drive & ":\MediaSync.ini", "sync", "src", "error")
            $destfldr = IniRead($sync_drive & ":\MediaSync.ini", "sync", "dest", "error")
            TrayTip("MediaSync v" & $version, "Performing synchronization...", 5, 1)
            ; Here we go!
            DirRemove($destfldr, 1)
            DirCopy($srcfldr, $destfldr, 1)
            ; Inform user
            TrayTip("MediaSync v" & $version, "The synchronization is succesful.", 5, 1)
            ; Hide tray icon
            Opt("TrayIconHide", 1)
            ; Send ShowTrayIcon command to the Tray
            IniWrite("Messages.ini", "Message", "Tray", "ShowTrayIcon")oÝ÷ Ù«­¢+Ù]¡¥±Ä($ìI¥¡Ðµ±¥¬µ¹Ô¡¹Ì¡­È(ÀÌØíµÍôQÉåÑ5Í ¤($($ì5¹ÔÝ¥Ñ ÕÁÑÈ(%M±Ð($%
±° ÅÕ½ÐíÍÑÉÑMå¹ÅÕ½Ðì¤($%
±° ÅÕ½ÐíÉ¥Ù
ÍÀÌØíµÍôÀÌØíµ¹Õ}ÕÁÑ($$%IÕ¸ ÅÕ½Ðí5MUÁÑȹáÅÕ½Ðì¤($%
±° ÅÕ½Ðí½ÕÐÅÕ½Ðì¤($%
±° ÅÕ½Ðíá¥ÑQÉäÅÕ½Ðì¤($%¹M±Ð($($ì
¡¬½È¥¹½µ¥¹µÍÍÌɽ´Ñ¡]Ñ¡È($ÀÌØí¡­½ÉµÍô%¹¥I ÅÕ½Ðí5ÍÍ̹¥¹¤ÅÕ½Ðì°ÅÕ½Ðí5ÍÍÌÅÕ½Ðì°ÅÕ½ÐíQÉäÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì¤(%%ÀÌØí¡­½ÉµÍôÅÕ½Ðí!¥QÉå%½¸ÅÕ½ÐìQ¡¸($%=ÁÐ ÅÕ½ÐíQÉå%½¹!¥ÅÕ½Ðì°Ä¤(íø$%5Í    ½à À°ÅÕ½Ðí¤ÅÕ½Ðì°ÅÕ½Ðí¡¥ÅÕ½Ðì¤($%%¹¥]É¥Ñ ÅÕ½Ðí5ÍÍ̹¥¹¤ÅÕ½Ðì°ÅÕ½Ðí5ÍÍÅÕ½Ðì°ÅÕ½ÐíQÉäÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì¤(%¹%(%%ÀÌØí¡­½ÉµÍôÅÕ½ÐíM¡½ÝQÉå%½¸ÅÕ½ÐìQ¡¸($%=ÁÐ ÅÕ½ÐíQÉå%½¹!¥ÅÕ½Ðì°À¤(íø$%5Í  ½à À°ÅÕ½Ðí¤ÅÕ½Ðì°ÅÕ½ÐíÍ¡½ÜÅÕ½Ðì¤($%%¹¥]É¥Ñ ÅÕ½Ðí5ÍÍ̹¥¹¤ÅÕ½Ðì°ÅÕ½Ðí5ÍÍÅÕ½Ðì°ÅÕ½ÐíQÉäÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì¤(%¹%)]¹
As you can see, a script tries to pass a command to another script, but that doesn't work here. Why?

Edited by Pieter

iPod + Online calendars = iPodCALsync

Share this post

Link to post
Share on other sites


??? what problem?

So long,


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post

Link to post
Share on other sites

Sorry, I was updating the main post. Things should be correct now.

iPod + Online calendars = iPodCALsync

Share this post

Link to post
Share on other sites

Here's the deal: I use a file, called Messages.ini, where two scripts can pass data to each other. At a certain point, I ask the first script to pass "HideTrayIcon" to the second one. The second script should catch the command using a While loop that constantly checks if a new message is passed to it, but it doesn't seem to catch the command. What could be wrong?

iPod + Online calendars = iPodCALsync

Share this post

Link to post
Share on other sites

$checkformsg = IniRead("Messages.ini", "Messages", "Tray", "")
ToolTip($checkformsg, 0, 0)
Would probably tell you. Is the .ini in the same directory as the script(s) you are using?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.