Jump to content

Inputbox read/write?


zakoz
 Share

Recommended Posts

hello

i've come with a question - is it possible to use inputbox as outputbox as well? basicly i want my script to read from a variable and then return it in a inputbox and if i want to, change the text returned and save it back to variable.

basicly i want GUI to look like this: an inputbox and checkbox, if checkbox is ticked then inputbox will become visible with in/out operations - read from a variable and if changed by user - save to a variable.

i have also problem with hide/show, it work only once, i mean if tick/untick checkbox for the first time, inputbox will appear and disappear but then it will stay either visible or unvisible (depends if inputbox was visible from the start or not)

Case $msg = $merch
If BitAnd(GUICtrlRead($merch),$GUI_CHECKED) Then

$Input1 = GUICtrlSetState($input1, $GUI_SHOW)

If BitAnd(GUICtrlRead($merch),$GUI_UNCHECKED) Then

$Input1 = GUICtrlSetState($input1, $GUI_HIDE)
Link to comment
Share on other sites

If it is data (a string or number) you want to input use GUICtrlSetData($Handle,$Data)

[font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size]
Link to comment
Share on other sites

You have actually tried this?

Case $msg = $merch
    If BitAnd(GUICtrlRead($merch),$GUI_CHECKED) Then
        GUICtrlSetState($input1, $GUI_SHOW)
    ElseIf BitAnd(GUICtrlRead($merch),$GUI_UNCHECKED) Then
        GUICtrlSetState($input1, $GUI_HIDE)
    EndIf

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

If it is data (a string or number) you want to input use GUICtrlSetData($Handle,$Data)

bingo! thank you very much :)

my first problem with inputbox got fixed as well, just after i added tabs, hiding/showing input started to work properly.

Edited by zakoz
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...