Is there any way to reposition the MsgBox so that it pops up in a different section of the window? I know I can position a GUI wherever I want it, but I don't see any way to do the same with a MsgBox.
This is what I have so far, that doesn't work (maybe because I positioned the winmove stuff in the wrong place??)
Code: Select all
!q::
{
cUIA:=UIA_Browser("ahk_exe chrome.exe")
wdwHdl := WinGetTitle("A")
tabName := RegExReplace(wdwHdl, " - Google Chrome")
x := cUIA.GetCurrentDocumentElement()
y := cUIA .GetAllLinks()
Loop y.Length
{
If (A_Index > 9)
{
If (A_Index = 50)
{
Break
}
val := Mod(A_Index, 5)
If (val = "0")
{
y[A_Index].ScrollIntoView()
Result := MsgBox(y[A_Index].Name "`n `n Navigate to this page? (press Yes or No)","Want this one?", "YesNo Icon? Default2")
WinWaitActive("Want this one?")
WinMove(1090, 507,,,"Want this one?")
If Result = "Yes"
{
cUIA.NewTab()
cUIA.WaitPageLoad("New Tab")
cUIA.Navigate(y[A_Index].Value)
cUIA.SelectTab(tabName, 2, 0)
}
If Result = "No"
Continue
}
}
}
}