Jump to content
Sign in to follow this  
8218

why is this script not working?

Recommended Posts

8218

Everytime i run this script it come with th error

Line 5 (File "C:\AutoIT\WoW-Realmchancer.au3

GUISetBkColor(000000)

^ERROR

Error: Unknown function name

Code:

;the interface

GUICreate("Realm Changer By 1337", 210, 80, (@DesktopWidth - 449) / 2, (@DesktopHeight - 338) / 2)

GUISetBkColor(000000)

;buttons
Global $txt
$txtin = GUICtrlCreateEdit("The New Realm Name", 5, 30, 200, 20)
$finish = GUICtrlCreateButton("Change Realm", 50, 50, 100, 20)
$wtf = FileOpenDialog("Find Your realmlist.wtf file in your wow Folder", @DesktopDir, "WTF Files (*wtf)", 1 + 4 )
If Not @error Then
Else
Exit
EndIf
$line = FileReadLine($wtf)
$txtin2 = GUICtrlCreateEdit($line, 5, 5, 200, 20)


;the big thing
GUISetState()
While 1
   $msg = GUIGetMsg()
   Select
      Case $msg = -3 
         ExitLoop
      Case $msg = $finish
         $txt = GUIRead($txtin)
         FileDelete($wtf)
         FileWriteLine($wtf, "set realmlist " & $txt)
         MsgBox(0, "Success", "your realm is now changed")
         $line = FileReadLine($wtf)
         $txtin2 = GUICtrlCreateEdit($realmlist, 5, 5, 200, 20)
   EndSelect
Wend

Share this post


Link to post
Share on other sites
layer

Everytime i run this script it come with th error

Line 5 (File "C:\AutoIT\WoW-Realmchancer.au3

GUISetBkColor(000000)

^ERROR

Error: Unknown function name

Code:

;the interface

GUICreate("Realm Changer By 1337", 210, 80, (@DesktopWidth - 449) / 2, (@DesktopHeight - 338) / 2)

GUISetBkColor(000000)

;buttons
Global $txt
$txtin = GUICtrlCreateEdit("The New Realm Name", 5, 30, 200, 20)
$finish = GUICtrlCreateButton("Change Realm", 50, 50, 100, 20)
$wtf = FileOpenDialog("Find Your realmlist.wtf file in your wow Folder", @DesktopDir, "WTF Files (*wtf)", 1 + 4 )
If Not @error Then
Else
Exit
EndIf
$line = FileReadLine($wtf)
$txtin2 = GUICtrlCreateEdit($line, 5, 5, 200, 20)
;the big thing
GUISetState()
While 1
   $msg = GUIGetMsg()
   Select
      Case $msg = -3 
         ExitLoop
      Case $msg = $finish
         $txt = GUIRead($txtin)
         FileDelete($wtf)
         FileWriteLine($wtf, "set realmlist " & $txt)
         MsgBox(0, "Success", "your realm is now changed")
         $line = FileReadLine($wtf)
         $txtin2 = GUICtrlCreateEdit($realmlist, 5, 5, 200, 20)
   EndSelect
Wend

<{POST_SNAPBACK}>

because, GUISetBkColor(000000) should be GUISetBkColor (0x000000)

FootbaG

Share this post


Link to post
Share on other sites
this-is-me

autoit-v3.0.103.exe


Who else would I be?

Share this post


Link to post
Share on other sites
8218

autoit-v3.0.103.exe

<{POST_SNAPBACK}>

thx u mate !! ive found out !

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  

×