tlman12 Posted September 17, 2009 Posted September 17, 2009 I was wondering if there is anyway for autoit to send information from one process to a "parent" or seperat process example of what i want to do a main application with a gui that will have multiple progress bars and will launch multiple other executables. what would i put in the secondary executables so they can report infomation of their progress to the main gui?
Yashied Posted September 17, 2009 Posted September 17, 2009 http://www.autoitscript.com/forum/index.php?showtopic=91346 My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
tlman12 Posted September 18, 2009 Author Posted September 18, 2009 http://www.autoitscript.com/forum/index.php?showtopic=91346that appears to be exactly what i want excpet for one flaw that i can't seem to figure out...it send text inclosed in "" just fine or a guictrlread of a txt box or inputbox but i can't seem to get it to send the result of an equasion like $p = $p + $Temp $data = $p if _IsReceiver($reciever) then MsgBox(0,"",$reciever & " Found" & @CRLF & "trying to send "&$data) _MsgSend($reciever, $data) endifin this particular script $temp is calculated based on the reletive size of a file against the total size of the whole$p is a running total i want to send $p to a progress bar on my main gui $p is calculation correctly and i have a message box that tells me the number it's senting but it never makes it to the main guiif i change $data = $p to $data = "1.29885" for example it sends it to the main gui and sets the progress perfectlyi don't know if it's something i'm doing wrong or if it is a limitation of the script but any help would be great thanks
Yashied Posted September 18, 2009 Posted September 18, 2009 _MsgSend($reciever, String($data)) My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
tlman12 Posted September 20, 2009 Author Posted September 20, 2009 _MsgSend($reciever, String($data))awesome worked perfectlynice UDF
tlman12 Posted September 20, 2009 Author Posted September 20, 2009 Should i open a new topic for this or can you answer it? how do i write a function with an optional variable? like _FuncName($Var1,$Var2,$OptionalVar3)
Yashied Posted September 20, 2009 Posted September 20, 2009 (edited) how do i write a function with an optional variable? like _FuncName($Var1,$Var2,$OptionalVar3) But why? EDIT: _MsgSend($reciever, $Var1 & "|" & $Var2 & "|" & $OptionalVar3) ... $aData = StringSplit($Msg, "|") ... Edited September 20, 2009 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
tlman12 Posted September 20, 2009 Author Posted September 20, 2009 But why? EDIT: _MsgSend($reciever, $Var1 & "|" & $Var2 & "|" & $OptionalVar3) ... $aData = StringSplit($Msg, "|") ... sorry i think you misunderstood that that question is separate from the previous one, what i meant was i want to creat a new function Func _FuncName($var1,$Var2,$Optvar1) endfunc but like if you speficy 3 variables when you write a function and you don't call it with 3 variables the script fails i need to create a function with 2 required variables and one that is optional
Yashied Posted September 20, 2009 Posted September 20, 2009 (edited) ???Func _FuncName($Var1, $Var2, $OptVar3 = 0)...EndFunc ;==>OnAutoItExit Edited September 20, 2009 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
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