Jump to content

GUI Button help.


Erbit
 Share

Recommended Posts

#include <GUIConstants.au3>

;Varaibles
$LB = Chr(13)

; Otp
Opt("GUIOnEventMode", 1)

;GUI
$mainwindow = GUICreate("World of Warcraft Starter", 300, 200)
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")
GUICtrlCreateLabel("Welcome to the World of Warcraft Starter (WoWS)." & $LB & "Please enter your Username and Password below." & $LB & "Click Save and Run upon completeion.", 5, 5, 299, 200)
$savebutton = GUICtrlCreateButton("Save", 150, 150, 60)
GUICtrlSetOnEvent($savebutton, "SAVEButton")
$runbutton = GUICtrlCreateButton("Run", 220, 150, 60)
GUICtrlSetOnEvent($runbutton, "RUNButton")
GUISetState()

;Loops
While 1
    sleep(2000)
WEnd

;Functions
Func SAVEButton()
    Exit
EndFunc
Func RUNButton()
    Run("notepad.exe")
EndFunc
Func CLOSEClicked()
    Exit
EndFunc

When ever I run that code above, the two buttons "Save" and "Run" are not clickable (If that's even a word) but if anyone could help, I'd be greatful. Thanks.

Link to comment
Share on other sites

the explanation is quite simple:

the text overlapps the buttons.

making the textarea smaller will result in:

#include <GUIConstants.au3>

;Varaibles
$LB = Chr(13)

; Otp
Opt("GUIOnEventMode", 1)

;GUI
$mainwindow = GUICreate("World of Warcraft Starter", 300, 200)
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")
GUICtrlCreateLabel("Welcome to the World of Warcraft Starter (WoWS)." & $LB & "Please enter your Username and Password below." & $LB & "Click Save and Run upon completeion.", 5, 5, 150, 200)
$savebutton = GUICtrlCreateButton("Save", 150, 150, 60)
GUICtrlSetOnEvent($savebutton, "SAVEButton")
$runbutton = GUICtrlCreateButton("Run", 220, 150, 60)
GUICtrlSetOnEvent($runbutton, "RUNButton")
GUISetState()

;Loops
While 1
    sleep(2000)
WEnd

;Functions
Func SAVEButton()
    Exit
EndFunc
Func RUNButton()
    Run("notepad.exe")
EndFunc
Func CLOSEClicked()
    Exit
EndFunc
Link to comment
Share on other sites

the explanation is quite simple:

the text overlapps the buttons.

making the textarea smaller will result in:

#include <GUIConstants.au3>

;Varaibles
$LB = Chr(13)

; Otp
Opt("GUIOnEventMode", 1)

;GUI
$mainwindow = GUICreate("World of Warcraft Starter", 300, 200)
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")
GUICtrlCreateLabel("Welcome to the World of Warcraft Starter (WoWS)." & $LB & "Please enter your Username and Password below." & $LB & "Click Save and Run upon completeion.", 5, 5, 150, 200)
$savebutton = GUICtrlCreateButton("Save", 150, 150, 60)
GUICtrlSetOnEvent($savebutton, "SAVEButton")
$runbutton = GUICtrlCreateButton("Run", 220, 150, 60)
GUICtrlSetOnEvent($runbutton, "RUNButton")
GUISetState()

;Loops
While 1
    sleep(2000)
WEnd

;Functions
Func SAVEButton()
    Exit
EndFunc
Func RUNButton()
    Run("notepad.exe")
EndFunc
Func CLOSEClicked()
    Exit
EndFunc
Thanks man.
Link to comment
Share on other sites

Do you know if there's anyway if having the textbox go all the way accross without running into the buttons? Becuse it seems weird that the textbox gets in the way of the buttons justbecuse of how they are posistioned.

Link to comment
Share on other sites

Not really scripts, but rather programs that *inject* code into the game. Things like speedhacks and such. A simple log-in script shouldn't get you banned, but it's a possibility that it just might.

Oh, and blizzard can't delete accounts. Technically, your character is your intellectual property, as is your account. The accounts are still there; you just can't access them.

Link to comment
Share on other sites

All im trying to do is make a program that starts the game, types in username and password, and connects me. And once in game, the program terminates it's self. I don't think i'll be banned.

Edited by Erbit
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...