Sign in to follow this  
Followers 0
IronSatan

Creating variables with input from forms.

2 posts in this topic

Ok so.....pretty awesome form designed. I got the start button to work. How do I get the password and account fields to populate with what the user enters into the form. I cant find anything in the wiki. Most of its at the bottom.

#include
#include
#include
#include
#include
#include
#include
#include
Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=c:\users\ironsatan\desktop\autoit\forms\pvp bot.kxf
Global $Form1_1 = GUICreate("Rotation Bot EXTREME", 627, 356, 183, 159)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1_1Close")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1_1Minimize")
GUISetOnEvent($GUI_EVENT_MAXIMIZE, "Form1_1Maximize")
GUISetOnEvent($GUI_EVENT_RESTORE, "Form1_1Restore")
$ToolBar1 = _GUICtrlToolbar_Create($Form1_1, BitOR($TBSTYLE_FLAT,$WS_VISIBLE,$WS_CHILD,$WS_BORDER,$WS_CLIPSIBLINGS))
_GUICtrlToolbar_AddButton($ToolBar1, 0, 0, 0)
_GUICtrlToolbar_AddButton($ToolBar1, 0, 1, 0)
_GUICtrlToolbar_AddButton($ToolBar1, 0, 2, 0)
Global $StatusBar = _GUICtrlStatusBar_Create($Form1_1)
_GUICtrlStatusBar_SetMinHeight($StatusBar, 33)
Global $Label1 = GUICtrlCreateLabel("Rotation Bot EXTREME", 0, 56, 603, 25, BitOR($SS_CENTER,$WS_BORDER))
GUICtrlSetFont($Label1, 12, 800, 0, "MS Sans Serif")
GUICtrlSetOnEvent($Label1, "Label1Click")
Global $Button1 = GUICtrlCreateButton("Record After Fight", 0, 88, 91, 25)
GUICtrlSetTip($Button1, "Record after fight buffs")
GUICtrlSetOnEvent($Button1, "Button1Click")
Global $Button2 = GUICtrlCreateButton("Record on Death", 0, 120, 91, 25)
GUICtrlSetTip($Button2, "Record after death rotation")
GUICtrlSetOnEvent($Button2, "Button2Click")
Global $Button3 = GUICtrlCreateButton("Record Interupt", 0, 152, 91, 25)
GUICtrlSetTip($Button3, "record interupt sequence")
GUICtrlSetOnEvent($Button3, "Button3Click")
Global $Group1 = GUICtrlCreateGroup("Testing", 360, 208, 241, 97, BitOR($GUI_SS_DEFAULT_GROUP,$BS_CENTER,$WS_BORDER))
Global $Checkbox3 = GUICtrlCreateCheckbox("Test Rotation", 383, 223, 97, 17)
GUICtrlSetOnEvent($Checkbox3, "Checkbox3Click")
Global $Button4 = GUICtrlCreateButton("Test", 415, 255, 153, 33, -1, $WS_EX_STATICEDGE)
GUICtrlSetTip($Button4, "Test your Rotation")
GUICtrlSetOnEvent($Button4, "Button4Click")
GUICtrlCreateGroup("", -99, -99, 1, 1)
Global $Group2 = GUICtrlCreateGroup("Abilities", 96, 88, 257, 217, BitOR($GUI_SS_DEFAULT_GROUP,$BS_CENTER,$WS_BORDER), $WS_EX_TRANSPARENT)
Global $Input1 = GUICtrlCreateInput("Ability", 111, 103, 65, 21)
GUICtrlSetOnEvent($Input1, "Input1Change")
Global $Input2 = GUICtrlCreateInput("Ability", 111, 127, 65, 21)
GUICtrlSetOnEvent($Input2, "Input1Change")
Global $Input3 = GUICtrlCreateInput("Ability", 111, 151, 65, 21)
GUICtrlSetOnEvent($Input3, "Input1Change")
Global $Input4 = GUICtrlCreateInput("Ability", 111, 175, 65, 21)
GUICtrlSetOnEvent($Input4, "Input1Change")
Global $Input5 = GUICtrlCreateInput("Ability", 111, 199, 65, 21)
GUICtrlSetOnEvent($Input5, "Input1Change")
Global $Input6 = GUICtrlCreateInput("Ability", 111, 223, 65, 21)
GUICtrlSetOnEvent($Input6, "Input1Change")
Global $Input7 = GUICtrlCreateInput("Ability", 111, 247, 65, 21)
GUICtrlSetOnEvent($Input7, "Input1Change")
Global $Input8 = GUICtrlCreateInput("CD", 183, 103, 41, 21)
GUICtrlSetOnEvent($Input8, "Input8Change")
Global $Input9 = GUICtrlCreateInput("CD", 183, 127, 41, 21)
GUICtrlSetOnEvent($Input9, "Input9Change")
Global $Input10 = GUICtrlCreateInput("CD", 183, 151, 41, 21)
GUICtrlSetOnEvent($Input10, "Input10Change")
Global $Input11 = GUICtrlCreateInput("CD", 183, 175, 41, 21)
GUICtrlSetOnEvent($Input11, "Input11Change")
Global $Input12 = GUICtrlCreateInput("CD", 183, 199, 41, 21)
GUICtrlSetOnEvent($Input12, "Input12Change")
Global $Input13 = GUICtrlCreateInput("CD", 183, 223, 41, 21)
GUICtrlSetOnEvent($Input13, "Input13Change")
Global $Input14 = GUICtrlCreateInput("CD", 183, 247, 41, 21)
GUICtrlSetOnEvent($Input14, "Input14Change")
Global $Checkbox1 = GUICtrlCreateCheckbox("Buff", 239, 103, 49, 17)
GUICtrlSetOnEvent($Checkbox1, "Checkbox1Click")
Global $Checkbox2 = GUICtrlCreateCheckbox("Buff", 239, 127, 49, 17)
GUICtrlSetOnEvent($Checkbox2, "Checkbox2Click")
Global $Input21 = GUICtrlCreateInput("Hotkey", 295, 247, 41, 21)
GUICtrlSetOnEvent($Input21, "Input8Change")
Global $Input15 = GUICtrlCreateInput("Hotkey", 295, 103, 41, 21)
GUICtrlSetOnEvent($Input15, "Input8Change")
Global $Input16 = GUICtrlCreateInput("Hotkey", 295, 127, 41, 21)
GUICtrlSetOnEvent($Input16, "Input8Change")
Global $Input17 = GUICtrlCreateInput("Hotkey", 295, 151, 41, 21)
GUICtrlSetOnEvent($Input17, "Input8Change")
Global $Input18 = GUICtrlCreateInput("Hotkey", 295, 175, 41, 21)
GUICtrlSetOnEvent($Input18, "Input8Change")
Global $Input19 = GUICtrlCreateInput("Hotkey", 295, 199, 41, 21)
GUICtrlSetOnEvent($Input19, "Input8Change")
Global $Input20 = GUICtrlCreateInput("Hotkey", 295, 223, 41, 21)
GUICtrlSetOnEvent($Input20, "Input8Change")
GUICtrlCreateGroup("", -99, -99, 1, 1)
Global $Label2 = GUICtrlCreateLabel("Output", 360, 88, 244, 113, BitOR($SS_CENTER,$SS_SUNKEN,$WS_BORDER))
GUICtrlSetOnEvent($Label2, "Label2Click")
Global $Start = GUICtrlCreateButton("Start", 0, 272, 89, 33, BitOR($BS_DEFPUSHBUTTON,$BS_CENTER))
GUICtrlSetFont($Start, 8, 800, 0, "MS Sans Serif")
GUICtrlSetTip($Start, "Start the bot....")
GUICtrlSetOnEvent($Start, "StartClick")
Global $Password = GUICtrlCreateInput("Password", 8, 32, 193, 21)
GUICtrlSetOnEvent($Password, "PasswordChange")
Global $Account = GUICtrlCreateInput("Account", 240, 32, 169, 21)
GUICtrlSetOnEvent($Account, "AccountChange")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
Sleep(100)
WEnd

