1 (изменено: inseption86, 2019-03-04 19:28:01)

Тема: AHK: IE_Controlsend

Добрый день! Подскажите пож-та, почта  gmail, при прикреплении файла в письме, Controlsend не хочет работать, заранее спасибо!


#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#SingleInstance force 

ie := ComObjCreate("InternetExplorer.Application")
ie.Visible := true
ie.Navigate("https://mail.google.com/mail/u/1/#inbox")
while  ie.readyState!=4
	continue
  sleep 1000

FileSelectFile, Path, 3, %A_desktop% ,Open a file, Text Documents (*.doc; *.docx)

ie.document.getElementsByClassName("T-I J-J5-Ji T-I-KE L3")[0].click() ; написать

while ie.document.getElementsByClassName("aoT").length = 0
{
	sleep 300
continue
	}

ie.document.getElementsByClassName("a1 aaA aMZ")[0].click()         ;  если убрать этот клик и нажимать вручную, то работает
sleep 200

SetKeyDelay, 60
WinWait,Выбор выкладываемого файла,
sleep 500
ControlSend , Edit1, %Path% {Enter}, Выбор выкладываемого файла

ExitApp

2

Re: AHK: IE_Controlsend

http://forum.script-coding.com/viewtopic.php?id=14278

3

Re: AHK: IE_Controlsend

Спасибо! Malcev

4

Re: AHK: IE_Controlsend

Что за Conrolsend в названии темы и первом сообщении?