Erbit Posted July 27, 2006 Share Posted July 27, 2006 #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 More sharing options...
rakudave Posted July 27, 2006 Share Posted July 27, 2006 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 Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
Erbit Posted July 27, 2006 Author Share Posted July 27, 2006 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 More sharing options...
Erbit Posted July 27, 2006 Author Share Posted July 27, 2006 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 More sharing options...
rakudave Posted July 28, 2006 Share Posted July 28, 2006 i also had a hard time understanding this, but that's just the way it works... ^^ Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
Earthquake Posted July 28, 2006 Share Posted July 28, 2006 Beware with WoW Scripts... They deleted ! 59.000 ! Accounts cause they used scripts and such stuff... Yes, I am a noob! But at least I try to learn!Moddingtech.de - Home of the german Modding-Scene! Link to comment Share on other sites More sharing options...
Minion Posted July 28, 2006 Share Posted July 28, 2006 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 More sharing options...
Erbit Posted July 28, 2006 Author Share Posted July 28, 2006 (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 July 28, 2006 by Erbit Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now