gentee.com Forum Index gentee.com
Gentee Programming Language and CreateInstall forums.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Подскажите как реализовать.

 
Post new topic   Reply to topic    gentee.com Forum Index -> Общие вопросы
View previous topic :: View next topic  
Author Message
VitAl2013
Guest





PostPosted: Tue Aug 26, 2008 9:37 am    Post subject: Подскажите как реализовать. Reply with quote

Как организовать проверку некоего условия и потом в зависимости от результата проверки выбрать одну из 2х радиокнопок выводимых программой?

Как я пытался:
Получаю результирующий макрос (status) из реестра.
Условие: если status равен one то... и вот тут хотелось чтоб вышло окно с 2я радиокнопками одна из которых подсвечена.[/i]
Back to top
VitAl2013
Guest





PostPosted: Tue Aug 26, 2008 10:23 am    Post subject: Reply with quote

Всё допетрил.
Вот код sp файла кому надо.
Code:
<project version = 1 program = Scriptiuss >
   <name >
Script Name
   </>
   <runshell >
1
   </>
   <recompile >
1
   </>
   <exe >
   </>
   <icon >
   </>
   <autoexe >
0
   </>
   <savelog >
0
   </>
   <check1 >
autoclose
   </>
   <check2 >
runagain
   </>
   <script >
      <_ id = regget >
         <cmd >
cmdregget
         </>
         <desc >
         </>
         <root >
curuser
         </>
         <subkey >
Environment
         </>
         <key >
LANG
         </>
         <macro >
status
         </>
         <more >
         </>
      </>
      <_ id = if >
         <cmd >
cmdif
         </>
         <desc >
         </>
         <macro1 >
status
         </>
         <iftype1 >
equal
         </>
         <value1 >
RU
         </>
         <orand >
and
         </>
         <macro2 >
         </>
         <iftype2 >
equal
         </>
         <value2 >
         </>
         <_ id = macros >
            <cmd >
cmdmacros
            </>
            <desc >
            </>
            <data >
on = 1
off = 0
            </>
         </>
      </>
      <_ id = if >
         <cmd >
cmdif
         </>
         <desc >
         </>
         <macro1 >
status
         </>
         <iftype1 >
equal
         </>
         <value1 >
EN
         </>
         <orand >
and
         </>
         <macro2 >
         </>
         <iftype2 >
equal
         </>
         <value2 >
         </>
         <_ id = macros >
            <cmd >
cmdmacros
            </>
            <desc >
            </>
            <data >
on = 0
off = 1
            </>
         </>
      </>
      <_ id = logtext >
         <cmd >
cmdlogtext
         </>
         <desc >
         </>
         <data >
Value is not correct.
LANG = #status#
         </>
      </>
      <_ id = options >
         <cmd >
cmdoptions
         </>
         <desc >
         </>
         <opttype1 >
radio
         </>
         <text1 >
Russian ON, Russian OFF
         </>
         <macro1 >
on, off
         </>
         <opttype2 >
check
         </>
         <text2 >
         </>
         <macro2 >
         </>
         <opttype3 >
check
         </>
         <text3 >
         </>
         <macro3 >
         </>
      </>
      <_ id = if >
         <cmd >
cmdif
         </>
         <desc >
         </>
         <macro1 >
on
         </>
         <iftype1 >
equal
         </>
         <value1 >
1
         </>
         <orand >
and
         </>
         <macro2 >
         </>
         <iftype2 >
equal
         </>
         <value2 >
         </>
         <_ id = regset >
            <cmd >
cmdregset
            </>
            <desc >
            </>
            <root >
curuser
            </>
            <subkey >
Environment
            </>
            <key >
LANG
            </>
            <value >
RU
            </>
            <more >
            </>
         </>
      </>
      <_ id = if >
         <cmd >
cmdif
         </>
         <desc >
         </>
         <macro1 >
off
         </>
         <iftype1 >
equal
         </>
         <value1 >
1
         </>
         <orand >
and
         </>
         <macro2 >
         </>
         <iftype2 >
equal
         </>
         <value2 >
         </>
         <_ id = regset >
            <cmd >
cmdregset
            </>
            <desc >
            </>
            <root >
curuser
            </>
            <subkey >
Environment
            </>
            <key >
LANG
            </>
            <value >
EN
            </>
            <more >
            </>
         </>
      </>
   </>
</>

Жаль но для меня получившаяся программа оказалась неприменимой. Так как визуально мне такое не подходит (лог, кнопки и прочие признаки скриптуса).
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gentee.com Forum Index -> Общие вопросы All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group