
sirjaymz
Members-
Posts
13 -
Joined
-
Last visited
sirjaymz's Achievements

Seeker (1/7)
1
Reputation
-
souldjer777 reacted to a post in a topic: Question about _FileWriteFromArray
-
Here is a snippet of code I am trying to use in a form. I call this function from a SetOnevent for my combobox. CODE Func ComboRobotCmdSetChange() Local $search Local $done = 0 Local $a_RobotCmdSetFile Dim $a_RobotCmdSetArray[1] ; Shows the filenames of all Robotic control files in the current directory $search = FileFindFirstFile("Control -*.au3") ; Check if the search was successful If $search = -1 Then MsgBox(0, "Error", "No Robot Control Files found.") Else While $done = 0 $a_RobotCmdSetFile = FileFindNextFile($search) If @error Then $done = 1 Else _ArrayAdd( $a_RobotCmdSetArray, $a_RobotCmdSetFile) EndIf WEnd GUICtrlSetData ($ComboRobot1CmdSet, $a_RobotCmdSetArray[0]&'|'&$a_RobotCmdSetArray[1], "None") ; Close the search handle FileClose($search) EndIf EndFunc ; ComboRobotCmdSetChange I do have a file name Control - Composer.au3, however, it never get's displayed in the combobox. what am i missing, or am i just not getting it?
-
Listview Items back to Array location.
sirjaymz replied to sirjaymz's topic in AutoIt GUI Help and Support
I want to say thank you so much, and apologize for not including my code. I would have to say, you interpreted the exact idea of what I am needing to do to the T! You are very good at understanding what I was trying to convey, and again, I apologize for not including any code. Yes this is what I am trying to do. I will have to change it to do it "OnEvent" mode, but I think I can handle that. -
I have created a listview from an array, now would like to minipulate the array information by using the information displayed in the list view. for example, I have an array that is 100x20. each row has 20 items, and there are 100 rows. I see all of the items in the listview windows, as read in from the array. Now I would like to move rows of the information up or down in reference to the order it is displayed, and as I do this, I would like to see the array get updated with the movement of items also. I use the _GUICtrlListView_GetSelectedIndices, but I am not sure how I would translate that back to the actual location in the array, as in what is the $array[?][?] parameters that I am trying to manipulate? The other question I have is, when I use the _GUICtrlListView_AddArray, it obviously adds the entire array, but some of the items have not been populated as of yet, so I get blank rows in the listview. Is there some method that I can use to "clean up" the blanks in the listview? thanks for you assistance, as you can tell, still new to AutoIT
-
Perfect! thank you.
-
Highlighted item in a listview Only first Column in Listview is selected when wanting to select the entire row. Is there a way to select the entire row, as oppose to only having the first a column selectable. It seems as if I use CODE _GUICtrlListView_AddColumn ($QueueList, $ArrayGrid_Queue[0][$c], 75) ; Width is set to 75 for all columns as of now. I am not able to select the entire row of a listview, but if I use CODE GUICtrlCreateListViewItem ($ArrayGrid_Queue[$r][0]&'|'&$ArrayGrid_Queue[$r][1]&'|'&$ArrayGrid_Queue[$r][2]&'|'&$ArrayGrid_Queue[$r][3]&'|'&$ArrayGrid_Queue[$r][4]&'|'&$ArrayGrid_Queue[$r][5]&'|'&$ArrayGrid_Queue[$r][6]&'|'&$ArrayGrid_Queue[$r][7]&'|'&$ArrayGrid_Queue[$r][8]&'|'&$ArrayGrid_Queue[$r][9]&'|'&$ArrayGrid_Queue[$r][10]&'|'&$ArrayGrid_Queue[$r][11]&'|'&$ArrayGrid_Queue[$r][12]&'|'&$ArrayGrid_Queue[$r][13]&'|'&$ArrayGrid_Queue[$r][14]&'|'&$ArrayGrid_Queue[$r][15]&'|'&$ArrayGrid_Queue[$r][16]&'|'&$ArrayGrid_Queue[$r][17]&'|'&$ArrayGrid_Queue[$r][18]&'|'&$ArrayGrid_Queue[$r][19], $QueueList) Then I can select the entire row. Unfortunately, when I do it this way, I can't use any of the functions of the UDF for <GuiListView.au3> Is there something that I can do with the udf to make it select the whole 'row'. since i use _GUICtrlListView_AddColumn in a loop. CODE Func QueueList_InitHeaders() For $c = 0 to UBound($ArrayGrid_Queue,2) - 1 If $ArrayGrid_Queue[0][$c] == "" Then ContinueLoop Else _GUICtrlListView_AddColumn ($QueueList, $ArrayGrid_Queue[0][$c], 75) ; Width is set to 75 for all columns as of now. EndIf Next EndFunc _GUICtrlListView_AddArray ($QueueList, $ArrayGrid_Queue) _GUICtrlListView_DeleteItem ($QueueList, 0) ; This removes the "headers" from being in the Queue, since the headers are QueueList 0 row.
-
Xskins has round corners. http://www.autoitscript.com/forum/index.php?showtopic=32494
-
Question about _FileWriteFromArray
sirjaymz replied to MpDredd's topic in AutoIt General Help and Support
Thanks for responding. I apologize, I thought I could respond to any post. Is the etiquette to start a new thread? This is what I came up with based on the help files. Does this look like it should work? ;My array Global $ArrayGrid_Queue [100] [20] $ArrayGrid_Queue[0][0] = "Queue Number";Column0 = Queue Number $ArrayGrid_Queue[0][1] = "Job Number"; JobNumber $ArrayGrid_Queue[0][2] = "Job Number Current Status"; JobNumber current Status. $ArrayGrid_Queue[0][3] = "Number Of Copies"; Number of Copies to Burn. $ArrayGrid_Queue[0][4] = "ISO/Image File Name"; "ISO/Image File Name" $ArrayGrid_Queue[0][5] = "Cover File Name"; "Cover File Name" $ArrayGrid_Queue[0][6] = "Job Priority"; "JobPriority" $ArrayGrid_Queue[0][7] = "Time Submitted"; Time Stamp Job Submitted by User to Queue $ArrayGrid_Queue[0][8] = "Time Started"; Time Stamp by Srv of when Job was Started. $ArrayGrid_Queue[0][9] = "Time Completed"; Time Stamp by Srv of when Job was Completed. $ArrayGrid_Queue[0][10] = "Write Speed"; 1x,2x,2,4x,4x, etc. $ArrayGrid_Queue[0][11] = "Verify"; Yes or NO $ArrayGrid_Queue[0][12] = "Delete Image"; Yes or NO $ArrayGrid_Queue[0][13] = "Delete Cover"; Yes or NO $ArrayGrid_Queue[0][14] = "Job Lock"; Meaning, client can not make changes, server has control of this job only. $ArrayGrid_Queue[0][15] = "" $ArrayGrid_Queue[0][16] = "" $ArrayGrid_Queue[0][17] = "" $ArrayGrid_Queue[0][18] = "" $ArrayGrid_Queue[0][19] = "" $Path2QueueFileUD = "C:\" Local $File = FileSaveDialog ( "Save Queue", $Path2QueueFileUD, "Queue File (*.ini)", 2+16, "Queue.ini" ) If Not @error Then For $r = 0 to UBound($ArrayGrid_Queue,1) - 1 For $c = 0 to UBound($ArrayGrid_Queue,2) - 1 IniWrite ( $File, $r, $ArrayGrid_Queue[0][$c], $ArrayGrid_Queue[$r][$c] Next Next Local $szDrive, $szDir, $szFName, $szExt _PathSplit ($File, $szDrive, $szDir, $szFName, $szExt) $Path2QueueFileUD = $szDrive & $szDir EndIf -
Question about _FileWriteFromArray
sirjaymz replied to MpDredd's topic in AutoIt General Help and Support
1 Dimensional Arrays only!? Smoke N, thanks for info, but that's not what I wanted to hear... and Array inherently, by design, is multi-dimensional. Any recommendations of capturing a $a_array [200] [20] to a file? -
there might be a way to search in the string for the ascii character set., change the entire string to ascii codes, then search, then change it back to the string values of what the ascii codes equal. This way you could search for the hex,dec value for it. Just a thought.
-
I am also interested in this. I am writing 2 scripts. The first, will be used to "queue" up the ISO images to be burned, the second script will take those iso images that need to be burned, control a Primera composer to move the robots/disc's into place, and use image burn to burn the iso to disc. I was thinking of using a INI file with the array that i create in script 1 and save that, then have script 2 go out and read the array info from the INI file to get it's task. of course i would have to install some locking mechanism so that both scripts can't access the ini file at the same time, but... if there is a way to copy the array into memory, and lock the memory, and read from the appropriate location, that then that will save on allot of harddisk churn, and be much faster. Please enlighten us noobs on the easier method if you would. thanks.
-
_ArrayInsert with Multidimensional array
sirjaymz replied to sirjaymz's topic in AutoIt General Help and Support
I came to the conclusion that after reading this post http://www.autoitscript.com/forum/lofivers....php?t9520.html that I do not actually have to use the _ArrayInsert method to input my information into the array itself. _ArrayInsert is very misleading based on the help file. Since I have already created the multi-dimensional array with this command, Global $ArrayGrid_Queue [100] [9] I now have all 900 locations to be able to put values into. My modified code looks like this. $ArrayGrid_Queue[$ArrayGrid_QueueRowCount][0] = $JobNumber ; JobNumber $ArrayGrid_Queue[$ArrayGrid_QueueRowCount][1] = $Array_JobNumberCurrentStatus[1]) ; JobNumber current Status. $ArrayGrid_Queue[$ArrayGrid_QueueRowCount][2], $InputNumberOfCopies) ; Number of Copies to Burn. $ArrayGrid_Queue[$ArrayGrid_QueueRowCount][3], $File2Add2QueueImage) ; "ISO/Image File Name" $ArrayGrid_Queue[$ArrayGrid_QueueRowCount][4], $File2Add2QueueCover) ; "Cover File Name" $ArrayGrid_Queue[$ArrayGrid_QueueRowCount][5], $InputRobotNumber) ; "RobotNumber" $ArrayGrid_Queue[$ArrayGrid_QueueRowCount][6], 1 ) ; "RecorderBankNumber" $ArrayGrid_Queue[$ArrayGrid_QueueRowCount][7], $InputRecorderNumber) ; "RecorderNumber" $ArrayGrid_Queue[$ArrayGrid_QueueRowCount][8], $InputJobPriority) ; "JobPriority" ;Increment the row counter so the next job added does not overwrite this job. $ArrayGrid_QueueRowCount = $ArrayGrid_QueueRowCount + 1; this way, i don't overwrite info. thanks for responding though. -
I am trying to add variable values into a multidimensional array. I am a real big noob to AutoIT, but have other scripting languages experience. I keep getting a syntax error on compile. I tried several things to no avail. Help <part of my code. all variables are set already. ) snippet of code. Global $ArrayGrid_Queue [100] [9] Global $ArrayGrid_QueueRowCount = 1 ; This is where the jobs should now get inserted into the array. <...> _ArrayInsert ($ArrayGrid_Queue, [$ArrayGrid_QueueRowCount] [0], $JobNumber) ; JobNumber _ArrayInsert ($ArrayGrid_Queue, [$ArrayGrid_QueueRowCount] [1], $Array_JobNumberCurrentStatus[1]) ; JobNumber current Status. _ArrayInsert ($ArrayGrid_Queue, [$ArrayGrid_QueueRowCount] [2], $InputNumberOfCopies) ; Number of Copies to Burn. _ArrayInsert ($ArrayGrid_Queue, [$ArrayGrid_QueueRowCount] [3], $File2Add2QueueImage) ; "ISO/Image File Name" _ArrayInsert ($ArrayGrid_Queue, [$ArrayGrid_QueueRowCount] [4], $File2Add2QueueCover) ; "Cover File Name" _ArrayInsert ($ArrayGrid_Queue, [$ArrayGrid_QueueRowCount] [5], $InputRobotNumber) ; "RobotNumber" _ArrayInsert ($ArrayGrid_Queue, [$ArrayGrid_QueueRowCount] [6], 1 ) ; "RecorderBankNumber" _ArrayInsert ($ArrayGrid_Queue, [$ArrayGrid_QueueRowCount] [7], $InputRecorderNumber) ; "RecorderNumber" _ArrayInsert ($ArrayGrid_Queue, [$ArrayGrid_QueueRowCount] [8], $InputJobPriority) ; "JobPriority" ;Increment the row counter so the next job added does not overwrite this job. $ArrayGrid_QueueRowCount = $ArrayGrid_QueueRowCount + 1 $JobNumber = $JobNumber + 1