-
Posts
178 -
Joined
-
Last visited
Everything posted by dirty
-
How to take input without being highlighted ?
dirty replied to dirty's topic in AutoIt GUI Help and Support
Hmm, i didnt have any problems finding this. Its just that i cant figure out how to make it work with my GUI -
I have an input created that reads barcode and generates list in listview. Is it possible for the input to read what ever scanner sends without having it to be highlighted ? In other words a key stroke recorder or something like that
-
i dont think it working right. Has there been an update ? When i highlight input box and use this keyboard to type in text into highlighted input box, it only enters one character instead of all that i clicked on. Because when input is selected, whole text becomes highlighted and deletes previous character on Send
-
string search takes too loong (bible search)=SOLVED
dirty replied to dirty's topic in AutoIt General Help and Support
What do you mean by ad & adware-free download link ? Mediafire files dont come with adware. Current download links were only a test that would download shutdowner i made a while ago. As for ads them selves, i didnt even know they exist. I use firefox with adblockplus extension, so i am clueless what websites have ads #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <File.au3> #include <GuiListView.au3> #include <ListviewConstants.au3> #Include <GuiStatusBar.au3> #include <StaticConstants.au3> #include <GUICtrlHyperLink.au3> Opt("TrayOnEventMode",1) Opt("TrayMenuMode",1+2) TrayCreateItem("About") TrayItemSetOnEvent(-1,"AboutFunction") ;function name TrayCreateItem('') TrayCreateItem('Exit') TrayItemSetOnEvent(-1,"ExitFunction") ;function name TraySetState() DirCreate ("Bibles") #region ;Create $MainGUI = GUICreate("Bible Search", 700, 455,-1,-1,$WS_MAXIMIZEBOX+$WS_SIZEBOX) $StatusBar = _GUICtrlStatusBar_Create ($MainGUI,'','',$SBARS_SIZEGRIP) GUIRegisterMsg($WM_SIZE, "MY_WM_SIZE") GUICtrlCreateGroup("Search ?", 5, 5, 590, 45) GUICtrlSetResizing (-1,1) $Input = GUICtrlCreateInput("", 10, 20, 200, 20) GUICtrlSetResizing (-1,1) $Bible = GUICtrlCreateCombo ("",210,20,100) GUICtrlSetResizing (-1,1) If FileExists ("BiblesEnglish.txt") = 1 And FileExists ("BiblesRussian.txt") = 1 Then GUICtrlSetData (-1,"English|Russian|","Russian") ElseIf FileExists ("BiblesEnglish.txt") = 1 And FileExists ("BiblesRussian.txt") = 0 Then GUICtrlSetData (-1,"English|","English") ElseIf FileExists ("BiblesEnglish.txt") = 0 And FileExists ("BiblesRussian.txt") = 1 Then GUICtrlSetData (-1,"Russian|","Russian") ElseIf FileExists ("BiblesEnglish.txt") = 0 And FileExists ("BiblesRussian.txt") = 0 Then GUICtrlSetData (-1,"No Bibles Found","No Bibles Found") EndIf GUICtrlCreateGroup("Results.", 5, 50, 390, 325) $ListView = GUICtrlCreateListView("Versus|Chapter|Book|Testament|", 10, 65, 380, 300,'',$LVS_EX_GRIDLINES) $SearchButton = GUICtrlCreateButton("Go !", 520, 15, 70, 30) GUICtrlCreateGroup ("Preview",400,50,295,360) $Preview = GUICtrlCreateLabel ("",405,65,280,340) ResizeCollumns() GUICtrlSetResizing (-1,1) $CopyContext = GUICtrlCreateContextMenu($ListView) $Copy = GUICtrlCreateMenuItem("Copy This Text", $CopyContext) $ShowButton = GUICtrlCreateButton("Show Selected.", 5, 380, 390, 30) GUICtrlSetResizing (-1,1) #endregion GUISetState(@SW_SHOW, $MainGUI) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then Exit EndIf If $msg = $SearchButton Then $source = FileRead("Bibles" & GUICtrlRead ($Bible) & ".txt") ; read the whole text at once If GUICtrlRead ($Bible) = "No Bibles Found" Then $AskToGoToDownloadPage = MsgBox(32,"Bible Error","No bibles found. Would you like to download one right now ?",'',$MainGUI) If $AskToGoToDownloadPage = 1 Then MsgBox (48,"Information","Downloaded file will come in ZIP format." & @CRLF & "Extract its content into Bibles folder and restart this application." & @CRLF & "Press OK when ready to go to download Page.",'',$MainGUI) ShellExecute ("http://www.mediafire.com/?ehv2lrbe896l4wj") EndIf EndIf $Found = 0 GUICtrlSetData ($SearchButton,"Stop !") $SearchInput = GUICtrlRead($Input) _GUICtrlListView_DeleteAllItems(GUICtrlGetHandle($ListView)) _GUICtrlStatusBar_SetText ($StatusBar,"Searching") $SearchFor = StringRegExpReplace($SearchInput, "([.*+()?^$|{}[]])", "$1") $res = StringRegExp($source, "(?im)^.*" & $SearchFor & ".*$", 3) If Not @error Then For $line In $res $Loopmsg = GUIGetMsg() If $Loopmsg = $SearchButton Then GUICtrlSetData ($SearchButton,"Go !") ExitLoop EndIf $NewLine = StringTrimLeft ($line,StringInStr($line,"*")) $Chapter = StringLeft ($line,StringInStr($line,",","",3)) $TrimmedChapter = StringTrimLeft ($Chapter,StringInStr ($Chapter,"=",'',3)) $FixedChapter = StringTrimRight ($TrimmedChapter,1) $Book = StringLeft ($line,StringInStr($line,",","",2)) $TrimmedBook = StringTrimLeft ($Book,StringInStr ($Book,"=",'',2)) $FixedBook = StringTrimRight ($TrimmedBook,1) $Testament = StringLeft ($line,StringInStr($line,",","",1)) $TrimmedTestament = StringTrimLeft ($Testament,StringInStr ($Testament,"=")) $FixedTestament = StringTrimRight ($TrimmedTestament,1) GUICtrlCreateListViewItem($NewLine & "|" & $FixedChapter & "|" & $FixedBook & "|" & $FixedTestament & "|", $ListView) Assign ("Found",$Found+1) Next ResizeCollumns() EndIf GUICtrlSetData ($SearchButton,"Go !") _GUICtrlStatusBar_SetText ($StatusBar,"Found " & $Found & " instances") EndIf If $msg = $ShowButton Then Local $TextData,$Text,$TBC,$T,$TCorrected,$B,$BTrimmed,$BCorrected,$C,$CCorrected $TextData = GUICtrlRead(GUICtrlRead($listview)) $Text = StringLeft ($TextData,StringInStr($TextData,"|","",1)-1) $TBC = StringTrimLeft ($TextData,StringInStr($TextData,"|","",1)) $T = StringTrimLeft ($TBC,StringInStr($TBC,"|",-1,2)) $TCorrected = StringTrimRight ($T,1) $B = StringTrimLeft ($TBC,StringInStr($TBC,"|",-1,1)) $BTrimmed = StringTrimLeft ($B,StringInStr ($B,"|",-1,1,-1)) $BCorrected = StringLeft ($BTrimmed,StringInStr ($B,"|")-1) $C = StringTrimLeft ($TBC,StringInStr($TBC,"|",-1,4)) $CCorrected = StringLeft ($C,StringInStr ($C,"|")-1) MsgBox(64, '', "Testament=" & $TCorrected & @CRLF & "Book=" & $BCorrected & @CRLF & "Chapter=" & $CCorrected & @CRLF & $Text ,'',$MainGUI) EndIf $GetClickedItem = GUICtrlRead($listview) If $msg = $GetClickedItem Then If $GetClickedItem = 0 Then ElseIf $GetClickedItem = "" Then ElseIf $GetClickedItem > "" Then Local $TextData,$Text,$TBC,$T,$TCorrected,$B,$BTrimmed,$BCorrected,$C,$CCorrected $TextData = GUICtrlRead(GUICtrlRead($listview)) $Text = StringLeft ($TextData,StringInStr($TextData,"|","",1)-1) $TBC = StringTrimLeft ($TextData,StringInStr($TextData,"|","",1)) $T = StringTrimLeft ($TBC,StringInStr($TBC,"|",-1,2)) $TCorrected = StringTrimRight ($T,1) $B = StringTrimLeft ($TBC,StringInStr($TBC,"|",-1,1)) $BTrimmed = StringTrimLeft ($B,StringInStr ($B,"|",-1,1,-1)) $BCorrected = StringLeft ($BTrimmed,StringInStr ($B,"|")-1) $C = StringTrimLeft ($TBC,StringInStr($TBC,"|",-1,4)) $CCorrected = StringLeft ($C,StringInStr ($C,"|")-1) GUICtrlSetData ($Preview,"Testament=" & $TCorrected & @CRLF & "Book=" & $BCorrected & @CRLF & "Chapter=" & $CCorrected & @CRLF & $Text) EndIf EndIf If $msg = $Copy Then ClipPut (StringTrimRight(GUICtrlRead(GUICtrlRead($listview)),1)) WEnd Func MY_WM_SIZE($hWnd, $iMsg, $iwParam, $ilParam) ;this function is for resizing status bar with the window _GUICtrlStatusBar_Resize($StatusBar) Return $GUI_RUNDEFMSG EndFunc ;==>MY_WM_SIZE Func AboutFunction() GUISetState (@SW_DISABLE,$MainGUI) $AboutGUI = GUICreate ("Information",400,200,-1,-1,-1,-1,$MainGUI) GUICtrlCreateLabel ("Bible Search" & @CRLF & "Coded using AUTOIT V3",10,10,380,30,$SS_CENTER) GUICtrlCreateLabel ("Bible Search is a free application comes at no charge for anyone to use and improve their knowledge of the God's Word.",10,50,380,30,$SS_CENTER) GUICtrlCreateLabel ("Special thanks to: jchd from AUTOIT FORUM for faster search function." & @CRLF & 'Coded by Anatoliy Filippov' ,10,80,380,200,$SS_CENTER) GUICtrlCreateGroup ("Download Bible file",5,110,390,45) _GUICtrlHyperLink_Create("English Bible", 10, 130, -1, -1, 0x0000FF, 0x551A8B, -1, "http://www.mediafire.com/?ehv2lrbe896l4wj", 'Download English bible file.', $AboutGUI) _GUICtrlHyperLink_Create("Russian Bible", 170, 130, -1, -1, 0x0000FF, 0x551A8B, -1, "http://www.mediafire.com/?ehv2lrbe896l4wj", 'Download Russian bible file.', $AboutGUI) _GUICtrlHyperLink_Create("Ukranian Bible", 320, 130, 70, -1, 0x0000FF, 0x551A8B, -1, "http://www.mediafire.com/?ehv2lrbe896l4wj", 'Download Ukranian bible file.', $AboutGUI) GUISetState (@SW_SHOW,$AboutGUI) ;MsgBox(32,"Information",'Special thanks to: jchd from AUTOIT FORUM for faster search function.' & @CRLF & 'Coded by Anatoliy Filippov' & @CRLF & 'If you have any questions, email me at tonycst@hotmail.com','',$MainGUI) While 1 $msg1 = GUIGetMsg() If $msg1 = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete ($AboutGUI) GUISetState (@SW_ENABLE,$MainGUI) EndFunc Func ResizeCollumns() _GUICtrlListView_SetColumnWidth($ListView, 0, 380) _GUICtrlListView_SetColumnWidth($ListView, 1, 55) _GUICtrlListView_SetColumnWidth($ListView, 2, 40) _GUICtrlListView_SetColumnWidth($ListView, 3, 70) Endfunc Func ExitFunction() Exit EndFunc Ignore this code, i just placed it here as backup- 23 replies
-
- bible
- string search slow
-
(and 1 more)
Tagged with:
-
so i can try and see if it works. Its like you have it but you can touch it
-
i tried your page and once file is uploaded, i get Internet Explorer cannot display the webpage Can you please try ? I want to make sure not to trigger the alarm
-
yes i know that. i had thatissue couple of years ago when autoit was reletivly new. lots of antiviruses didnt like it. I just wonder if anyone can scann it, because i am at work right now and cannot scan using local antivirus, it will trigger alarm and IT will take me down like a SWAT TEAM
-
Look into the source of my file and see that there is nothing that might lead to this detection error provided by: http://virusscan.jotti.org/en This is weird none of my scripts return this even the on ei compiled earlier this morning.. File size: 361729 bytes Filetype: PE32 executable for MS Windows (GUI) Intel 80386 32-bit MD5: 051d8a0e29d7e13aa6e993310e67c700 SHA1: afa8930dccdd9d56e882cfe382bb92b7ea245b6c Packer (Avast): UPX Packer (Drweb): UPX, ASCRIPT Packer (Kaspersky): UPX 2011-12-13 Trojan.Dropper-28007 HELP !!!! Source.zip
-
string search takes too loong (bible search)=SOLVED
dirty replied to dirty's topic in AutoIt General Help and Support
i get error saying Subscript used with non-Array variable $testament = $refs[0] $testament = $refs^ ERROR I attached my latest version where books chapters and testament (did not add versus yet) displays when u click it. Its kinda ugly but it works like a charm. See if you can implement your thing into my thing, its 90% same thing. i just had to copy your If $msg = $searchbutton into mine and recreate Local variables i erased from my script and it works but gives out the error above. Bible Search.au3- 23 replies
-
- bible
- string search slow
-
(and 1 more)
Tagged with:
-
string search takes too loong (bible search)=SOLVED
dirty replied to dirty's topic in AutoIt General Help and Support
One perhaps last question: How would you make the advanced search to work with your example ? I mean for instance searching for: "hell" will also return hellicopter as well as hellicoptering and hellicapture and last but not least helliscloriousis. Is it possible to change your part of the code to search differently if * is provided ? For example *hell returns anystringbeforhell or hell* returns hellanystringafterhell. Right now it works like both, *hell* and returns anystringbeforhellanystringafterhell. So i was thinking to narrow the search result down by exact match like google does, for example "hell" will return only those lines that will have the word hell in them and ignore those with hellium and hellerious by wrapping a word into quotes. I had that feature in my other project managment app and it works like this: $GetNameFromGUI = GUICtrlRead($SearchByName) ;Name. Can be "Name" $Part1 = StringTrimLeft($GetNameFromGUI, 1) ;removes 1 quote and returns Name" $Part2 = StringTrimRight($Part1, 1) ;removes another quote from Name" and returns Name If $GetNameFromGUI = ('"' & $Part2 & '"') Then ;If $GetNameFromGUI had quotes surrounding it then ;whatever code to display it on gui or elsewhere using $GetNameFromResult Else ;whatever code to display it on gui or elsewhere using $GetNameFromResult EndIf Its funny how now that i am looking at it, i dont understand it but am sure you get the idea. In your case i dont know how to have that thing work the same way.- 23 replies
-
- bible
- string search slow
-
(and 1 more)
Tagged with:
-
string search takes too loong (bible search)=SOLVED
dirty replied to dirty's topic in AutoIt General Help and Support
Ok i got it Here is how i did it so i could understand. $SearchFor = StringRegExpReplace($SearchInput, "([.*+()?^$|{}[]])", "$1") $res = StringRegExp($source, "(?im)^.*" & $SearchFor & ".*$", 3) If Not @error Then For $line In $res $Loopmsg = GUIGetMsg() If $Loopmsg = $SearchButton Then GUICtrlSetData ($SearchButton,"Go !") ExitLoop EndIf $NewLine = StringTrimLeft ($line,StringInStr($line,"*")) $Chapter = StringLeft ($line,StringInStr($line,",","",3)) $TrimmedChapter = StringTrimLeft ($Chapter,StringInStr ($Chapter,"=",'',3)) $FixedChapter = StringTrimRight ($TrimmedChapter,1) $Book = StringLeft ($line,StringInStr($line,",","",2)) $TrimmedBook = StringTrimLeft ($Book,StringInStr ($Book,"=",'',2)) $FixedBook = StringTrimRight ($TrimmedBook,1) $Testament = StringLeft ($line,StringInStr($line,",","",1)) $TrimmedTestament = StringTrimLeft ($Testament,StringInStr ($Testament,"=")) $FixedTestament = StringTrimRight ($TrimmedTestament,1) GUICtrlCreateListViewItem($NewLine & "|" & $FixedChapter & "|" & $FixedBook & "|" & $FixedTestament & "|", $ListView) Assign ("Found",$Found+1) Next EndIf This is how each line of text looks like T=ВЕТХИЙ ЗАВЕТ,B=БЫТИЕ,C=1,V=1* В начале сотворил Бог небо и землю. So from here i simply count the instance of an = and trim it twise. I know trimming twice could be done once somehow, but hey it works like a champ ! all thanks to you- 23 replies
-
- bible
- string search slow
-
(and 1 more)
Tagged with:
-
string search takes too loong (bible search)=SOLVED
dirty replied to dirty's topic in AutoIt General Help and Support
No wonder reverse engineering is a science I will start formatting text files, but wouldnt it be easier to have whole name of a testament and book instead of abbreviated one ? This way we wont have to rename NT,MAT,3,14§ into NEW TESTAMENT,MATHEW,3,14§ or how were you gonna go about setting whole name into listview column i dont know. Let me know before i start- 23 replies
-
- bible
- string search slow
-
(and 1 more)
Tagged with:
-
string search takes too loong (bible search)=SOLVED
dirty replied to dirty's topic in AutoIt General Help and Support
Man i really appreciate you helping me out I attached English version if the file for you to look at. Maybe this will help you to help me how to get this right. English.rar Right now i have no clue why you predefine local $book, $testament = "New" and how would they work. Those are being located in the process of a search, kinda like searching for 4 things at same time. For example: 1st you search for what ever text you need. Once found, look back and see what chapter it belongs to, then what book and then the testament. I guess i could change each line in the text file from this: Versus=1* In the beginning God created the heaven and the earth. into: Book=Genesis Chapter=1 Versus=1* In the beginning God created the heaven and the earth. but it will take me forever. With help of autoit i can probably make that a matter of a day of coding and few hours of text processing (with my level of experience working with strings) This is how i replaced 1 In the beginning God created the heaven and the earth. with Versus=1* In the beginning God created the heaven and the earth. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <File.au3> #Include <GuiStatusBar.au3> $MainGUI = GUICreate("Bible Search", 400, 435) $SearchButton = GUICtrlCreateButton("Go !", 315, 20, 70, 20) GUICtrlCreateGroup("Results.", 5, 50, 390, 325) $ListView = GUICtrlCreateEdit("", 10, 65, 380, 300) GUISetState(@SW_SHOW, $MainGUI) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then Exit EndIf If $msg = $SearchButton Then For $i = 1 to 150 ;150 because psalms have 150 versus $source = FileRead("English.txt") $Replaced = StringReplace ($source, @CRLF & "CHAPTER " & $i & @CRLF,@CRLF & "@Chapter=" & $i & "`" & @CRLF) GUICtrlSetData($ListView,$Replaced) FileClose ($source) _GUICtrlStatusBar_SetText ($StatusBar,"Going "& $i) $OpenToWrite = FileOpen ("English.txt",2+128) FileWrite ($OpenToWrite,$Replaced) FileClose ($OpenToWrite) Next FileClose ("English.txt") EndIf WEnd This loops 150 times just to change 1 to Versus=1* so imagine how long its gonna take me to change it to: Book=Genesis Chapter=1 Versus=1* In the beginning God created the heaven and the earth. The good thing is, by the time its all over i will probably play guitar like a pro Unless you have a better plan ? Because i still have no clue (sorry for being dumb) how your script works and u are my only hope- 23 replies
-
- bible
- string search slow
-
(and 1 more)
Tagged with:
-
string search takes too loong (bible search)=SOLVED
dirty replied to dirty's topic in AutoIt General Help and Support
Search works fine both for english and russian. by looking at $SearchFor = StringRegExpReplace($SearchFor, "([.*+()?^$|{}[]])", "$1") $res = StringRegExp($source, "(?im)^.*" & $SearchFor & ".*$", 3) i cant figure out how to make it find "@" that represents the beginning of the line with Chapter#` $line returns matching line of text u searched for and $res returns nothing at all. So i was thinking about doing it this way. $LastFoundChapter = "" ;declare previously so it gets changed when found $SearchInput = GUICtrlRead($Input) $SearchFor = StringRegExpReplace($SearchInput, "([.*+()?^$|{}[]])", "$1") $res = StringRegExp($source, "(?im)^.*" & $SearchFor & ".*$", 3) If Not @error Then For $line In $res If $line = "@" Then Assign ("LastFoundChapter",$line) ;when chapter line is found, assign it to the variable $NewLine = StringTrimLeft ($line,StringInStr($line,"*")) ;remove Versus=#* from the line to make it clean GUICtrlCreateListViewItem($NewLine & "|" & $LastFoundChapter & "|Book|Testament|", $ListView) ;write to listview but i cant figure out how to find the @ while looking for what is in the $SearchInput- 23 replies
-
- bible
- string search slow
-
(and 1 more)
Tagged with:
-
string search takes too loong (bible search)=SOLVED
dirty replied to dirty's topic in AutoIt General Help and Support
Using your example: How do i step back each time a * is found to previously defined chapter=#? For example my lisview has 4 columns. $SearchFor = StringRegExpReplace($SearchFor, "([.*+()?^$|{}[]])", "$1") $res = StringRegExp($source, "(?im)^.*" & $SearchFor & ".*$", 3) If Not @error Then For $line In $res $NewLine = StringTrimLeft ($line,StringInStr($line,"*")) ;becuase each line starts with Versus=1* or Versus=2* etc so i remove that to display in first column. GUICtrlCreateListViewItem($NewLine & "|Chapter|Book|Testament|", $ListView) Next EndIf Here with line generated by (your doing) i can trim it by finding special character i placed in each line * Because this is a bible, lines look like this Versus=30* а всем зверям земным, и всем птицам небесным, и всякому [гаду,] пресмыкающемуся по земле, в котором душа живая, дал Я всю зелень травную в пищу. И стало так. Versus=31* И увидел Бог все, что Он создал, и вот, хорошо весьма. И был вечер, и было утро: день шестой. @Chapter=2` Versus=1* Так совершены небо и земля и все воинство их. Versus=2* И совершил Бог к седьмому дню дела Свои, которые I somehow need to assign Chapter # into the second column of listview Note that each @Chapter=# and has a special character at the end ` and @ at the beginning to help me to find it, but with your code i cant really figure out how to go back to this symbol and read whats behind it (kinda go backwards i guess) I also dont understand why did u use $SearchFor twice ? Maybe thats how it works, i dont know- 23 replies
-
- bible
- string search slow
-
(and 1 more)
Tagged with:
-
string search takes too loong (bible search)=SOLVED
dirty replied to dirty's topic in AutoIt General Help and Support
Man this was instant result. But these two lines $SearchFor = [url="../../../autoit3/docs/functions/StringRegExpReplace.htm"]StringRegExpReplace[/url]($SearchFor, "([.*+()?^$|{}[]])", "$1") $res = [url="../../../autoit3/docs/functions/StringRegExp.htm"]StringRegExp[/url]($source, "(?im)^.*" & $SearchFor & ".*$", 3) driving me nuts !. They are as complex as your avatar. Speaking of me being stupid, how come there is no smiley face for being stupid ? It would be very appropriate in my case.- 23 replies
-
- bible
- string search slow
-
(and 1 more)
Tagged with:
-
string search takes too loong (bible search)=SOLVED
dirty replied to dirty's topic in AutoIt General Help and Support
not friendly with arrays. can you give me example that will work with my script ?- 23 replies
-
- bible
- string search slow
-
(and 1 more)
Tagged with:
-
i have a file with 36105 lines to search for a string. enough said. it takes too long to find a string given, so #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Include <File.au3> #Include <GuiListView.au3> FileInstall ("Bibles\Russian.txt","Russian.txt",1) $MainGUI = GUICreate ("Bible Search",400,435) GUICtrlCreateGroup ("Search ?",5,5,390,45) $Input = GUICtrlCreateInput ("",10,20,300,20) $SearchButton = GUICtrlCreateButton ("Go !",315,20,70,20) GUICtrlCreateGroup ("Results.",5,50,390,325) $ListView = GUICtrlCreateListView ("Results of your search displayed here.|",10,65,380,300) _GUICtrlListView_SetColumnWidth ($ListView,0,375) $ShowButton = GUICtrlCreateButton ("Show Selected.",5,380,395,30) $Status = GUICtrlCreateLabel ("Whats going on ?",5,420,390,20) GUISetState (@SW_SHOW,$MainGUI) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then FileDelete ("Russian.txt") Exit EndIf If $msg = $SearchButton Then $SearchFor = GUICtrlRead ($Input) _GUICtrlListView_DeleteAllItems(GUICtrlGetHandle($ListView)) For $i = 1 to 36105 GUICtrlSetData ($Status,"Whats going on ? Working") $SearchIn = FileReadLine ("Russian.txt",$i) If StringInStr ($SearchIn,$SearchFor) <> @error Then GUICtrlCreateListViewItem ($SearchIn,$ListView) EndIf $Loopmsg = GUIGetMsg() If $Loopmsg = $SearchButton Then MsgBox(0,'','search stoped') ExitLoop EndIf Next GUICtrlSetData ($Status,"Whats going on ? Nothing") EndIf If $msg = $ShowButton Then MsgBox(0,'',GUICtrlRead (GUICtrlRead ($ListView))) EndIf WEnd as simple as i could yet its too long. Is there a way to search faster ? I noticed searching for a whole phrase takes just as long as it takes to find a word in this phrase
- 23 replies
-
- bible
- string search slow
-
(and 1 more)
Tagged with:
-
is there such thing as @userpassword ?
dirty replied to dirty's topic in AutoIt General Help and Support
now that am thinking about it, i dont know why my self. -
awesome thanks. didnt even know how to search for it since was not sure what is it that am trying to do or how to label it
-
Is it possible to code whatever using autoit and have webpage interact with it ? That way application is at my house and clients connect to it via web interface to use it ? That way i dont have to bring my app to work, i can just give them the link, like www.myweb.com\myapp.exe or how ever that supose to be. Im guessing i cant simply upload my compiled script to host and have clients download and use it on their own computers, i want them to use it from host computer via webpage. Any ideas where to start on that ? Or maybe learn another programming language like JAVA and make a page with Java ? I guess this is one way, but i love autoit and i dont think java can do more then autoit can
-
is there such thing as @userpassword ?
dirty replied to dirty's topic in AutoIt General Help and Support
so that when client is loged in to my app his password should match to his computer login password. at work we use same password for computer login and email login and timecard login, so i thought its simple enough Any other way to read currently loged in user password ? For instance i know how to change password via CMD but i dont want to change it, i want to see it and check it it matches with what the user type. -
is there such thing as @userpassword ?
-
having this If BitAnd(GUICtrlGetState ($CreateNameInput), $GUI_FOCUS) = $GUI_FOCUS And _IsPressed('0D') Then MsgBox(0,'','') in a gui loop still doesnt work As for CutePDF, last time i checked they want $50. Free is the converter.
-
yes i know that one already, it uses prfile32.exe. Dont like it.