Use inputbox and control commands
Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Use inputbox and control commands
PostPosted: Thu Nov 26, 2009 12:59 pm 
Offline
Newbie

Joined: Thu Nov 26, 2009 12:51 pm
Posts: 2
How can I take a value in the inputbox and according to that value to generate a script to send them to a host?

Thank!

Carlos


Top
 Profile E-mail  
 
 Post subject: Re: Use inputbox and control commands
PostPosted: Tue Dec 01, 2009 4:20 pm 
Offline
Newbie

Joined: Thu Nov 26, 2009 12:51 pm
Posts: 2
Hi,

I solved problem the following way:

  1. inputbox '1).Fixed IP 2).DHCP o 3).PPPoE:' 'WAN'
  2. WAN = inputstr
  3. strcompare WAN '1'
  4. if result=0 then
  5.   sendln 'xxxxxx'
  6. else
  7.   strcompare WAN '2'
  8.   if result=0 then
  9.     sendln 'yyyyyy'
  10.   else
  11.     strcompare WAN '3'
  12.     if result=0 then
  13.       sendln 'zzzzzz'
  14. endif
  15.  


That is!!!

Carlos


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group