/dev/null Posted January 22, 2007 Share Posted January 22, 2007 It' s a pitty, because there is lot's of potential going down the drain this way !!why? What's the difference between your "syntax" (call(_PV,20,1,2)) and the way valik suggested? In both cases you need to know the function name and the parameters, so if you think you can do it your way, you can also do it the "valik way"... Regarding the return value of your function, you will get into trouble. As JPM told you, you can only get the exit status of the script this way. So this is kind of limited, as you can only return numerical values of a limited range.CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
ptrex Posted January 22, 2007 Author Share Posted January 22, 2007 @/dev/null(call(_PV,20,1,2)) and the way valik suggested? In both cases you need to know theThe difference is that the CALL function works only for NON compiled scripts, in the same script process.The method of Valik works for compiled EXE scripts. This was needed in case you make a UDF lib which you compile to an EXE.And want to call idividual functions in the compiled UDF lib. This is the only workable solution so far.only return numerical values of a limited rangeNot only numerical values. But all are Alfanumerical values.Indead it will be the return values But this will do for most UDF's. Most UDF's have return values, don't they ?So that is not a problem.regards,ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
/dev/null Posted January 22, 2007 Share Posted January 22, 2007 @/dev/nullThe difference is that the CALL function works only for NON compiled scripts, in the same script process.The method of Valik works for compiled EXE scripts. This was needed in case you make a UDF lib which you compile to an EXE.And want to call idividual functions in the compiled UDF lib. This is the only workable solution so far.?? I think we are talking about different things... ??Not only numerical values. But all are Alfanumerical values.you cannot have alphanumerical values as an EXIT value!CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
ptrex Posted January 22, 2007 Author Share Posted January 22, 2007 @/dev/null ConsoleWrite(today()&@CR) Func today() ;Return the current date in mm/dd/yyyy form return (@MON & "/" & @MDAY & "/" & @YEAR) EndFunc This seems AlfaNum to me Up till now i can return anything I need. I don' t see a problem (yet ?!) Anything that is returned to the console I/O I can return to the COM object as a return value. I don't see your point ? regards, ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
/dev/null Posted January 22, 2007 Share Posted January 22, 2007 @/dev/null ConsoleWrite(today()&@CR) Func today() ;Return the current date in mm/dd/yyyy form return (@MON & "/" & @MDAY & "/" & @YEAR) EndFunc This seems AlfaNum to me Erm... ptrex, do we talk about function return codes or AutoIT script EXIT codes (exit())??? I do talk about exit codes as that is the only thing that makes sense with your request!! Cheers Kurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
ptrex Posted January 22, 2007 Author Share Posted January 22, 2007 @/dev/null Seems that we talk about 2 different things as it seems. I only know functions EXIT (or RESULT codes). Sorry to have kept you going. regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
sohfeyr Posted January 23, 2007 Share Posted January 23, 2007 If you got something going, keep us up to date.Gladly, but I should tell you that because of the complexity of what I'm doing, I will probably end up doing most of my own COM objects in VB.Net 2. I hope to do some of the simpler items in WSC like you demonstrated but have yet to figure to how to force multiple instances to refer to the same COM object. (It can't be as simple as implementing a Singleton pattern like in Java, can it? I need to learn a lot more about vbscript constructors...) If someone wants to volunteer knowledge of how to implement an object to do that with WSC (as Valik described), it sounds like we'd all be interested. Mine:Time Functions - Manipulate the system clock! | WinControlList (WinGetClassList++) | .Net Setup Wrapper, Detect or install .Net | Writing and using a VB .NET COM object in AutoItNot mine, but highly recommended:AutoItTreeViewExtension plugin | Menu code | Callback helper dll | Auto3Lib - Control the uncontrollable | Creating COM objects in AutoIt | Using .Net framework classes in AutoIt Link to comment Share on other sites More sharing options...
CreativeMind Posted November 29, 2023 Share Posted November 29, 2023 @ptrex Hello, so it's been 15 years. Any news on the progress on how to call a custom function in compiled exe or au3 script? Link to comment Share on other sites More sharing options...
argumentum Posted November 29, 2023 Share Posted November 29, 2023 10 minutes ago, CreativeMind said: it's been 15 years. Any news on the progress on how to call a custom function in compiled exe or au3 script? Not very "@CreativeMind" to ask such silly question. If you need help with a script of yours, make a post in the help area. Andreik 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 29, 2023 Moderators Share Posted November 29, 2023 CreativeMind, What he said! M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts