RAMzor Posted October 9, 2008 Share Posted October 9, 2008 I have problems to convert some piece of VB code to AutoItHow to convert this lines : On Error GoTo GetMemoryUnblockedFailed Set progress = new ADspProgress memory_type.GetMemoryUnblocked &h30000, 10000, 1, progress ... ... GetMemoryUnblockedFailed: app.PrintText tabConsole, "GetMemoryUnblocked failed" Link to comment Share on other sites More sharing options...
BrettF Posted October 9, 2008 Share Posted October 9, 2008 Maybe post the original VB code, and where you are up to now, so we may help you better Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
RAMzor Posted October 9, 2008 Author Share Posted October 9, 2008 (edited) Here is a example code from VisualDSP++ 4.5 help file (automation API chapter)VisualDSPAutomation.zipText from help:ADspProgress ObjectThis object is used to get the progress or status of an unblocked operation like a memory get, memory set, or program load. It can also be used to cancel the operation. Example:The following example demonstrates starting the memory read. Visual Basic: Dim app As Application Dim session As ADspDebugSession Dim processor As ADspProcessor Dim memory_type_list As ADspMemoryTypeList Dim memory_type As ADspMemoryType Dim progress As ADspProgress Set app = CreateObject( "VisualDSP.ADspApplication" ) Set session = app.ActiveSession Set processor = session.ProcessorList( 0 ) Set memory_type_list = processor.MemoryTypeList On Error GoTo GetItemFailed Set memory_type = memory_type_list( "Data(DM) Memory" ) On Error GoTo GetMemoryUnblockedFailed Set progress = new ADspProgress memory_type.GetMemoryUnblocked &h30000, 10000, 1, progress Exit SubGetItemFailed: app.PrintText tabConsole, "Processor doesn't have memory named ""Data(DM) Memory"" Exit SubGetMemoryUnblockedFailed: app.PrintText tabConsole, "GetMemoryUnblocked failed"-----------------------------------------------------------------------Properties:PercentCompleteMethodsCancelEventsOnCanceledonerrorOnGetMemoryCompletedonprogressOnSetMemoryCompleted-----------------------------------------------------------------------I don't anderstand RED lines - what is AutoIt eqvivalent ? Edited October 9, 2008 by RAMzor Link to comment Share on other sites More sharing options...
RAMzor Posted October 9, 2008 Author Share Posted October 9, 2008 Will no one knows? Link to comment Share on other sites More sharing options...
ptrex Posted October 12, 2008 Share Posted October 12, 2008 @RAMzor Something like this will do it. If @Error then GetMemoryUnblockedFailed () EndIf $progress = ObjCreate("ADspProgress") $memory_type.GetMemoryUnblocked (0x30000, 10000, 1, $progress) Func GetMemoryUnblockedFailed() ConsoleWrite("GetMemoryUnblocked failed" & @CRLF) EndFunc 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...
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