以下のスクリプトで何が間違っているのかわかりません。動作しません。
私の目標は、テキストを入力したいページに対して既に開いている IE ウィンドウを見つけることからスクリプトを開始することです。次に、ウィンドウをアクティブにして最大化し、指定した場所にテキストを入力して、ページの「送信」ボタンをクリックします。その後、ランダムな時間待機し、同じテキストの入力と送信を繰り返します。
これはスクリプトでの私の最初の試みです。私は何を間違えましたか?
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Recommended for catching common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Pause::Pause
#q::ExitApp
SetTitleMatchMode 2
IfWinExist, ahk_class IEFrame
{
WinActivate
WinMaximize
}
random, sleeptime, 180000, 300000
loop
{
Click 101, 552
Send text phrase goes here
Click 86,638
sleep, %sleeptime%
}