jpm Posted November 15, 2005 Share Posted November 15, 2005 I will like to work on an agreed version the post #108 does not work in my environnement XP/Sp2 Office XP. I you can simplified the script that reproduce the problem that will help me. Link to comment Share on other sites More sharing options...
randallc Posted November 15, 2005 Share Posted November 15, 2005 I will like to work on an agreed version the post #108 does not work in my environnement XP/Sp2 Office XP.I you can simplified the script that reproduce the problem that will help me. hi,did you change owc11 to owc10 in objcreate? - for Office Xpbest, randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
randallc Posted November 15, 2005 Share Posted November 15, 2005 Hey, Blink, It's looking great! On Office 2003, no maximise or other problems with Northwind.db! (Excel sheet modifiable still, but....never mind for now!) Best,Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
ptrex Posted November 15, 2005 Author Share Posted November 15, 2005 @JPMSee my signature "Excel Grid in AutoIT" This is a symplified version of the problem.Should run on all OFfice versions.In the GUI there is an Excel Object when maximizing it jumps.Also try clicking in the Object when maximized@blink314I changed the Excel Object create to be fixed numbers and it works but this is mildly distressingThe world isn' t perfect I know. But it works and you should only apple the fixed number approach to the Excel Object. The rest can stay as it is.BTW did you apply tha other changes (GUICtrlSetStyle ( -1, $WS_VISIBLE )) to get the onject visible in the TABS ? And did it solve the problem ? 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...
jpm Posted November 15, 2005 Share Posted November 15, 2005 hi,did you change owc11 to owc10 in objcreate? - for Office Xpbest, randallI didn't change any think Link to comment Share on other sites More sharing options...
ptrex Posted November 15, 2005 Author Share Posted November 15, 2005 @jpm Please look at my signature "Excel Grid In AutoIT" to get a simplified version of the problem. Run the code and see the behaviour as explained above. 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...
blink314 Posted November 15, 2005 Share Posted November 15, 2005 Yeah I got the excel object to work with tabs... but I think I'm going to leave it off the tabs for now. I went through and cleaned up the GUI code this morning. It doesnt look much different... just a little cleaner programmatically. This afternoon I plan on working on Views or storing SQL commands within the database. Kevin Link to comment Share on other sites More sharing options...
ptrex Posted November 15, 2005 Author Share Posted November 15, 2005 Kevin Can you post your latest version. Than I could do some more testing and speed up the process in debugging. Thanks. 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...
blink314 Posted November 15, 2005 Share Posted November 15, 2005 Here it is. A couple small improvements (edit record gui, file menu, pull edit record data from database not excel control (screws up dates)). The biggest problems I'm having are with the GUI. It's not redrawing correctly. KevinDatabase_1.au3 Link to comment Share on other sites More sharing options...
blink314 Posted November 15, 2005 Share Posted November 15, 2005 ptrex or randallc: does the excelcom udf work through objects or are you still importing from excel via csv? The reason is I think i'm going to foget csv. Too many different formats and Excel doesnt support leading zeros well. (http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm#CSVAndExcel) How does the udf import? Kevin Link to comment Share on other sites More sharing options...
blink314 Posted November 15, 2005 Share Posted November 15, 2005 (edited) I've added data logging to every major database change (SELECT's are not logged). GUI still giving problems, but the underlying code seems to work. I had a little trouble with the SQL tab. Kevin As of 5:15PM EST, I uploaded a quick fix... there was a missing IF statment around line 1215 or so.Database_1.au3 Edited November 15, 2005 by blink314 Link to comment Share on other sites More sharing options...
randallc Posted November 15, 2005 Share Posted November 15, 2005 (edited) Hi, 1. ExcelCOM I designed to work with object, so the routines buried inside are OK. [so csv is not "used"; just a save or open file option] 2. BUT, my philosophy was to access the object as though it were in autoIt", by using the workbook as a filename with a full path, so it won't work on your object as it stands. 3. i have adjusted the "ExcelGrid" of @ptrex to work with a filename, using embedded excelgrid (not owc, so 63000rows only), but needs modification of the ExcelCOM to accept it being open in 2 separate places at once; (crashes when it tries to set the window as visible in the hidden 2nd Excel . Application) - fixable, but not today! Best, Randall) Edited November 16, 2005 by randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
piccaso Posted November 15, 2005 Share Posted November 15, 2005 at least i managed to call sqlite3_open/close from autoit, i'm still haveing trouble calling sqlite3_get_table. with these functions working basic sqlite usage is possible... #include <array.au3> ; declare function sqlite3_open cdecl lib "sqlite3.dll" alias "sqlite3_open" (zFilename as asciiz, hDB as long) as long $dll = DllOpen("sqlite3.dll") if $dll == -1 Then ConsoleWrite("DLLOpen Error") Exit EndIf $r = DllCall($dll,"int","sqlite3_open","str","my.db","long_ptr",0) if @error > 0 Then ConsoleWrite("Error: " & @error) EndIf _ArrayDisplay($r,"sqlite3_open") DllClose($dll) i have to look into more examples but this wont happen bevore weekend. so everybody who is interested give it a try CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
blink314 Posted November 15, 2005 Share Posted November 15, 2005 You managed to open a database? That's cool. Does sqlite.dll have to be in a special folder? Kevin Link to comment Share on other sites More sharing options...
ptrex Posted November 15, 2005 Author Share Posted November 15, 2005 (edited) @blink314 the last version is giving an error in line 1518. COM error. Sorry my fault no errors.It' s nearly midnight I will give it a review tomorrow.@picassoIf you use the search of this forum there is an other example of using DLL call with SQLite.Maybe one of the references in my 1st post is linking this. They had the same problem you have.Never got it to work properly. Have a look this might help you out.see you all tomorrow. Edited November 15, 2005 by 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...
blink314 Posted November 15, 2005 Share Posted November 15, 2005 Line 1518 is the object create for the OWC... I have no idea why that would have changed since I last put up the program... Kevin Link to comment Share on other sites More sharing options...
randallc Posted November 16, 2005 Share Posted November 16, 2005 Hi, See postb 132. It looks as though it would be easy to let my commands use an object name interchangeably with filename if needed; let me know; though I'm not sure I would have any other circumstance where I would use that... I looked at "SaveAs" from the GUI embedded sheet, to give it a filepath name, as a workaround, but it seems to mess up when saving from there. Best, Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
ptrex Posted November 16, 2005 Author Share Posted November 16, 2005 (edited) @blink314In my post 119 I asked you to add the "guictrlsetstyle(-1,$ws_visible)" for each control that is not showing correctly on the TABs to solve some GUI problems.In your last version this is not done ?Because so many changes and new functions are added, it might be a good idea to add some TO DO list in the 1st post. So that we all can keep track of where we are.Do you agree on this ?The TO DO list is 2 folded : one for the Bugs to fix, and an other for the features to add.Let me know if you all agree and sent me an overview of bugs and future features to add.ThanksPS please add on line 152, 159 and 310 the command "guictrlsetstyle(-1,$ws_visible)" to solve the GUI problems.Kevin the ListView for the NEW Fields is not showing, can you check if your dynamic Height, width etc is correct for this control.Please upload the new version after modifying. And could you add a version number in this variavble $GUIText = "SQLite GUI" like 1.3.2 or something so we can keep track of the changes.Just some recommondations to keep life simple for everyone.Till laterSome good scrores !!Instead of always telling the bad things. This is what I realy like :- The Excel COM seems to behave pretty well in the GUI. So I am more now in favour in the XLS com, than for the LV. (Good choise so far)- Columns in the XLS com auto resize. Very nice, saves a lot of clicking- Introduction of the SQL Log table. Realy clever thinking of you Kevin.- What I also like is 1 XLS Grid for tables and for SQL queries. Very handy.I still have a list of to do around but let first focus on problem solving. Edited November 16, 2005 by 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...
blink314 Posted November 16, 2005 Share Posted November 16, 2005 I agree with most of what you said and will get around to it. Today will probably be a slow day SQLite-wise because we are moving one of the flight sims around base today. I will work on it where I can but make no promises. THe ListView has not been touched since I added the ExcelCOM. Soon I will tackle getting it to work correctly. As far as bug/feature list... I wouldnt mind a consolidated bug list. Feature-wise we are approaching the end of the road for where I'm taking the currently implemented sections. Unless you start posting some of your ideas and I decide to implement them! Soon I will be working on the front end, which I cant promise will do what other people want it to do anyway. One big area for me is making sure the SQL tab is fully functional. As long as this tab works as expected the user can do anything they want with the database. Regarding the control issues, I thought you were only talking about the excel object. I'll go back and add to the others. Kevin Link to comment Share on other sites More sharing options...
ptrex Posted November 16, 2005 Author Share Posted November 16, 2005 As far as bug/featureI will start making a Bug and Feature list in post #1I can only start adding/changing features if you formally stop developing. Because at the moment you take the lead and I follow. I you want me to add/change things, I need to take the lead and you follow.This way I want to prevent that we end up with 2 different versions in this early stage.One big area for me is making sure the SQL tab is fully functionalI did some advanced tests on it, and it all seems to work.I am pleased to have you on the SQLite team, Kevin it's nice cooperating with you Let me know what your next plan is, and we' ll take it from there. 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