Results 1 to 2 of 2

Thread: How to send CTRL+W to an IE8 Browser base in Tab Title

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    1

    How to send CTRL+W to an IE8 Browser base in Tab Title

    Hi Forum members,

    Im trying to work out how to send a CTRL+W command to a specific tab that can be defined by a variable. I have written such a script in AutoIT, however, cant seem to get this working in just straight forward VB. Please see below my AutoIT script if it helps.

    $var1 = "eSeries Logon"

    #include <IE.au3>
    Local $oIE = _IEAttach($var1)
    #include <IE.au3>
    _IEQuit($oIE)


    Thanks
    Hari

  2. #2
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Re: How to send CTRL+W to an IE8 Browser base in Tab Title

    Try SendKeys:

    Code:
    SendKeys "^W"
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width