Func AccountChange()

EndFunc
Func Button1Click()

EndFunc
Func Button2Click()

EndFunc
Func Button3Click()

EndFunc
Func Button4Click()

EndFunc
Func Checkbox1Click()

EndFunc
Func Checkbox2Click()

EndFunc
Func Checkbox3Click()

EndFunc
Func Form1_1Close()

EndFunc
Func Form1_1Maximize()

EndFunc
Func Form1_1Minimize()

EndFunc
Func Form1_1Restore()

EndFunc
Func Input10Change()

EndFunc
Func Input11Change()

EndFunc
Func Input12Change()

EndFunc
Func Input13Change()

EndFunc
Func Input14Change()

EndFunc
Func Input1Change()

EndFunc
Func Input8Change()

EndFunc
Func Input9Change()

EndFunc
Func Label1Click()

EndFunc
Func Label2Click()

EndFunc
Func PasswordChange()

EndFunc

Func StartClick()
Run("C:\Users\IronSatan\Desktop\Molten WOW\WoW.exe")
WinWaitActive("World of Warcraft")
Sleep(1000)
Send($Account)
Send("{Tab}")
Send($Password)
Send("{ENTER}")
Sleep(7000)
Send("{ENTER}")

EndFunc

Share this post


Link to post
Share on other sites



IronSatan,

Welcome to the AutoIt forum. :)

Unfortunately you appear to have missed the Forum Rules on your way in. Please read them now - particularly the bit about not discussing game automation or login scripts - and then you will understand why you will get no help and this thread will now be locked. :naughty:

See you soon with a legitimate question I hope. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0