Sign in to follow this  
Followers 0
toothyXdip

i thought it was fixed

2 posts in this topic

ok i was doing something with a name input box and some1 told me the anwser to what i was doing wrong but now i cant get it to do what wanted to do. Im trying to have an input box that you can enter a word into and when you go to other windows you can just use the veriable you named it with for the word.

this is the script he helped me with (it works here):

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.2.2.0
 Author:         myName

 Script Function:
    Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

#include <GUIConstants.au3>
Global $name_input

;window---------------------
GUICreate("Welcome", 300, 200 , 390, 240, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
GUICtrlSetCursor(-1, 3)
$dummy = GUICtrlCreateDummy()
GUICtrlSetCursor(-1, 3)
GUISetBkColor(0x000000)
GUICtrlSetOnEvent($GUI_EVENT_CLOSE, 'send_dummy')
GUICtrlSetCursor(-1, 3)
GUICtrlSetCursor(-1, 3)
GUICtrlSetCursor(-1, 3)
GUICtrlSetState(-1, $GUI_DISABLE)
;lables---------------------
GUISetFont(14, 700)
$main_lable = GUICtrlCreateLabel("my question press start", 10, 10)
GUICtrlSetCursor(-1, 3)
$main_lable2 = GUICtrlCreateLabel("for me to show", 50, 30)
GUICtrlSetCursor(-1, 3)
GUISetFont(12, 400)
;colorsets------------------
GUICtrlSetBkColor($main_lable, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetBkColor($main_lable2, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetColor($main_lable, 0xFFFFFF)
GUICtrlSetColor($main_lable2, 0xFFFFFF)
GUISetState(@SW_SHOW)
;buttons--------------------
$start_button = GUICtrlCreateButton("Start", 70, 150, 70, 20)
GUICtrlSetCursor(-1, 3)
$exit_button = GUICtrlCreateButton("Exit", 170, 150, 70, 20)
GUICtrlSetCursor(-1, 3)
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE or $msg = $exit_button
            OnButtonExit()
        Case $msg = $start_button
            start_button()
    EndSelect
WEnd

;functions-----------------

Func send_dummy()
    GUICtrlSendToDummy($dummy)
EndFunc

Func OnButtonExit()
    While 1
    $anwser = MsgBox(36, "Quit?", "Do you want to quit?")
    If $anwser = 6 Then
        Exit
    ElseIf $anwser = 7 Then
        ExitLoop
    EndIf
WEnd
EndFunc

Func start_button()
    GUIDelete()
    ;window-----------------
    GUICreate("Set name", 300, 200 , 390, 240, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
    GUISetBkColor(0x000000)
    GUICtrlSetState(-1, $GUI_DISABLE)
    ;lable------------------
    GUISetFont(13, 900)
    $name_lable = GUICtrlCreateLabel("Set name here", 10, 20)
    $name_lable2 = GUICtrlCreateLabel("", 120, 40)
    ;button-----------------
;    $next_button2 = GUICtrlCreateButton("Next", 210, 170, 70, 20)
    $pick_name = GUICtrlCreateButton("SetName", 105, 170, 100, 20)
    ;input-------------------
    $name_input = GUICtrlCreateInput("Pick Name", 110, 90, 100, 20)
    ;colorsets--------------
    GUICtrlSetBkColor($name_lable, $GUI_BKCOLOR_TRANSPARENT)
    GUICtrlSetBkColor($name_lable2, $GUI_BKCOLOR_TRANSPARENT)
    GUICtrlSetColor($name_lable, 0xFFFFFF)
    GUICtrlSetColor($name_lable2, 0xFFFFFF)
   
    GUISetState(@SW_SHOW)
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            OnButtonExit()
        Case $msg = $pick_name
;            readnameinput()
                $read_name = GUICtrlRead($name_input)
                next_($read_name)
;        Case $msg = $next_button2
;            next_()
    EndSelect
WEnd
EndFunc

#cs - remove useless function -
Func readnameinput()
    $read_name = GUICtrlRead($name_input)
    Return($read_name)
EndFunc
#CE - end remove useless function -

Func next_($read_name)
    GUIDelete()
    ;window-----------------
    GUICreate("Set name", 300, 200 , 390, 240, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
    GUISetBkColor(0x000000)
    GUICtrlSetState(-1, $GUI_DISABLE)
    ;lable------------------
    GUISetFont(13, 900)
    $name_lable = GUICtrlCreateLabel("Show name here " & $read_name, 10, 20)
    $name_lable2 = GUICtrlCreateLabel("", 120, 40)
    ;colorsets--------------
    GUICtrlSetBkColor($name_lable, $GUI_BKCOLOR_TRANSPARENT)
    GUICtrlSetBkColor($name_lable2, $GUI_BKCOLOR_TRANSPARENT)
    GUICtrlSetColor($name_lable, 0xFFFFFF)
    GUICtrlSetColor($name_lable2, 0xFFFFFF)
   
    GUISetState(@SW_SHOW)
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            OnButtonExit()
    EndSelect
WEnd
EndFuncoÝ÷ Úz0¶¬É¢æ§v+]¡ë'·§¶Ú,-éÚæµêíçâ®ËpwhÁ§íz»^)éºÖèÅ«­¢+ØÌ´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´((Õѽ%ÐYÉÍ¥½¸è̸ȸȸÀ(ÕÑ¡½Èèµå9µ((MÉ¥ÁÐչѥ½¸è(%QµÁ±ÑÕѽ%ÐÍÉ¥Áи((´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´((ìMÉ¥ÁÐMÑÉдå½ÕȽ±½Ü¡É()±½°ÀÌØí¹µ}¥¹ÁÕÐ((¥¹±Õ±ÐíU%
½¹ÍѹÑ̹ÔÌÐì(íÝ¥¹½Ü´´´´´´´´´´´´´´´´´´´´´)U%
ÉÑ ÅÕ½Ðí]±½µÅÕ½Ðì°ÌÀÀ°ÈÀÀ°ÌäÀ°ÈÐÀ°  ¥Ñ=H ÀÌØí]M}=YI1AA]%9=°ÀÌØí]M}
1%AM%   1%9L¤¤)U%
ÑɱMÑ
ÕÉÍ½È ´Ä°Ì¤(ÀÌØíÕµµäôU%
Ñɱ
ÉÑÕµµä ¤)U%
ÑɱMÑ
ÕÉÍ½È ´Ä°Ì¤)U%MÑ ­
½±½È ÁàÀÀÀÀÀÀ¤)U%
ÑɱMÑ=¹Ù¹Ð ÀÌØíU%}Y9Q}
1=M°Ìäí͹}ÕµµäÌäì¤)U%
ÑɱMÑ
ÕÉÍ½È ´Ä°Ì¤)U%
ÑɱMÑ
ÕÉÍ½È ´Ä°Ì¤)U%
ÑɱMÑ
ÕÉÍ½È ´Ä°Ì¤)U%
ÑɱMÑMÑÑ ´Ä°ÀÌØíU%}%M  1¤(í±±Ì´´´´´´´´´´´´´´´´´´´´´)U%Mѽ¹Ð ÄаÜÀÀ¤(ÀÌØíµ¥¹}±±ôU%
Ñɱ
ÉÑ1° ÅÕ½Ðíݱ½µÅÕ½Ðì°ÄÀ°ÄÀ¤)U%
ÑɱMÑ
ÕÉÍ½È ´Ä°Ì¤(ÀÌØíµ¥¹}±±ÈôU%
Ñɱ
ÉÑ1° ÅÕ½ÐíAÉÍÌMÑÉÐQ¼ ¥¸ÅÕ½Ðì°ÔÀ°ÌÀ¤)U%
ÑɱMÑ
ÕÉÍ½È ´Ä°Ì¤)U%Mѽ¹Ð ÄÈ°ÐÀÀ¤(í½±½ÉÍÑÌ´´´´´´´´´´´´´´´´´´)U%
ÑɱMÑ   ­
½±½È ÀÌØíµ¥¹}±±°ÀÌØíU%}   -
=1=I}QI9MAI9P¤)U%
ÑɱMÑ   ­
½±½È ÀÌØíµ¥¹}±±È°ÀÌØíU%} -
=1=I}QI9MAI9P¤)U%
ÑɱMÑ
½±½È ÀÌØíµ¥¹}±±°Áá¤)U%
ÑɱMÑ
½±½È ÀÌØíµ¥¹}±±È°Áá¤)U%MÑMÑÑ¡M]}M!=¤(íÕÑѽ¹Ì´´´´´´´´´´´´´´´´´´´´(ÀÌØíÍÑÉÑ}ÕÑѽ¸ôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½ÐíMÑÉÐÌÌìÅÕ½Ðì°ÜÀ°ÄÔÀ°ÜÀ°ÈÀ¤)U%
ÑɱMÑ
ÕÉÍ½È ´Ä°Ì¤(ÀÌØíá¥Ñ}ÕÑѽ¸ôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½Ðíá¥ÐÅÕ½Ðì°ÄÜÀ°ÄÔÀ°ÜÀ°ÈÀ¤)U%
ÑɱMÑ
ÕÉÍ½È ´Ä°Ì¤)]¡¥±Ä($ÀÌØíµÍôU%Ñ5Í ¤(%M±Ð($%
ÍÀÌØíµÍôÀÌØíU%}Y9Q}
1=M½ÈÀÌØíµÍôÀÌØíá¥Ñ}ÕÑѽ¸($$%=¹   ÕÑѽ¹á¥Ð ¤($%
ÍÀÌØíµÍôÀÌØíÍÑÉÑ}ÕÑѽ¸($$%ÍÑÉÑ}ÕÑѽ¸ ¤(%¹M±Ð)]¹((íչѥ½¹Ì´´´´´´´´´´´´´´´´´()չ͹}Õµµä ¤(%U%
ÑɱM¹Q½Õµµä ÀÌØíÕµµä¤)¹Õ¹()Õ¹=¹ ÕÑѽ¹á¥Ð ¤(%]¡¥±Ä($ÀÌØí¹ÝÍÈô5Í   ½à ÌØ°ÅÕ½ÐíEÕ¥ÐüÅÕ½Ðì°ÅÕ½Ðí¼å½ÔݹÐѼÅÕ¥ÐüÅÕ½Ðì¤(%%ÀÌØí¹ÝÍÈôØQ¡¸($%á¥Ð(%±Í%ÀÌØí¹ÝÍÈôÜQ¡¸($%á¥Ñ1½½À(%¹%)]¹)¹Õ¹()Õ¹ÍÑÉÑ}ÕÑѽ¸ ¤(%U%±Ñ ¤($íÝ¥¹½Ü´´´´´´´´´´´´´´´´´(%U%
ÉÑ ÅÕ½Ðí¹ÈÅÕ½Ðì°ÌÀÀ°ÈÀÀ°ÌäÀ°ÈÐÀ° ¥Ñ=H ÀÌØí]M}=YI1AA]%9=°ÀÌØí]M}
1%AM%   1%9L¤¤(%U%MÑ ­
½±½È ÁàÀÀÀÀÀÀ¤(%U%
ÑɱMÑMÑÑ ´Ä°ÀÌØíU%}%M  1¤($í±±´´´´´´´´´´´´´´´´´´(%U%Mѽ¹Ð ÄÌ°äÀÀ¤($ÀÌØí¹É}±±ôU%
Ñɱ
ÉÑ1° ÅÕ½ÐíɽÐÑ¡¥ÌÁÑ¡¥Ì¥Ì©ÕÍСÉÅÕ½Ðì°ÄÀ°ÈÀ¤($ÀÌØí¹É}±±ÈôU%
Ñɱ
ÉÑ1° ÅÕ½ÐìÅÕ½Ðì°ÄÈÀ°ÐÀ¤($íÕÑѽ¸´´´´´´´´´´´´´´´´´($ÀÌØí¹áÑ}ÕÑѽ¸ôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½Ðí9áÐÅÕ½Ðì°ÈÄÀ°ÄÜÀ°ÜÀ°ÈÀ¤($ÀÌØíÁ¥­}½µ¼ôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½ÐíA¥­¹ÈÅÕ½Ðì°ÄÀÔ°ÄÜÀ°ÄÀÀ°ÈÀ¤($í½µ¼´´´´´´´´´´´´´´´´´´´($ÀÌØí¹É}½µ¼ôU%
Ñɱ
ÉÑ
½µ¼ ÅÕ½ÐíA¥¬¹ÈÅÕ½Ðì°ÄÄÀ°äÀ°ÄÀÀ°ÈÀ¤(%U%
ÑɱMÑÑ ÀÌØí¹É}½µ¼°ÅÕ½Ðíñ5±ñµ±ðÅÕ½Ðì¤($í½±½ÉÍÑÌ´´´´´´´´´´´´´´(%U%
ÑɱMÑ   ­
½±½È ÀÌØí¹É}±±°ÀÌØíU%} -
=1=I}QI9MAI9P¤(%U%
ÑɱMÑ   ­
½±½È ÀÌØí¹É}±±È°ÀÌØíU%}   -
=1=I}QI9MAI9P¤(%U%
ÑɱMÑ
½±½È ÀÌØí¹É}±±°Áá¤(%U%
ÑɱMÑ
½±½È ÀÌØí¹É}±±È°Áá¤($(%U%MÑMÑÑ¡M]}M!=¤)]¡¥±Ä($ÀÌØíµÍôU%Ñ5Í ¤(%M±Ð($%
ÍÀÌØíµÍôÀÌØíU%}Y9Q}
1=M($$%=¹  ÕÑѽ¹á¥Ð ¤($%
ÍÀÌØíµÍôÀÌØí¹áÑ}ÕÑѽ¸($$%¹áÑ}ÕÑѽ¸ ¤(%¹M±Ð)]¹)¹Õ¹()Õ¹¹áÑ}ÕÑѽ¸ ¤(%U%±Ñ ¤($íÝ¥¹½Ü´´´´´´´´´´´´´´´´´(%U%
ÉÑ ÅÕ½ÐíAÑA±åQ¥µèAÐè9µÅÕ½Ðì°ÌÀÀ°ÈÀÀ°ÌäÀ°ÈÐÀ°  ¥Ñ=H ÀÌØí]M}=YI1AA]%9=°ÀÌØí]M}
1%AM%   1%9L¤¤(%U%MÑ ­
½±½È ÁàÀÀÀÀÀÀ¤(%U%
ÑɱMÑMÑÑ ´Ä°ÀÌØíU%}%M  1¤($í±±´´´´´´´´´´´´´´´´´´(%U%Mѽ¹Ð ÄÌ°äÀÀ¤($ÀÌØí¹µ}±±ôU%
Ñɱ
ÉÑ1° ÅÕ½ÐíQ¡¥Ì¥ÌÝ¡Éå½Ô¡½½ÍÑ¡ÅÕ½Ðì°ÄÀ°ÈÀ¤($ÀÌØí¹µ}±±ÈôU%
Ñɱ
ÉÑ1° ÅÕ½Ðí9µÅÕ½Ðì°ÄÈÀ°ÐÀ¤($íÕÑѽ¸´´´´´´´´´´´´´´´´´($ÀÌØí¹áÑ}ÕÑѽ¸ÈôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½Ðí9áÐÅÕ½Ðì°ÈÄÀ°ÄÜÀ°ÜÀ°ÈÀ¤($í¥¹ÁÕд´´´´´´´´´´´´´´´´´´($ÀÌØí¹µ}¥¹ÁÕÐôU%
Ñɱ
ÉÑ%¹ÁÕÐ ÅÕ½ÐíA¥¬9µÅÕ½Ðì°ÄÄÀ°äÀ°ÄÀÀ°ÈÀ¤($í½±½ÉÍÑÌ´´´´´´´´´´´´´´(%U%
ÑɱMÑ   ­
½±½È ÀÌØí¹µ}±±°ÀÌØíU%} -
=1=I}QI9MAI9P¤(%U%
ÑɱMÑ   ­
½±½È ÀÌØí¹µ}±±È°ÀÌØíU%}   -
=1=I}QI9MAI9P¤(%U%
ÑɱMÑ
½±½È ÀÌØí¹µ}±±°Áá¤(%U%
ÑɱMÑ
½±½È ÀÌØí¹µ}±±È°Áá¤($(%U%MÑMÑÑ¡M]}M!=¤)]¡¥±Ä($ÀÌØíµÍôU%Ñ5Í ¤(%M±Ð($%
ÍÀÌØíµÍôÀÌØíU%}Y9Q}
1=M($$%=¹  ÕÑѽ¹á¥Ð ¤($%
ÍÀÌØíµÍôÀÌØí¹áÑ}ÕÑѽ¸È($$$ÀÌØíÉ}¹µôU%
ÑɱI ÀÌØí¹µ}¥¹ÁÕФ($$%¹áÑÕÑѽ¸É| ÀÌØíÉ}¹µ¤(%¹M±Ð)]¹)¹Õ¹()Õ¹¹áÑÕÑѽ¸É| ÀÌØíÉ}¹µ¤(%U%±Ñ ¤($íÝ¥¹½Ü´´´´´´´´´´´´´´´´´(%U%
ÉÑ ÅÕ½Ðí¹áÐÝ¥¹½ÜÅÕ½Ðì°ÌÀÀ°ÈÀÀ°ÌäÀ°ÈÐÀ° ¥Ñ=H ÀÌØí]M}=YI1AA]%9=°ÀÌØí]M}
1%AM%   1%9L¤¤(%U%MÑ ­
½±½È ÁàÀÀÀÀÀÀ¤(%U%
ÑɱMÑMÑÑ ´Ä°ÀÌØíU%}%M  1¤($í±±´´´´´´´´´´´´´´´´´´(%U%Mѽ¹Ð ÄÌ°äÀÀ¤($ÀÌØíÍÁ¥Í}±±ôU%
Ñɱ
ÉÑ1° ÅÕ½ÐíÁɽ±´¥Ì¹áÐÝ¥¹½ÜÅÕ½Ðì°ÄÀ°ÈÀ¤($íÕÑѽ¸´´´´´´´´´´´´´´´´´($ÀÌØí¹áÑ}ÕÑѽ¸ÌôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½Ðí9áÐÅÕ½Ðì°ÈÄÀ°ÄÜÀ°ÜÀ°ÈÀ¤($í½±½ÉÍÑÌ´´´´´´´´´´´´´´(%U%
ÑɱMÑ   ­
½±½È ÀÌØíÍÁ¥Í}±±°ÀÌØíU%} -
=1=I}QI9MAI9P¤(%U%
ÑɱMÑ
½±½È ÀÌØíÍÁ¥Í}±±°Áá¤($(%U%MÑMÑÑ¡M]}M!=¤)]¡¥±Ä($ÀÌØíµÍôU%Ñ5Í ¤(%M±Ð($%
ÍÀÌØíµÍôÀÌØíU%}Y9Q}
1=M($$%=¹  ÕÑѽ¹á¥Ð ¤($%
ÍÀÌØíµÍôÀÌØí¹áÑ}ÕÑѽ¸Ì($$%¹áÑ}ÕÑѽ¸Ì ÀÌØíÉ}¹µ¤(%¹M±Ð)]¹)¹Õ¹(()Õ¹¹áÑ}ÕÑѽ¸Ì ÀÌØíÉ}¹µ¤(%U%±Ñ ¤($íÝ¥¹½Ü´´´´´´´´´´´´´´´´´(%U%
ÉÑ ÅÕ½ÐíÑÍÐÅÕ½Ðì°ÌÀÀ°ÈÀÀ°ÌäÀ°ÈÐÀ°   ¥Ñ=H ÀÌØí]M}=YI1AA]%9=°ÀÌØí]M}
1%AM%   1%9L¤¤(%U%MÑ ­
½±½È ÁàÀÀÀÀÀÀ¤(%U%
ÑɱMÑMÑÑ ´Ä°ÀÌØíU%}%M  1¤($í±±´´´´´´´´´´´´´´´´´´(%U%Mѽ¹Ð ÄÌ°äÀÀ¤($ÀÌØíÑÍÑ}±±ôU%
Ñɱ
ÉÑ1° ÀÌØí¹µ}¥¹ÁÕеÀìÅÕ½Ðí¥Ì½½°ÅÕ½Ðì°ÄÀ°ÈÀ¤($í½±½ÉÍÑÌ´´´´´´´´´´´´´´(%U%
ÑɱMÑ   ­
½±½È ÀÌØíÑÍÑ}±±°ÀÌØíU%}   -
=1=I}QI9MAI9P¤(%U%
ÑɱMÑ
½±½È ÀÌØíÑÍÑ}±±°Áá¤($(%U%MÑMÑÑ¡M]}M!=¤)]¡¥±Ä($ÀÌØíµÍôU%Ñ5Í ¤(%M±Ð($%
ÍÀÌØíµÍôÀÌØíU%}Y9Q}
1=M($$%=¹  ÕÑѽ¹á¥Ð ¤(%¹M±Ð)]¹)¹Õ¹(

---╔╦═╗╔╗'''╔╗╔═╦═╗╔╦═╗---╝╠═╣╝║'''║╝╝''''''╝╝║'''......''''''''''''''''''''''''''''''---╔╩═╩═╩═╩═══╩═╦═╩═╩══╦══════╗''''╔╩════════════╩══╗╔══╩══╗╔══╝ ''''''''''''''''''''''''''''''''''''''''''''''''''''║║'''''''''''''''║║ ''''''''''''''''''''''''''''''''''''''''''''''╔══╝╚══╗''''''║║''''''''''''''''''''''''''''''''''''''''''''''╚══════╝''''''╚╝

Share this post


Link to post
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
Sign in to follow this  
Followers 0