Jump to content

Maximize Wireshark


Recommended Posts

Run"...........\wireshark.exe", "", @SW_MAXIMIZE)

It depends on those "...........". It is different in x86 and x64 Systems and in which mode its running.

Just search for the executable like here:

Opt("ExpandEnvStrings", 1)
$wiresharkdir = ""
if FileExists("%ProgramFiles%\Wireshark\wireshark.exe") Then $wiresharkdir = "%ProgramFiles%\Wireshark"
if FileExists("%ProgramFiles(x86)%\Wireshark\wireshark.exe") Then $wiresharkdir = "%ProgramFiles(x86)%\Wireshark"
if FileExists("%ProgramW6432%\Wireshark\wireshark.exe") Then $wiresharkdir = "%ProgramW6432%\Wireshark"
; MsgBox(262144,"",@lf & $wiresharkdir & @lf,0)
Run($wiresharkdir & "\wireshark.exe",$wiresharkdir ,@SW_MAXIMIZE)
WinWaitActive("The Wireshark Net","",20)
beep()
Sleep(500)
WinSetState("[last]","", @SW_HIDE)
Sleep(500)
WinSetState("[last]","", @SW_RESTORE)
Sleep(500)
WinSetState("[last]","", @SW_MAXIMIZE)

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...