Zanaj Posted October 5, 2012 Share Posted October 5, 2012 Heeey guys. I am still new to autoit and it's still a whole new code world for me, but I like it. Oh well. What I need help with is a very basic thing. I don't know if it's me who overlooked it but I couldn't find it at the help nor google o: !... Ah well the problem is something as basic as getting what standing in the textbox. Aswell as what is currently selected in a listbox. Thankies in advise~ Regards Nicki/Zanaj~ :3 Link to comment Share on other sites More sharing options...
Danyfirex Posted October 5, 2012 Share Posted October 5, 2012 Look: expandcollapse popup#include <GUIConstantsEx.au3> Example() Func Example() Local $MESSAGE = "The following buttons have been clicked" Local $add, $clear, $mylist, $close, $msg GUICreate("My GUI list") ; will create a dialog box that when displayed is centered $add = GUICtrlCreateButton("Add", 64, 32, 75, 25) $clear = GUICtrlCreateButton("Clear", 64, 72, 75, 25) $textbox=GUICtrlCreateInput("",60,200,200,22) $mylist = GUICtrlCreateList("buttons that have been clicked", 176, 32, 121, 97) GUICtrlSetLimit(-1, 200) ; to limit horizontal scrolling GUICtrlSetData(-1, $MESSAGE) $button = GUICtrlCreateButton("get for textbox", 64, 160, 175, 25) GUISetState() $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() Select Case $msg = $add GUICtrlSetData($mylist, "You clicked button No1|") Case $msg = $clear GUICtrlSetData($mylist, "") Case $msg = $button ;Simply this. guictrlsetdata($textbox,guictrlread($mylist)) EndSelect WEnd EndFunc ;==>Example Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now