Sign in to follow this  
Followers 0
goldenix

[Solved]_Varible Q

3 posts in this topic

#1 ·  Posted (edited)

Run this , type something into the inputbox & then Exit the GUI ( it should write into the console whatever you typed into the inputbox, but the result is always nr 3 How comes? )

;~ ==================================================================
;~ Add New Group GUI
;~ ==================================================================
#include <GuiConstantsEx.au3>
#include <WindowsConstants.au3>

Opt("GUIOnEventMode", 1)  ; Change to OnEvent mode

Global $New_Group_input

    $New_group_gui = GUICreate("Create New Group", 320, 120)    ;Main Gui
    $New_Group_input = GUICtrlCreateInput("", 10, 35, 300, 20)  ;Input   

    GUISetState()
    
    ; Events
    GUISetOnEvent($GUI_EVENT_CLOSE, "_CLOSEClicked")

    ;Exit
    Func _CLOSEClicked()
        ConsoleWrite($New_Group_input & @CRLF)
        Exit
    EndFunc


While 1
  Sleep(100)  ; Idle around
WEnd
Edited by goldenix

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

Share this post


Link to post
Share on other sites



Try this:

;~ ==================================================================
;~ Add New Group GUI
;~ ==================================================================
#include <GuiConstantsEx.au3>
#include <WindowsConstants.au3>

Opt("GUIOnEventMode", 1)  ; Change to OnEvent mode

Global $New_Group_input

    $New_group_gui = GUICreate("Create New Group", 320, 120)    ;Main Gui
    $New_Group_input = GUICtrlCreateInput("", 10, 35, 300, 20)  ;Input   

    GUISetState()
   
    ; Events
    GUISetOnEvent($GUI_EVENT_CLOSE, "_CLOSEClicked")

    ;Exit
    Func _CLOSEClicked()
        ConsoleWrite(GUICtrlRead($New_Group_input) & @CRLF)
        Exit
    EndFunc


While 1
  Sleep(100)  ; Idle around
WEnd

Share this post


Link to post
Share on other sites

Try this:....

GUICtrlRead, Of course, totally forgot. Ty.


My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

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