Jump to content

If $Input1 is empty then call function


Recommended Posts

Hello all, i have another question.

My script not working, how is it correct ?

Need script for this: If is Input 2 empty then call function odoslat() Else call function obrazok2()

Thanks for help

 

 

Func obrazok1()

Local $oForm = _IEFormGetObjByName ($oIE, "formpridani")
$obrazok1 = GUICtrlRead($Input1)
$obrazok2 = GUICtrlRead($Input2)
$oUpload = _IEGetObjByName($oForm, "souborp")
Sleep (500)
_IEAction($oUpload, "focus")
Send("{SPACE}")
Sleep (500)
Send($obrazok1)
Send("{Enter}")

If $obrazok2 = (0) Then
Call ("odoslat")
Else
Call ("obrazok2")

EndIf

EndFunc

 

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

×
×
  • Create New...