Jump to content

wojciech

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by wojciech

  1. Hi guys! I have text file with lines: Good text - something 100 $ unnecessary text Good text - something Good text - something Good text - something 080 $ unnecessary text I want remove all line starting with: 3 digits + space + $ sign + any text. I try: StringRegExpReplace($sTextToReplace, '([0-9]{3})[:space:]\x{24}', "") StringRegExpReplace($sTextToReplace, '(?-i[0-9]{3}[:space:]\x{24}(?s)', "") Work great with: StringRegExpReplace($sTextToReplace,"\d{3}\s\$.+", "") Question Solved.
  2. Your reply time looks for me like Guiness record
  3. Your answer was really fast. I'm shocked! Thank you! It was I was looking for!
  4. I have very simple question. How put sign " (quotation mark) between "" for example: $variable = "a href=" " or Function("bla bla"Go ahead"bla bla") I try automatic generate A HTML tag (hyperlink) in my script and I don't know how write href section on it (text in quotation mark): <a href="http://www.w3schools.com">Visit W3Schools</a> Can I replace " with ' without unexpected consequences? For example: MsgBox(0,'Quote: "Alea yacta est"',"Test")
  5. I try: $DownloadFileFromPopup = _IEAttach("[CLASS:Internet Explorer_Server; INSTANCE:1]", "DialogBox") _IELinkClickByText ($DownloadFileFromPopup,"Kliknij aby pobrać") ;visible text of link (Click to download) I try too: _IEAttach ("Jeżeli pobieranie nie rozpocznie się w ciągu kilku sekund", "text") ;text from popup When I use: If _IEAttach("[CLASS:Internet Explorer_Server; INSTANCE:1]", "DialogBox") Then MsgBox(4096,"Stats", "I get popup!") Else MsgBox(4096,"Stats", "I did not get it") I only see "I did not get it" message. What I do wrong? It is not working.
  6. Hi there! It is my first post on this forum. Welcome AutoIt maniacs ! English is my second language so please forgive me grammar mistakes. I have problem. I'm looking for information in help, forums and I stuck. I'm working on script to download manager. It'll be use for downloading historical text from Digital Library Framework (http://dlibra.psnc.pl/index.php?lang=en). It's not comfortable manually download fx. daily newspaper from 1920s. It is about 300 issues for year... What I do? I create form with Koda. With _IECreateEmbedded() and GUICtrlCreateObj() I embedded Internet Explorer on it. Script works with pages like that: Demo of dLibra downloading & reading book. I start downloading with code: _IENavigate($AX_IE_MiejsceDoOtwieraniaStron,GUICtrlRead($InputDownloadingBookAdress)) ;Open page with book on form _IEImgClick ($AX_IE_MiejsceDoOtwieraniaStron, "download.gif", "src") ;Click "Download" image (floppy icon). After that it shows pop up with information that is compressing book file. On this windows is link "Click to download". On <a href=""> is link to file. I would take them and download file with INetGet. Problems I can't focus on the window. I try: $hPopup = WinGetHandle("[CLASS:Internet Explorer_Server; INSTANCE:1]") $sTitle = WinGetTitle($hPopup) $sText = WinGetText($hPopup) MsgBox(64,"SUCCESS!","Title = " & $sTitle & " Text = " & $sText) But this way I get focus on Internet Explorer in my Script Form. I try too: If WinActive("Windows Internet Explorer","Jeżeli pobieranie nie rozpocznie się w ciągu kilku sekund Kliknij aby pobrać") Then MsgBox(0, "Zauważyłem!", "CLASS:Internet Explorer_Server; INSTANCE:1]") ;Info that I get focus on pop up window _IELinkClickByText ($AX_IE_MiejsceDoOtwieraniaStron,"Kliknij aby pobrać") Jeżeli pobieranie nie rozpocznie się w ciągu kilku sekund Kliknij aby pobrać - English: If downloading not start in few second Click to download. From AutoIt v3 WindoInfo I get: >>>> Window <<<< Title: http://dlibra.psnc.pl/?id=1 - Przykładowa Biblioteka Cyfrowa - Windows Internet Explorer Class: IEFrame Position: 191, 0 Size: 482, 381 Style: 0x16CF0000 ExStyle: 0x00000100 Handle: 0x0017061E >>>> Control <<<< Class: Internet Explorer_Server Instance: 1 ClassnameNN: Internet Explorer_Server1 Name: Advanced (Class): [CLASS:Internet Explorer_Server; INSTANCE:1] ID: Text: Position: 0, 0 Size: 474, 354 ControlClick Coords: 231, 187 Style: 0x56000000 ExStyle: 0x00000000 Handle: 0x00140956 >>>> Mouse <<<< Position: 231, 187 Cursor ID: 0 Color: 0xFFFFFF >>>> StatusBar <<<< 1: Gotowe 2: 3: 4: 5: 6: 7: 8: 9: 10: >>>> ToolsBar <<<< >>>> Visible Text <<<< http://dlibra.psnc.pl/?id=1 - Przykładowa Biblioteka Cyfrowa - Windows Internet Explorer >>>> Hidden Text <<<< Pasek nawigacyjny http://dlibra.psnc.pl/demo/dlibra/doczip?id=1 Formant kombi adresu Formant strony Google Formant kombi wyszukiwania Formant wyszukiwania Pasek poleceń Pasek poleceń Ulubione ITBarHost Pasek menu Gotowe Stopień powiększenia What I want to do? Script I would use: 1. Download URL from dLibra library Web Search Engine - http://fbc.pionier.net.pl/owoc 2. Taken links write to INI file 3. Sort Library (some listened files on page FBC Pionier.net not use dLibra but other file): - if not use dLibra delete link 4. Open page on Script form 5. Click download 6. Catch URL to file and get them download with INetGet 7. Proceed 4 for 6 for next file. 8. End program. Questions 1. How get link to file in pop up window? 2. Is any way to open pop up in form? 3. My algorithm is correct? Any suggestion with that? Easier way? Thank you for your advices! Best wishes, Wojciech
×
×
  • Create New...