Pieter Posted August 24, 2006 Posted August 24, 2006 (edited) expandcollapse popup$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) TraySetIcon("images/busy.ico") ; 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) DirCreate($destfldr) DirCopy($srcfldr, $destfldr, 1) ; Inform user TrayTip("MediaSync v" & $version, "The synchronization is succesful.", 5, 1) ; Hide tray icon TraySetIcon("images/idle.ico") Opt("TrayIconHide", 1) ; Send ShowTrayIcon command to the Tray IniWrite("Messages.ini", "Message", "Tray", "ShowTrayIcon")oÝ÷ Ù«¢+Ù]¡¥±Ä($ìI¥¡Ðµ±¥¬µ¹Ô¡¹Ì¡È(ÀÌØíµÍôQÉåÑ5Í ¤($($ì5¹ÔÝ¥Ñ ÕÁÑÈ(%M±Ð($% ÍÀÌØíµÍôÀ($$% ½¹Ñ¥¹Õ1½½À($% ÍÀÌØíµÍôÀÌØíµ¹Õ}Íå¹¹½Ü($$% ±° ÅÕ½ÐíÍÑÉÑ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 August 24, 2006 by Pieter iPod + Online calendars = iPodCALsync
Xenobiologist Posted August 24, 2006 Posted August 24, 2006 HI, ??? what problem? So long, Mega 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
Pieter Posted August 24, 2006 Author Posted August 24, 2006 Sorry, I was updating the main post. Things should be correct now. iPod + Online calendars = iPodCALsync
Pieter Posted August 25, 2006 Author Posted August 25, 2006 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
Moderators SmOke_N Posted August 25, 2006 Moderators Posted August 25, 2006 $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.
Pieter Posted August 25, 2006 Author Posted August 25, 2006 Yup.Screenshot: http://img183.imageshack.us/img183/988/messagespt1.jpgBoth scripts use IniWrite("Messages.ini" or IniRead("Messages.ini" iPod + Online calendars = iPodCALsync
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now