Milordzie Posted February 8, 2013 Share Posted February 8, 2013 hi i maked normal tray script. I want put in two functions value from the GUI box how i can do it ?this is code of my gui for insert data.#include #include #include #include #include #Region ### START Koda GUI section ### Form=c:\users\exmple\documents\form1_1.kxf $Form1_1 = GUICreate("Form1", 637, 334, 192, 124) $Time = GUICtrlCreateInput("Czas", 464, 80, 121, 21) $Key = GUICtrlCreateCombo("Klawisz", 464, 48, 169, 25) GUICtrlSetData(-1, "1|2|3|4|5|6|7|8|9|F1|F2|F3|F4|F5|F6|F7|F8|F9") $Pic1 = GUICtrlCreatePic("C:\Users\Exmple\Downloads\08a.jpg", -8, -8, 644, 340) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEndAnd this is code of appropriate script.i want to put in sleep value from $Timeand put value of $Key in ControlSend("Lineage II", "", "", "{here DOWN}")Global $Paused = False SoundPlay(@WindowsDir & "\media\Windows Ding.wav", 0) HotKeySet("{PAUSE}", "TogglePause") TogglePause() While 1=1 ControlSend("Lineage II", "", "", "{1 DOWN}") Sleep($Czas) WEnd Func TogglePause() SoundPlay(@WindowsDir & "\media\Heritage\Windows Error.wav", 0) $Paused = Not $Paused While $Paused Sleep(1000) ToolTip('Script is "Paused"', 0, 0) WEnd ToolTip("") EndFunc ;==>TogglePause While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 9, 2013 Moderators Share Posted February 9, 2013 Milordzie,In your first thread I was suspicious of your use of "xxx" as a title for your controls and suggested that you read the Forum rules. I see now that you are creating a gamebot for "Lineage II" and that I was completely justified. Please read those Forum rules (the link is also at bottom right of each page) - particularly the bit about not discussing game automation - before you post again. Thread locked. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts