Results 1 to 2 of 2
  1. xd1936's Avatar
    Posts
    262 Posts
    Global Posts
    360 Global Posts
       #1  
    I need a very simple script to see if "Dell Navigation" is running... if it's not, then I want it to ask if I would like to start it. Anyone know what's wrong here?
    Code:
    x = WndExists( "Dell Navigation" )
    	if x = 0
    	Choice( "Do you want to start up the Dell GPS?", "Click OK to Continue", "OKCancel" )
    		Case (1)
    		Run( "\SD Card\Program Files\Dell\GPS Navigation System\DellNav.exe" )
    		Case (2)
    		EndChoice
    		Exit
    	Else
    	Exit
    	EndIf
    I get the error
    Invalid Condition

    Line:
    If x = 0
    Thanks!
    LongLivePalm
  2. xd1936's Avatar
    Posts
    262 Posts
    Global Posts
    360 Global Posts
       #2  
    Got it to work with this:

    Code:
    x = WndExists( "Dell Navigation" )
    	if( x = 0 )
    	Switch( Question( "Do you want to start up the Dell GPS?", "Click OK to Continue", "OKCancel" ) )
    		Case (1)
    		Run( "\SD Card\Program Files\Dell\GPS Navigation System\DellNav.exe" )
    		Case (2)
    		Exit
    		EndSwitch
    	Else
    	Exit
    	EndIf
    LongLivePalm

Posting Permissions