kazhkaz Posted May 2, 2006 Share Posted May 2, 2006 Hello I need help expandcollapse popup#include <GUIConstants.au3> GUICreate("My GUI Tab") ; will create a dialog box that when displayed is centered GUISetBkColor(0x00E0FFFF) GUISetFont(9, 300) $tab=GUICtrlCreateTab (10,10, 200,100) $tab0=GUICtrlCreateTabitem ("Kaina") GUICtrlCreateLabel ("Kaina", 30,80,50,20) $tab0OK=GUICtrlCreateButton ("OK", 20,50,50,20) $text=WinGetText("My GUI Tab", " $tab0input=GUICtrlCreateInput ( message, 80,50,70,20) $tab1=GUICtrlCreateTabitem ( "Preke") GUICtrlCreateLabel ("Preke", 30,80,50,20) $tab1combo=GUICtrlCreateCombo ("", 20,50,60,40) GUICtrlSetData(-1,"SSX|BSPSX", "SSX"); default Jon $tab1OK=GUICtrlCreateButton ("OK", 80,50,50,20) $tab2=GUICtrlCreateTabitem ("Zinute") GUICtrlSetState(-1,$GUI_SHOW); will be display first GUICtrlCreateLabel ("label2", 30,80,50,20) $tab2OK=GUICtrlCreateButton ("OK2", 140,50,50) GUICtrlCreateTabitem (""); end tabitem definition GUICtrlCreateLabel ("label3", 20,130,50,20) GUISetState () ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Its is taken from autoit help file but with a few modifications the problem is that i dont know what to do that the information added in marked areas will be written in another command for example If I write in a Input window "hello" $tab0input=GUICtrlCreateInput ( "Hello", 80,50,70,20) then in this command the same text should be written: Send("hello") this is my script: Func OpenShop() While 1 Send("/stand") Send("{ENTER}") Sleep(800) Send("{F11}") Sleep(800) MouseClick("left", 524, 61, 2) Sleep(800) Send("hello") Send("{ENTER}") Sleep(800) MouseClick("left", 580, 340) Sleep(800) MouseClick("left", 361, 331) Sleep(800) MouseClick("left", 587, 383) Send("BSPSD 64 ") Send("{ENTER}") Sleep(800) MouseClick("left", 666, 384) Sleep(900000) WEnd EndFunc Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted May 2, 2006 Share Posted May 2, 2006 check out guictrlread() 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