<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK_IE]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16146&amp;type=atom" />
	<updated>2021-03-04T19:00:39Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16146</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK_IE]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146611#p146611" />
			<content type="html"><![CDATA[<p>Кликайте через события mousedown, mouseup.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2021-03-04T19:00:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146611#p146611</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK_IE]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146608#p146608" />
			<content type="html"><![CDATA[<p>Добрый день! Подскажите, пож-та, как выбрать &quot;Заявка&quot; в поле &quot;Категория&quot;. До обновление сайта код работал:</p><div class="codebox"><pre><code>
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#SingleInstance force 


webpage := &quot;https://inseption.with5.glpi-network.cloud/front/ticket.form.php&quot;

;~ IE(URL)
;~ {
   ;~ For ie in ComObjCreate( &quot;Shell.Application&quot; ).Windows
      ;~ If InStr(ie.FullName, &quot;iexplore.exe&quot; ) &amp;&amp; InStr(ie.LocationURL, URL)
         ;~ Return ie
  
;~ }

;~ ie := IE(URL)
;~ ie.navigate(webpage)
;~ while ie.readystate &lt;&gt; 4
	;~ sleep 300


ie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
ie.Navigate(webpage)
ie.Visible := true

while ie.readystate &lt;&gt; 4
	sleep 300


if ( ie.document.querySelectorAll(&quot;input&quot;).length &lt; 8 )
{
  ie.document.querySelectorAll(&quot;input&quot;)[1].value := &quot;user&quot; 
  ie.document.querySelectorAll(&quot;input&quot;)[2].value  := &quot;12345&quot; 
  ie.document.querySelectorAll(&quot;input&quot;)[5].click()
}

while ie.document.getElementsByClassName(&quot;layout_lefttab&quot;).length = 0
  {
	sleep 300
    continue
  }
    

  while ie.document.getElementsByClassName(&quot;loadingindicator&quot;).length != 0
  {
	sleep 300
    continue
  }
    

ie.document.getElementsByName(&quot;itilcategories_id&quot;)[0].value := 6
Change := ie.document.createEvent(&quot;Event&quot;)
Change.initEvent(&quot;change&quot;, true, true)
ie.document.getElementsByName(&quot;itilcategories_id&quot;)[0].dispatchEvent(Change)

return


Esc::
{
  ie.quit
  Process, Close, iexplore.exe
  ExitApp 
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2021-03-04T11:02:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146608#p146608</id>
		</entry>
</feed>
