-
Posts
1,022 -
Joined
-
Last visited
Fossil Rock's Achievements
Universalist (7/7)
2
Reputation
-
Writing to the Beginning of a file.
Fossil Rock replied to Fossil Rock's topic in AutoIt General Help and Support
That works @AutoBert, thanks. My initial test produced a speed of 80-90 seconds for 10,000 iterations (roughly 160KB). The speed issue is with having to write the file each time. For each iteration that time gets longer and longer. The $FO_APPEND method in AutoIt can do 10,000,000 iterations in 60 seconds (roughly 152MB). Now if there were just a $FO_PREPEND that would be awesome. -
Writing to the Beginning of a file.
Fossil Rock replied to Fossil Rock's topic in AutoIt General Help and Support
It's just an experiment I'm testing, but if I can get it streamlined to be as fast as possible then it may have some useful purposes down the road. -
Writing to the Beginning of a file.
Fossil Rock replied to Fossil Rock's topic in AutoIt General Help and Support
Thanks water. Considering this may be done 100's or even thousands of times (on the same file), is there no more direct method to just 'inject' the code to the beginning? If I'm working with a file that could potentially be in the 100's of MB's (even GB's) then this method would take a very, very long time. -
I'm not sure if this is possible but I want to write a short piece of code to the beginning of a file as opposed to appending it to the end (same concept opposite end). It's safe to assume that the target file can be any size so file size may have an impact on performance. Any suggestions ?
-
behdadsoft reacted to a post in a topic:
DOS CMD window stays open. How to close?
-
_GUICtrlListView_AddArray / Listview issue
Fossil Rock replied to Fossil Rock's topic in AutoIt General Help and Support
Does the data show up in the ListView for you? Must be something wrong with my computer.- 10 replies
-
- _GUICtrlListView_AddArray
- Array variable
-
(and 2 more)
Tagged with:
-
_GUICtrlListView_AddArray / Listview issue
Fossil Rock replied to Fossil Rock's topic in AutoIt General Help and Support
First of all, thanks for the replies. 3 days later and this is as close as I've gotten. The Scrollbar shows up like there's data in the control, but no data. Does the control need to be refreshed somehow to show the data? #include <String.au3> #include <Array.au3> #include <GUIConstantsEx.au3> #include <ListViewConstants.au3> #include <WindowsConstants.au3> #include <GuiListView.au3> $Form1 = GUICreate("Form1", 615, 438, -1, -1) $ListView1 = GUICtrlCreateListView("", 24, 24, 250, 390) GUISetState(@SW_SHOW) Local $aFileName = @ScriptDir & "\Script.lua" ; save the sample script from the OP as Script.lua in the script dir Local $aFileLines = FileRead($aFileName) Local $aFunctions = _StringBetween($aFileLines, "Function ", "(") Local $aArray[UBound($aFunctions)][1] For $i = 0 To UBound($aFunctions) -1 $aArray[$i][0] = $aFunctions[$i] Next Sleep(1000) _GUICtrlListView_AddArray(GUICtrlGetHandle($ListView1), $aArray) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd- 10 replies
-
- _GUICtrlListView_AddArray
- Array variable
-
(and 2 more)
Tagged with:
-
Upon creating my first test project I received this error message. I haven't delved into the source yet, but thought you may have an idea. I'm using Windows 7 Ultimate (x86) if that makes a difference. Update: As I was coming back to let you know that upon restarting AutoIt Studio, it started the Initial Configuration again, it didn't save any of the original info. But... just as I was about to start typing this happened... It seemed to be in a loop that required me to use the Task Manager to get out of (kill).
- 995 replies
-
- autoit ide
- autoit studio
-
(and 3 more)
Tagged with:
-
I apologize, I did not understand you to begin with and that's my fault. It's all good now. Thank you. Thank you.
-
Here's the problem... command.37.$(au3)="$(autoit3dir)\autoit3.exe" "$(SciteDefaultHome)\IncludesHelper\IncludesHelper.au3" "$(FilePath) $(autoit3dir) is not returning the directory path information. Where is this defined? When I substitute '$(autoit3dir)' with the actual path, it works.
-
Added "# 37 Includes Helper by asdf8" (header) in au3.properties 'Includes Helper' section for it to display in SciTE Config Tool Section. # 37 Includes Helper by asdf8 command.37.*.au3="$(autoit3dir)autoit3.exe" "$(SciteDefaultHome)IncludesHelperIncludesHelper.au3" "$(FilePath)" # for IncludesHelper.a3x : # command.37.*.au3="$(autoit3dir)autoit3.exe" "$(SciteDefaultHome)IncludesHelperIncludesHelper.a3x" "$(FilePath)" # for IncludesHelper.exe : # command.37.*.au3="$(SciteDefaultHome)IncludesHelperIncludesHelper.exe" "$(FilePath)" command.name.37.*.au3=Includes Helper command.save.before.37.*.au3=1 command.shortcut.37.*.au3=Ctrl+Enter Still haven't resolved the error.
-
Version 1.4 from OP. I click the tool from the Tools menu and in immediately returns the error. The message appears for every .au3 file I try. Also, I noticed that the option to enable/disable it in the SciTE config is not there. Should it be?
-
I get an eror message in the console. The filename, directory name, or volume label syntax is incorrect.
-
I'm having a little difficulty getting beyond this error with the script below: C:\.....\Include\GuiListView.au3 (543) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: DllStructSetData($tBuffer, "Text", $aItems[$iI][0]) DllStructSetData($tBuffer, "Text", ^ ERROR Can someone point me in the right direction? Sample Lua script in spoiler. #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <WindowsConstants.au3> #include <String.au3> #include <Array.au3> #include <File.au3> #include <GuiListView.au3> ;Opt('GuiOnEventMode', 1) ; prevents application from exiting ?? $Form1_1 = GUICreate("Script Parser", 1001, 801, -1, -1) $Button1 = GUICtrlCreateButton("Open File", 16, 24, 91, 25) $Button2 = GUICtrlCreateButton("Parse File", 125, 24, 91, 25) $Button3 = GUICtrlCreateButton("{undefined}", 234, 24, 91, 25) $Button4 = GUICtrlCreateButton("{undefined}", 343, 24, 91, 25) $Button5 = GUICtrlCreateButton("{undefined}", 452, 24, 91, 25) $Button6 = GUICtrlCreateButton("{undefined}", 561, 24, 91, 25) $Button7 = GUICtrlCreateButton("{undefined}", 670, 24, 91, 25) $Button8 = GUICtrlCreateButton("Save Output", 779, 24, 91, 25) $Button9 = GUICtrlCreateButton("Exit", 888, 24, 91, 25) $List1 = GUICtrlCreateList("", 8, 128, 177, 564, -1, $WS_EX_STATICEDGE) GUICtrlSetData(-1, "") GUICtrlSetFont(-1, 10, 400, 0, "Courier New") $Edit1 = GUICtrlCreateEdit("", 200, 128, 793, 633, -1, $WS_EX_STATICEDGE) GUICtrlSetData(-1, "") GUICtrlSetFont(-1, 10, 400, 0, "Courier New") $Label1 = GUICtrlCreateLabel("{empty}", 10, 700, 200, 27) GUICtrlSetFont(-1, 14, 400, 0, "Calibri") GUISetState(@SW_SHOW) GetFunctions() ; Assign to button 2 While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func OpenFile() EndFunc Func GetFunctions() Local $aFileName = FileOpenDialog("Select a file", @ScriptDir & "\", "(*.lua)", 0) Local $aArray = FileRead($aFileName) Local $aFunctions = _StringBetween($aArray, "Function ", "(") _ArrayDisplay($aFunctions) _GUICtrlListView_AddArray($List1,$aFunctions) ; ERROR EndFunc Func _ListViewEvent() For $i = 0 To $List1[0] If @GUI_CtrlId = $List1[$i] Then ExitLoop Next GUICtrlSetData($Label1, GUICtrlRead($List1[$i])) EndFunc Func _Exit() Exit EndFunc
- 10 replies
-
- _GUICtrlListView_AddArray
- Array variable
-
(and 2 more)
Tagged with:
-
I have an app (game) that pauses when it loses focus. Is there a way to prevent this? Also, it automatically regains focus when any other app loses focus. Is there a way to prevent it from ever getting focus? I want to monitor the app, not interact with it. My goal is to embed the app into a script strictly for monitoring.