Skip to content

Commit

Permalink
new file: AutoIT/CheckIfWindowExists.au3
Browse files Browse the repository at this point in the history
  • Loading branch information
Ray nieva authored and Ray nieva committed Jul 8, 2017
1 parent 107cd6c commit 6c46446
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Binary file added AutoIT/AutoIT.lnk
Binary file not shown.
22 changes: 22 additions & 0 deletions AutoIT/CheckIfWindowExists.au3
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.14.2
Author: Ray Nieva
Script Function:
Check to see If Window Exists AutoIT script.
#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

#include <MsgBoxConstants.au3>

Local $X = WinExists("Network and Sharing Center")
If $X=1 Then
MsgBox($MB_OK, "Checking for Window", "Network and Sharing Center is Open")
Else
MsgBox($MB_OK, "Checking for Window", "Network and Sharing Center is NOT Open")
MsgBox($MB_OK, "Open Window", "Will Start Network and Sharing Center")
Run ("explorer shell:::{8E908FC9-BECC-40f6-915B-F4CA0E70D03D}")
EndIF

0 comments on commit 6c46446

Please sign in to comment.