Roki Posted January 18, 2010 Share Posted January 18, 2010 Hi, i am beginer there, and i make something, but i have some difficult...Well there's my scriptexpandcollapse popup#include <GUIconstants.au3> Opt("GUICoordMode", 1) GUICreate("Tibia Mega MageBomb", 400,280) GUISetBkColor (0xE0454545) ; Create the controls $button_1 = GUICtrlCreateButton ("Add", 30, 20, 60, 30) $button_2 = GUICtrlCreateButton ("Delete", 30, 50, 60, 30) $group_1 = GUICtrlCreateGroup ("Runes", 30, 90, 165, 160) GUIStartGroup() ; creates the grouped radio controls. $radio_1 = GUICtrlCreateRadio ("SD Rune", 50, 120, 70, 20) ; in Quotes, the &0, creates an under-lined 0. $radio_2 = GUICtrlCreateRadio ("HMM Rune", 50, 150, 60, 20) $radio_3 = GUICtrlCreateRadio ("LMM Rune", 50, 180, 60, 20) GUIStartGroup() $radio_4 = GUICtrlCreateRadio ("ICI Rune", 120, 120, 70, 20) $radio_5 = GUICtrlCreateRadio ("UH Rune", 120, 150, 60, 20) $radio_6 = GUICtrlCreateRadio ("IH Rune", 120, 180, 60, 20) GUIStartGroup() $input_1 = GUICtrlCreateInput ("Account Name", 200, 20, 160, 30) $input_2 = GUICtrlCreateInput ("Password", 200, 60, 160, 30) $input_3 = GUICtrlCreateInput ("Character Name", 200, 100, 160, 30) $input_3 = GUICtrlCreateInput ("", 200, 140, 160, 110) ; Set the defaults (radio buttons clicked, default button, etc) GUICtrlSetState($radio_1, $GUI_CHECKED) GUICtrlSetState($button_1, $GUI_FOCUS + $GUI_DEFBUTTON) ; Initiate our variables that we will use to keep track of radio events. $radioval1 = 0 ; We will assume 0 = first radio button selected, 2 = last button. GUISetState () ; In this message loop we use variables to keep track of changes to the radios, another ; way would be to use GUICtrlRead() at the end to read in the state of each control. ; Both methods are equally valid. While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $button_1 MsgBox(0, "Button", "Radio " & $radioval1 & @LF & "Radio " & Chr($radioval2 + Asc("A")) & @LF & GUICtrlRead($input_1) & @LF & GUICtrlRead($input_2)) Case $msg = $radio_1 OR $msg = $radio_2 OR $msg = $radio_3 $radioval1 = $msg - $radio_1 Case $msg = $radio_4 OR $msg = $radio_5 OR $msg = $radio_6 $radioval2 = $msg - $radio_4 EndSelect WEndAnd it looks likeNow can someone tell what should i change, so he will mark just one Rune, not two, and when i press add can he Add account name,password,character name and rune to 4th Input? Link to comment Share on other sites More sharing options...
jvanegmond Posted January 18, 2010 Share Posted January 18, 2010 (edited) Tibia rule 3C is specifically forbidden this kind of game abuse. We will not assist you in cheating, therefore we will not give you any help. Perhaps next time, try to not make it so obvious you are violating terms of service and are asking others to help you break them.Edit: For the people who are curious what he was trying to do: Edited January 18, 2010 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 18, 2010 Moderators Share Posted January 18, 2010 Enough said with Manadars post. Locking topic. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Recommended Posts