Jump to content

Recommended Posts

Posted

I am fairly new to GUI's and have 0 clue what I'm doing but currently I want to create a start button. I want this start button to read off certain information from a Combo box, so the GUI requires me to press start and preforms the actions.

The current script I have from messing around with KODA

 

hotkeyset("{f1}","myexit")

#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\dominic\desktop\iskguigood.kxf
$Star = GUICreate("Start", 261, 267, 737, 230)
$Label1 = GUICtrlCreateLabel("ISK Slayer Bot", 0, 0, 260, 34)
GUICtrlSetFont(-1, 24, 800, 0, "Fixedsys")
GUICtrlSetBkColor(-1, 0x80FFFF)
Global $Start = GUICtrlCreateButton("Start", 8, 168, 241, 33)
Global $Exit = GUICtrlCreateButton("Exit", 8, 208, 241, 33)
Global $Task = GUICtrlCreateCombo("Task", 56, 64, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "test|test2")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

        case $Start
            


        Case $Exit
            Exit



    EndSwitch
WEnd



func test()
    LC(1000,500)

   endfunc



func test2($x, $y)
 mouseclick("left", $x, $y, 1, 1)
endfunc



   Func myExit()
   Exit
Endfunc

I have 0 clue for what I would put in the $start case to make it read off my selection for the combo boxes. Any help would be greatly appreciated thanks!

Posted

Still a starter? what type of game is this... :)

Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare.

Posted

The game is runescape more so private servers. I realize that LC isn't defined as a FUNC but 0 clue how to call from a combo box.

  • Developers
Posted

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 - and then you will understand why you will get no help and this thread will now be locked.

See you soon with a legitimate question I hope.

The Moderation team

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Guest
This topic is now closed to further replies.
×
×
  • Create New...