AZJIO Posted March 31, 2019 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
ghost911 Posted March 31, 2019 Author 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
ghost911 Posted March 31, 2019 Author Posted March 31, 2019 please download the file it works at home Tampon.pb
ghost911 Posted March 31, 2019 Author 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
junkew Posted March 31, 2019 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
ghost911 Posted April 1, 2019 Author 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
ptrex Posted April 1, 2019 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
ghost911 Posted April 1, 2019 Author Posted April 1, 2019 Hello is compatible with Windows, Linux et MacOS X.
ptrex Posted April 1, 2019 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
tarretarretarre Posted April 1, 2019 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)
AZJIO Posted April 1, 2019 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
ghost911 Posted April 2, 2019 Author 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
ghost911 Posted April 2, 2019 Author 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
Developers Jos Posted April 6, 2019 Developers 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.
ghost911 Posted April 6, 2019 Author Posted April 6, 2019 I did not understand I will remove it is not a problem it was just to show the size comparison
Developers Jos Posted April 6, 2019 Developers 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.
ghost911 Posted April 6, 2019 Author 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
Developers Jos Posted April 6, 2019 Developers 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.
ghost911 Posted April 6, 2019 Author Posted April 6, 2019 haha yes please excuse me it is with the copy paste of the translation tarretarretarre 1
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