6105
Active Members-
Posts
200 -
Joined
-
Last visited
About 6105
- Birthday 02/06/1991
Profile Information
-
Location
MD Chisinau
Recent Profile Visitors
808 profile views
6105's Achievements
Polymath (5/7)
0
Reputation
-
water, html is this here is 2 forms, sometimes is 1 or 3 i need to select "class="ajaxForm": <div style="display:none"><form action="id=fb399df65ee7ea5209bc4ef742570af4" method="post"></form></div> <h4>Single-user</h4> <form method="post" class="ajaxForm" name="d3e8f5e3ba12" action="008b0e8b13a48b4a9973f690fde336e2"> <input type="hidden" name="action" id="single-action" value="bfbddadfbdccfdb"> <input type="hidden" name="ee1cf0c6f5d4cd729cd58f23982da574" id="single-key" value="xsrMamrKcGhsyHBoYGpoZMxicMzMyG5yymZsysRmysiDlplqZpdqZ22XcA=="> <input type="hidden" name="skey" id="single-skey" value="5e1074f53ab88beba9b35539523830dc"> i try now this: but often have error, if form don't have specified class: $i = 0 $oForms = _IEFormGetCollection($oIE) For $oForm In $oForms StringRegExp($oForm.class, "ajax", 1) If Not @error Then $aSubmit = $oForm.name $aTmp = $i EndIf $i += 1 Next ;and then i select form by $i $oForm = _IEFormGetCollection($oIE, $aTmp) Forms: 0. Form Name = 0. 0. Form Action = file:///id=fb399df65ee7ea5209bc4ef742570af4 1. Form Name = d3e8f5e3ba12 1. Form Action =
- 4 replies
-
- _ietagnamegetcollection
- for
-
(and 1 more)
Tagged with:
-
Thank you, but in any case, how i can select which one i want to use from the Object?
- 4 replies
-
- _ietagnamegetcollection
- for
-
(and 1 more)
Tagged with:
-
Maybe you search this? IniWrite ( "filename", "section", "key", "value" ) Don't have such limitations like 32kB.
-
6105 reacted to a post in a topic:
Need some assistance with a huge "if" statement
-
$oIE = _IECreate('D:DropboxProjectsau3IE_Buildertest.html') $oInputs = _IETagNameGetCollection($oIE, "input") For $oInput In $oInputs $newID = $oInput.id Next ConsoleWrite('New ID = ' & $newID)
-
I can't find solution to check if object have variable or not, i have 2 variables in object, i use: $oIE = _IECreate('D:\Dropbox\Projects\au3\IE_Builder\test.html') $oInputs = _IETagNameGetCollection($oIE, "form") For $oInput In $oInputs $d = $oInput.name If $d = 0 then ConsoleWrite("Form: " & $d & @CRLF) Next And result is: Form: 0 Form: d3e8f5e3ba12 I have tried many solutions, but no one works.... pls help. i can't separate this variables..
- 4 replies
-
- _ietagnamegetcollection
- for
-
(and 1 more)
Tagged with:
-
#jdelaney, sorry i don't understand your question but if you ask about code, i try now this: $sText = FileRead("C:UsersJohnDocumentstest.txt") $aString = _StringBetween($sText, "Fixed", "Fixed8") ConsoleWrite("$aString = " & $aString & @CRLF) $OutputFriends = StringStripWS($aString[0], 4) _ArrayAdd($avArray, $OutputFriends) _ArrayDisplay($aString) ConsoleWrite("$OutputFriends = " & $OutputFriends & @CRLF) It put all the needed words in console, separated by new line, i think maybe to find posibility to read by line, if i'll can't parse. but, StringRegExp code, will need to look like it: $sText = FileRead("C:UsersJohnDocumentstest.txt") $aString = StringRegExp($sText,'11Fixed(.*[d+]).*Fixed1',1) $OutputFriends = StringStripWS($aString[0], 8) ConsoleWrite("$OutputFriends = " & $OutputFriends & @CRLF) Problem, is in search string "'11Fixed(.*[d+]).*Fixed1'" i'm not sure how to navigate in it, i have 2 lines: 1. Fixed word 2. Needed number How i can find fixed word and take needed number from next line? Thank you so much for any tips.
-
Dear Autoit community, i have a problem with parsing my file, can anybody give me some tips who i'll can do it? i read help file, but can not find the solution, thanks. My file: RandomWords1 11 Fixed: RandomWords Fixed1: RandomNr Fixed2: Random% Fixed4 Random-Nr4 $Random-N7 Fixed8 i need tips how i'll can to navigate and take any needed random number or word in the file. I'll try to surf more this forum, if i'll find solution i'll update topic. Thank you.
-
Dear guys, i have this communication in code: $output = _Test("notepad.exe","This is a line of text in the notepad window") ConsoleWrite('_Test response: '&$output) If $output = 'Done' then ConsoleWrite(@CRLF&"finished!"&@CRLF) Func _Test($process,$message) Run($process) sleep(500) ControlSend("[CLASS:Notepad]", "", "Edit1", $message) ProcessClose($process) Return 'Done' EndFunc how i'll be able to make the same communication between two processes, like in this code? or may be, we have solution to run many _Test functions at the same time? Thank you for any tips. Tedy.
-
Click the link with dynamic text or javascript:; or <a> tag
6105 replied to 6105's topic in AutoIt General Help and Support
Some mistake, i see now it work -
Dear guys, i have a trouble, maybe someone will can help me? I need to open an javascript link and can't find solution. ArchoTag of the link: Index: 22 Tag: A Name: cmntLnk Extra Information: Link Text: Link 31 Extra Information: Href: javascript:; Obj Type: DispHTMLAnchorElement I think there is 3 solutions: By clicking the dynamic text "Link 2 or Link 123 or Link n" By opening javascript href. there is 5 javascripts. Or by using _IETagNameGetCollection, i don't know how to use this function to open link Now i try it, but IELinkClickByText don't click on A tag link: $oElements = _IETagNameGetCollection($oIE,"A") $text = "" For $oElement In $oElements StringRegExp($oElement.innerText, "Link") If not @error then $text = $oElement.innerText Next _IELinkClickByText($oIE,$text) Any tips pls how to open this link. Thank you. EDIT: Fix CODE.
-
6105 reacted to a post in a topic:
_IELoadWait not work with __IENavigate?
-
6105 reacted to a post in a topic:
Shift gets pressed down on other window
-
6105 reacted to a post in a topic:
Have here more Fast possibility to read HTML
-
6105 reacted to a post in a topic:
Have here more Fast possibility to read HTML
-
When i try to wait loading of __IENavigate, that never wait Reproducer: #include <IE.au3> $oIE = _IECreate ('autoitscript.com') _IELoadWait($oIE) For $i=0 To 10 Step +1 __IENavigate($oIE, 'autoitscript.com', 1, 0x800) _IELoadWait($oIE) Next Sleep(5000) _IEQuit($oIE) Also i try to use $f_wait, 3th Parrameter of __IENavigate, but that also not work __IENavigate($o_object, $s_Url, $f_wait, $i_flags) Thanks for any tips
-
Have here more Fast possibility to read HTML
6105 replied to 6105's topic in AutoIt General Help and Support
Thank you Dale, by the way, i have resolved it using StringRegExp, now code is in 2 times faster)) EDIT: no more write,read,stringbetween. Just StringRegExp -
Have here more Fast possibility to read HTML
6105 replied to 6105's topic in AutoIt General Help and Support
Well, i have remembered my question, question is how to simplify my code.. always i write body or text to file, have here some possibility to make it in memory? i have _IEBodyReadText($oIE) or _IEBodyReadHTML($oIE) how i can read each line without writing it to file? Thank you and sorry for misunderstandings. EDIT: with bold -
Have here more Fast possibility to read HTML
6105 replied to 6105's topic in AutoIt General Help and Support
Dear danwill, i think here is my trouble, i have take a look in Help file and found all what i need _IELinkGetCollection, _IELinkClickByText and many. Sorry for my question.. that is true spam -
Working with Internet Explorer Tabs
6105 replied to atzoref's topic in AutoIt General Help and Support
__IENavigate will help you to open new tab __IENavigate($oIE, $oLink.href, 0, 0x800) ; open new tab _IEQuit($oIE) will close focused tab _IEQuit($oIE) ; close tab _StringBetween to find something in your link: $check = _StringBetween($oIE.LocationURL, $key, $word) ; Search in URL _IEAttach to select/focus to tab (i spend log time to understand this function) $oIE = _IEAttach ("", "instance", $check); ; Focus tab Tedy. EDIT: added _StringBetween