Sign in to follow this  
Followers 0
Erbit

GUI Button help.

8 posts in this topic

#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.

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0