-
Posts
7,103 -
Joined
-
Days Won
88
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by TheDcoder
-
Maps 101: All you need to know about them!
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
@guinness I was more focusing on data addition rather than data retrieval, I also tried to do a benchmark test on data addition here, though I was not able to complete it successfully as the test was somewhat unfair... I will try to benchmark on data retrieval now. TD -
Maps 101: All you need to know about them!
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
Phew.... It took more than an hour to write Questions #3 & #4 I wonder what maps are capable of... gotta finish my project fast and start playing with them Enjoy, TD -
Maybe a Snippets Sub Forum for storing snippet threads?
-
Hello everyone I am encountering a strange problem with timers... i.e wrong time difference . This is an test script made by me to compare Arrays & Maps in terms of speed, I wanted publish the results in my Maps topic, so I am hiding the question in the spoiler to prevent spoilage If you run the script(s), you can see that sometimes the time difference is >1 but the actual difference is almost instantaneous, I don't know what is causing the problem, I think the problem is in my end this time because I used both native and UDF functions and they return identical results... However I spotted something interesting in the documentation for TimerDiff: "Remarks: Some processors are known to cause the function to return incorrect result." Hmmm.... is my processor the culprit? Or is something wrong in my script... Thanks in Advance! TD P.S It was hard to write in the dark spoiler
-
Maps 101: All you need to know about them!
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
@MartinMarris I thinks its a yes... I am not familiar with the concept of dynamic arrays but a quick google search explained me about them, though I didn't use them, I can say that a Map is similar (not same) to dynamic arrays, Resizing a map (i.e adding or removing elements from it) is faster compared to arrays. Sorry for late reply, I was busy, TD -
@Malkey Hey, sorry for late reply , Nice example though, I am sure it will be helpful for me in the future
-
I was referring to that, what is it called?.... uhhhh... .... Ah! Synthetic Sugar!, "in the script" is synthetic sugar for "in the memory" Busted , Yep, I wanted some help
-
@BrewManNH Hmmm.... .... I find water's solution to read the data in chucks now the best. I might reconsider some things tomorrow
-
@Danyfirex Did you forgot that you are not allowed to store the contents of the file in a variable?
-
Tried some crazy solutions like passing empty string, Null, Binary 0x000000 to trim the contents, currently I just finished my dinner... I am writing additional information in the header, I tried it with a hex editor, It worked! I will consider it using if its the most reliable @Danyfirex Please wait, I am experimenting
-
@UEZ Autually it was my problem which I am facing right now... Because I process *big* binary files (archives to be precise), I need to trim some stuff in it
-
Hello, I have a simple task today, I am sure that I made a similar post a long time ago... I want trim (delete or remove or wipe) the contents of a file (text or binary) WITHOUT storing the contents of the file anywhere in the script. Here is a text file for the purpose of experimenting: (contents of text.txt) 1234567890The task is simple, remove "456" from the contents of text.txt WITHOUT storing the contents anywhere! I wanted to post some code but it seems impossible to provide any relevant code this time... Good luck with the challenge! TD
-
Crash on ridiculous array sizes?
TheDcoder replied to minxomat's topic in AutoIt Technical Discussion
@minxomat ..uh... Thanks :ᴘ -
Crash on ridiculous array sizes?
TheDcoder replied to minxomat's topic in AutoIt Technical Discussion
@minxomat Oh, sorry, miss it ... @water Strange it, it crashes for me when it exceeds 16,777,216 (No errors, nothing, just crash message) -
Crash on ridiculous array sizes?
TheDcoder replied to minxomat's topic in AutoIt Technical Discussion
From here: 9e9 (9000000000) is wayyyyy more than 16,777,216 -
Here is a live example which I use in my program: #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> Global $g_hMainGUI = GUICreate("Test") Global $g_idMainGUI_YesDummy = GUICtrlCreateDummy() Global $g_idMainGUI_NoDummy = GUICtrlCreateDummy() Global $g_idMainGUI_TryAgainDummy = GUICtrlCreateDummy() Global $g_idMainGUI_AbortDummy = GUICtrlCreateDummy() Local $aAccelKeys[4][2] = [["y", $g_idMainGUI_YesDummy], ["n", $g_idMainGUI_NoDummy], ["t", $g_idMainGUI_TryAgainDummy], ["a", $g_idMainGUI_AbortDummy]] GUISetAccelerators($aAccelKeys, $g_hMainGUI) GUISetState() While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $g_idMainGUI_YesDummy MsgBox($MB_OK, "Test", "You pressed 'y' which means Yes!") Case $g_idMainGUI_NoDummy MsgBox($MB_OK, "Test", "You pressed 'n' which means No!") Case $g_idMainGUI_TryAgainDummy MsgBox($MB_OK, "Test", "You pressed 't' which means Try Again!") Case $g_idMainGUI_AbortDummy MsgBox($MB_OK, "Test", "You pressed 'a' which means Abort!") EndSwitch WEndTD