AZJIO Posted March 31, 2019 Share Posted March 31, 2019 You need to use memory, then it will be fast. By the way, there seems to be 2 errors. *MemoryID+2 *MemoryID+18 And the idea itself, I do not understand. Do you want to change all the lines? But how not to take into account the case of letters? My other projects or all Link to comment Share on other sites More sharing options...
ghost911 Posted March 31, 2019 Author Share Posted March 31, 2019 (edited) look good I already use memory with bytes = ReadData (0, * MemoryID, length) after with : Hex(PeekB (*MemoryID+I) Your method will not work with CopyMemoryString because if you want to read a binary file as an executable it will not work Ā Ā Ā Ā Ā Ā Ā Edited March 31, 2019 by ghost911 Link to comment Share on other sites More sharing options...
ghost911 Posted March 31, 2019 Author Share Posted March 31, 2019 please download the file it works at home Ā Ā Tampon.pb Link to comment Share on other sites More sharing options...
ghost911 Posted March 31, 2019 Author Share Posted March 31, 2019 TempsDepart.q = ElapsedMilliseconds() If ReadFile(0,"test.exe") length = Lof(0) *MemoireID = AllocateMemory(length*8) While Eof(0) = 0 String.s=Hex(ReadByte(0),#PB_Byte) CopyMemoryString(String,@*MemoireID) Wend CloseFile(0) Byte=MemoryStringLength(*MemoireID-length) Debug Byte Debug PeekS (*MemoireID-Byte) Else MessageRequester("Info","Not open") EndIf TempsEcoule.q = ElapsedMilliseconds()-TempsDepart ; La valeur 'TempsEcoule' devrait ĆŖtre d'environ 1000 millisecondes Debug "Temps Ć©coulĆ© : "+Str(TempsEcoule)+" millisecondes" Ā Ā here is the method 2 faster than the first but the problem I can not point to the beginning of the file in memory Link to comment Share on other sites More sharing options...
junkew Posted March 31, 2019 Share Posted March 31, 2019 I am trying to understand your endgoal. Full AutoIt language compiled? Just a subset of AutoIt commands/functions? Portability on windows, linux, max? How far? Support COM? objCreate? DLLCall? Sendmessage? .... Probably easier to make an AutoIt compiler based on C# Earthshine 1 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt,Ā Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
ghost911 Posted April 1, 2019 Author Share Posted April 1, 2019 (edited) Purebasic supports linux and windows compatible yes we will try to compile the best possible according to our means and our capacities we will try to do the maximum so that it looks like autoIt even if it will not be perfect we try already with windows this is a challenge we will try to do functions little by little the C# language is not really compile there is decompiler that exists it's not machine code Ā this is a challenge we will try to do functions little by little Ā Ā Ā this is a challenge we will try to do functions little by little Ā Ā Ā Ā Edited April 1, 2019 by ghost911 Link to comment Share on other sites More sharing options...
ptrex Posted April 1, 2019 Share Posted April 1, 2019 Hi Ghost911, Ā If PB is crossplatform compatible... that is great !Ā Any idea if it supports the ARM architecture ? 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...
ghost911 Posted April 1, 2019 Author Share Posted April 1, 2019 Hello is compatible with Windows, Linux et MacOS X. Link to comment Share on other sites More sharing options...
ptrex Posted April 1, 2019 Share Posted April 1, 2019 Sure but Linux on x86 or Linux on ARM ? 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...
tarretarretarre Posted April 1, 2019 Share Posted April 1, 2019 Nice! Socket-IO - An event-driven TCP UDF (Realtime chat example) AutoIt-API-WS - An expressive HTTP server you can use to build your own API with (Screenshots) Link to comment Share on other sites More sharing options...
AZJIO Posted April 1, 2019 Share Posted April 1, 2019 String.s=Hex(ReadByte(0),#PB_Byte) CopyMemoryString(String,@*MemoireID) ; What is the unnecessary variable for? CopyMemoryString(Hex(ReadByte(0),#PB_Byte),@*MemoireID) ; If you set the length of the variable, then it will work faster, since there will be no re-allocation of memory Define String.s{2} Ā My other projects or all Link to comment Share on other sites More sharing options...
ghost911 Posted April 2, 2019 Author Share Posted April 2, 2019 (edited) @ptrexĀ I do not know trying to see on the official purebasic forum @AZJIOĀ I will look at your code thank you Edited April 2, 2019 by ghost911 Link to comment Share on other sites More sharing options...
ghost911 Posted April 2, 2019 Author Share Posted April 2, 2019 (edited) @AZJIOĀ I do not understand why hexadecimal is not perfectly reproduced i have new idea Edited April 2, 2019 by ghost911 Link to comment Share on other sites More sharing options...
ghost911 Posted April 6, 2019 Author Share Posted April 6, 2019 Big update available Link to comment Share on other sites More sharing options...
Developers Jos Posted April 6, 2019 Developers Share Posted April 6, 2019 @ghost911 This is the last time I am going to request to remove the compiled AutoIt3 script from your PureAutoItInclude.rar distribution file. We have now multiple times explained why we don't want compiled AutoIt3 scripts in a attached file and it doesn't serve any purpose.Ā Failing to do so will get your topic banned from this site. Jos Ā SciTE4AutoIt3 Full installer Download page Ā -Ā Beta filesĀ Ā Ā Ā Read before postingĀ Ā Ā How to post scriptsourceĀ Ā Ā Forum etiquetteĀ Forum RulesĀ Ā Live for the present, Dream of the future, Learn from the past.Ā Link to comment Share on other sites More sharing options...
ghost911 Posted April 6, 2019 Author Share Posted April 6, 2019 I did not understand I will remove it is not a problem it was just to show the size comparison Link to comment Share on other sites More sharing options...
Developers Jos Posted April 6, 2019 Developers Share Posted April 6, 2019 (edited) as stated in the PM I just send: Quote No problem, butĀ we have tried to explain to you multiple times that AutoIt3 compiled scripts can be flagged as malicious file due to wrong AV detection methods and can also cause Google to list the website as malicious and blocking you... as you have noticed yourself, right?Ā So we obviously don't want that to happen to our forum!Ā There is No need whatsoever to include any EXE in this case as people can compile both the AutoIt3 script and the Powerbasic script themselves! Jos Edited April 6, 2019 by Jos SciTE4AutoIt3 Full installer Download page Ā -Ā Beta filesĀ Ā Ā Ā Read before postingĀ Ā Ā How to post scriptsourceĀ Ā Ā Forum etiquetteĀ Forum RulesĀ Ā Live for the present, Dream of the future, Learn from the past.Ā Link to comment Share on other sites More sharing options...
ghost911 Posted April 6, 2019 Author Share Posted April 6, 2019 Here I remove everything UPX executable autoit and that of purebasic ! Ā Ā Ā you can compile the files by yourself and download upx tarretarretarre 1 Link to comment Share on other sites More sharing options...
Developers Jos Posted April 6, 2019 Developers Share Posted April 6, 2019 Thanks, and do us all another favor and use the standard forum font when writing post and only change words that require emphasis. JosĀ SciTE4AutoIt3 Full installer Download page Ā -Ā Beta filesĀ Ā Ā Ā Read before postingĀ Ā Ā How to post scriptsourceĀ Ā Ā Forum etiquetteĀ Forum RulesĀ Ā Live for the present, Dream of the future, Learn from the past.Ā Link to comment Share on other sites More sharing options...
ghost911 Posted April 6, 2019 Author Share Posted April 6, 2019 haha yes please excuse me it is with the copy paste of the translation tarretarretarre 1 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