the thing is that Im trying to open new tab in firefox(CTRL+t), but for some weird reason instead it opens 2 tabs yet the code looks like this:
Any idea how can i send this 1 time?:
sendkays code:
Fulll code:Code:SendKeys.SendWait("^(t)")
Code:'' Check if firefox is running & open new tab ''---------------------------------------------- Dim ProcessList As System.Diagnostics.Process() ProcessList = System.Diagnostics.Process.GetProcesses() Dim Proc As System.Diagnostics.Process For Each Proc In ProcessList If Proc.ProcessName.ToLower = "firefox" Then 'MsgBox("Name {0} ID {1} " & Proc.ProcessName & " " & Proc.Id) AppActivate(Proc.ProcessName) SendKeys.SendWait("^(t)") ' open new tab Exit For End If Next





Reply With Quote