Search the Community
Showing results for tags 'Count'.
-
So im creating a bot that logs in on a website. The website got a dropdown menu, and I have to choose the right one to login (Student) #include <IE.au3> #inculude <Inet.au3> $oIE = _IECreate("<snip>") $Name = _IEGetObjByName($oIE, "ssusername") $Pass = _IEGetObjByName($oIE, "sspassword") $dropdown = _IEGetObjByName($oIE, "usertype") _IEPropertySet($Name, 'innerText', 'censored') _IEPropertySet($Pass, 'innerText', 'censored') _IEPropertySet($dropdown, 'innerText', 'Student') <------ How do I make the dropdown list select "Student"?
-
I'm trying to create an (I believe) _ArraySearch that will look at a 2D array Local $avArray[6][2] = [ _ ["07/01/16", "SubString0"], _ ["06/15/16", "SubString1"], _ ["07/01/16", "SubString2"], _ ["06/24/16", "SubString3"], _ ["07/01/16, "SubString4"], _ ["06/30/16", "SubString5"]] and return the number of times that a specific date is shown. i.e. 07/01/16 = 3 06/30/16 = 1 etc. I'm thinking: _ArraySearch($avArray.$Value=_Now(),Column0) But I have no idea if I'm even close. My goal is to create a updateable field that will tell me the number of "calls" I've logged throughout the day. Any assistance is appreciated. Brendon
-
Hello everyone, I just have a beginner question: is there a way to count duplicates in an array? If you don't see what I mean, here is an example of what I mean: $arr[5] = ['a', 'a', 'b', 'b', 'c'] ; the array countDuplicates($arr); Representing the data in a bidimensionnal array, this would return: #cs ['a'][2] ['b'][2] ['c'][1] Of course this is a bit messy, but that's just for you to get the idea #ce I'm trying to achieve this to check whether yes or no an array has more or same amount of occurrences of a character than another array. Am I doing this the right way? Does such a function exist? Thanks for everything
- 7 replies
-
- array
- duplicates
-
(and 2 more)
Tagged with:
-
Hello, First of all, please don't mind my english, i am from Germany. And i have a problem in AutoIt: I want to make a GUI with a button, and when you click the button it should say: "You clicked ??? times" So, if i click the button, it should count +1. I made so many tries, but i cannot get it out. Need your help guys. Thanks in Advance
-
Hi, is there a way to count how many times a specific string occurs within a listview? I would prefer it if it could be done by searching only a specific column, but if the latter is not feasible, it's still OK.
-
Hi guys, i have this script: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 248, 180) $Edit = GUICtrlCreateEdit("", 8, 8, 233, 121) $Button = GUICtrlCreateButton("Verify", 8, 136, 233, 33) GUISetState(@SW_SHOW) GUICtrlSetData($Edit, "Number of lines (0)" & @CRLF & "Test1" & @CRLF & "Test2") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button $FinalList = StringSplit(GUICtrlRead($Edit), @CR) For $i = 2 To $FinalList[0] MsgBox(64, "Verify", $FinalList[$i]) Next EndSwitch WEnd I can't find a way for count the number of lines in a EditBox. I have see: _FileCountLines() FileReadLine But i can't apply directy to a EditBox without write them on a file and then EditBox read it. How to solve this? Thanks
-
Hi, i wanted to make inputbox password, need to get it's chars length in it, because the "password char" is too secure and i need the user to know if he is writing or not!! here's my effort Global $length, $Pw $Pw = InputBox("Security", "Type password to Encrypt/Decrypt file." & @CRLF & "Notice: password case sensitive" & @CRLF & "Pw length: " & $length, "", "ٌ", 220, 150) $length = StringLen($Pw) MsgBox(0, "", $length) i tried to put $length above $Pw but didn't work too. thanks