Jump to content

Sunsawe

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by Sunsawe

  1. I tried with the keyboard and it is working. But if someone has a solution without the keyboard, i am interested. I am not sure that i will always have keyboard access. thanks
  2. Hi, My script is made to interact with an external application that i didn't make. This application has a GUI which is presenting a listbox in which every line has a checkbox on the left. I succeeded to reach the lines, to select them but i can't figure out how to check the checkboxes. With the AutoIt Window Info, i can just have information about the listbox. To reach the lines i am using Auto3Lib. Does someone know how to do it? Thank you
  3. Hi I found my way with that. I have another problem but i'll make another topic about it. Thanks
  4. OK I found the Auto3Lib thing and it sounds really great. I just have a problem.... I will explain again. I want to create a script that manages a software which has a GUI. I didn't make this software myself. In the Auto3Lib documentation, they are creating their own ListBox and so , they already have the handler they are using to interact with it. So in my case, i would like to know how to get an handler from an already existing listbox. The AutoIt Window Info is giving me the id, class, instance... well everything about the listbox. How to use that to retrieve/create an handler that i can use? Thanks
  5. Well... Maybe i was not clear... (i really have difficulties here lol). The thing is that... I don't have any code! In fact, if i can't see with what (id, name of line, text of line, whatever) i am going to interact, which code can i write about it? I'm taking a look to the A3LListbox.au3 thing.
  6. Thanks, you both totally cleared the point. i have my answer (no, it is not possible) and also how to achieve that goal in a different way. Feel nice that i finally succeeded to explain what i was looking for.
  7. Hi, I am trying to interact with a gui in my autoit script. This gui presents a listbox. I can see with the AutoIt Window Info that the listbox is accessible. But i can't find the way to select a line of it? Check the checkbox of the line? Nothing appears except information about the listbox (id, name etc...). Can someone tell me how to do that? Thanks
  8. can't produce any code about it because it is not link to what is in. I'll try to explain even if you gave me the solution through your previous message. Let's consider an array 3x3x3 which means that it has 27 areas where one can put data in.... one could declare it like that $myArray[3][3][3]. To access a data, one could use $var = $myArray[1][2][0]. to set a data, one could use $myArray[1][2][0] = $var. What i was trying to do was to store in a variable a subpart of that array. It could be for exemple the subpart at the indice 1 of the first dimension. So: $subArray = $myArray[1] that would mean that $subArray would then be a 3x3 array. So it would have 9 areas to put data. It would also mean that $subArray[0][0] would be equal to $myArray[1][0][0] and $subArray[0][1] equal to $myArray[1][0][1] and so on. Following the previous example, it gives: $avParent[0] == 4 and $avParent[1] == "Four" because in the original array $avTemp defined in your post like this Dim $avTemp[5][2] = [[0, "Zero"], [1, "One"], [2, "Two"], [3, "Three"], [4, "Four"]] so $avTemp[4][0] is equal to 4 and $avTemp[4][1] is equal to "Four" and i did before something like $avParent = $avTemp[4] Is that any better?
  9. Sorry Just did a mistake. Wanted to say expecting to find $avParent[0] == 4 and $avParent[1] == "Four".
  10. hi thanks for your reply, it might help. The thing is that i want to do it the other way around. you are doing: $avParent[1] = $avTemp and me, i want to do something like: $avParent = $avTemp[4] expecting to find $avParent[0] == 4 and $avParent[0] == "Four". And better, without knowing the size of $avTemp[4] before. ($avTemp[4] is considered as an array store at position 4 of $avTemp). Any idea?
  11. Hi, I have a function that takes an array as argument. The array that i want to pass is contained in another. Considering this: Dim $Primary_array[3][3][3] I want to do something like: Dim $SubArray = $Primary_array[1] meaning that $SubArray will then be a 3x3 array. Is it possible? Thanks
  12. Hi, A lot of people is using the wmi service. Usually it looks like that: Func _ServGetDetails($iName, $Computer = ".") Local $Rtn = '' $Service = ObjGet("winmgmts:\\" & $Computer & "\root\cimv2") $sItems = $Service.ExecQuery("Select * from Win32_Service") For $objService in $sItems If $objService.Name == $iName Then $Rtn &= $objService.SystemName & '|' & $objService.Name & '|' & $objService.ServiceType & '|' & $objService.State & '|' $Rtn &= $objService.ExitCode & '|' & $objService.ProcessID & '|' & $objService.AcceptPause & '|' & $objService.AcceptStop & '|' $Rtn &= $objService.Caption & '|' & $objService.Description & '|' & $objService.DesktopInteract & '|' & $objService.DisplayName & '|' $Rtn &= $objService.ErrorControl & '|' & $objService.PathName & '|' &$objService.Started & '|' & $objService.StartMode & '|' $Rtn &= $objService.StartName Return StringSplit($Rtn, '|') EndIf Next Return SetError(-1) EndFunc I would like to know if there is a way to "explore" the $objService without knowing its attributs. Something like: foreach $attribut in $objService $attribut.getName() $attribut.getValue() Thanks
  13. Hi, I'm a very new user of AutoIt and i would like to know if i can use it to create a task in the windows tasks scheduler. Of course i would also like to know what functions i'm supposed to use for that. Thank you all
×
×
  • Create New...