Skip to content

Commit

Permalink
0.00.004
Browse files Browse the repository at this point in the history
  • Loading branch information
Grovkillen authored Feb 10, 2018
1 parent 61c2a45 commit a32b2f9
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions ESP_Easy_Netscan.scp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Let>DEBUG_LEVEL=0

//Global variables (version is MAYOR.MINOR.MINIMAL)
Let>VERSION=0.00.003
Let>VERSION=0.00.004
Let>APP_TITLE=ESP Easy Netscan (%VERSION%)

//Start of program
Expand All @@ -17,7 +17,7 @@ GoSub>ADD_DIALOG_HANDLERS
GoSub>DO_A_SCAN,0,0,0
Show>Dialog_MAIN

//Loop to let dialog1 stay alive and listen to interactions from user
//Loop to let dialog_MAIN stay alive and listen to interactions from user
Label>WAITING_FOR_A_WHILE
Let>WAIT_FOR_CROWS=0.02
Wait>%WAIT_FOR_CROWS%
Expand Down Expand Up @@ -124,11 +124,6 @@ END>EXIT_APP

//Add dialog handlers...
SRT>ADD_DIALOG_HANDLERS
IfDirExists>%SCRIPT_DIR%\APP_DATA
//Do nothing
Else>
CreateDir>%SCRIPT_DIR%\APP_DATA
Endif>
SetDialogProperty>Dialog_MAIN,,Caption,APP_TITLE
SetDialogProperty>Dialog_MAIN,ProgressBar,Position,0
SetDialogProperty>Dialog_MAIN,STATUS_INFO_BAR,Visible,False
Expand Down Expand Up @@ -349,6 +344,14 @@ SRT>GET_LOCAL_IP
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
Let>RP_DISPLAYERROR=0
IfDirExists>%SCRIPT_DIR%\APP_DATA
//Do nothing
Else>
CreateDir>%SCRIPT_DIR%\APP_DATA
Endif>
IfFileExists>%SCRIPT_DIR%\APP_DATA\LOCAL_IP.txt
DeleteFile>%SCRIPT_DIR%\APP_DATA\LOCAL_IP.txt
Endif>
RunProgram>cmd /c ipconfig | Find "IPv4 Address" > CreateDir>%SCRIPT_DIR%\APP_DATA\LOCAL_IP.txt
ReadFile>%SCRIPT_DIR%\APP_DATA\LOCAL_IP.txt,FILE_CONTENT
RegEx>[IPAddress],FILE_CONTENT,1,FOUND_IP,,0,,
Expand Down

0 comments on commit a32b2f9

Please sign in to comment.