Sign in to follow this  
Followers 0
ulti

gui is not refreshing

3 posts in this topic

my script works fine until i add a back ground image buttons then dont show i click where they should be. i have tried placing in different parts of the script and it dose not seam to help

#include <GUIConstants.au3>
#include <GDIPlus.au3>
#include <WinAPI.au3>
#include <GUIConstants.au3>
#include <Constants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#Include <GuiListView.au3>

Opt('GUIEventOptions',0)
Opt('TrayOnEventMode',1)
Opt('TrayMenuMode',1)

AutoItSetOption("WinTitleMatchMode", 4)

Global $handle = WinGetHandle("classname=GxWindowClassD3d")
Global $show = 0, $Join = 0x6a0706, $Enter = 0xEE1400, $Killer = ""

HotKeySet("{F9}", "Start")

$Form1_1 = GUICreate("BG-Bot Elite", 471, 300, -1, -1)

$WSG = GUICtrlCreateButton("Warsong Gulch", 8, 32, 110, 40, 0)
GUICtrlSetFont(-1, 10, 400, 0, "folkard")
GUICtrlSetColor (-1, 0x571B7e)
$AV = GUICtrlCreateButton("Alterac Valley", 122, 32, 110, 40, 0)
GUICtrlSetFont(-1, 10, 400, 0, "folkard")
GUICtrlSetColor (-1, 0x571B7e)
$AB = GUICtrlCreateButton("Arathi Basin", 237, 32, 110, 40, 0)
GUICtrlSetFont(-1, 10, 400, 0, "folkard")
GUICtrlSetColor (-1, 0x571B7e)
$EOTS = GUICtrlCreateButton("Eye of the Storm", 351, 32, 110, 40, 0)
GUICtrlSetFont(-1, 10, 400, 0, "folkard")
GUICtrlSetColor (-1, 0x571B7e)

$click2 = GUICtrlCreateButton("Auto swing ", 8, 230, 110, 40, 0)
GUICtrlSetFont(-1, 10, 400, 0, "folkard")
GUICtrlSetColor (-1, 0x571B7e)
$click3 = GUICtrlCreateButton("Anti AFK", 122, 230, 110, 40, 0)
GUICtrlSetFont(-1, 10, 400, 0, "folkard")
GUICtrlSetColor (-1, 0x571B7e)
$click4 = GUICtrlCreateButton("Class Ability", 237, 230, 110, 40, 0)
GUICtrlSetFont(-1, 10, 400, 0, "folkard")
GUICtrlSetColor (-1, 0x571B7e)
$mouseclks = GUICtrlCreateButton("Auto Mouse", 351, 230, 110, 40, 0)
GUICtrlSetFont(-1, 10, 400, 0, "folkard")
GUICtrlSetColor (-1, 0x571B7e)
GUICtrlCreatePic("C:\Users\ryan\Desktop\aut\UI\gui back.jpg", 0, 0, 471, 300) <---------- HERE


$Title = GUICtrlCreateLabel("-Select Auto follow Style-", 108, 8, 298, 19)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetFont(-1, 14, 800, 0, "folkard")
GUICtrlSetColor (-1, 0x00FF00)
$Title2 = GUICtrlCreateLabel("-Select other Mods-",145 , 280, 298, 19)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetFont(-1, 14, 800, 0, "folkard")
GUICtrlSetColor (-1, 0x00FF00)

GUISetState(@SW_hide)


While 1
    Sleep(20)
WEnd

Func Big_GUI()
    GUISetState(@SW_SHOW, $Form1_1)
    While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
            Case $GUI_EVENT_CLOSE
                ExitLoop
            Case $WSG
                 If ProcessExists("muti folo ai.exe") Then
                    ProcessClose("muti folo ai.exe")
                    GUICtrlSetData($WSG, "Warsong Gulch")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)
                Else
                    Run("muti folo ai.exe")
                    GUICtrlSetData($WSG, "Turn off WSG")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)  
                EndIf
            Case $AV
                 If ProcessExists("av folo ai.exe") Then
                    ProcessClose("av folo ai.exe")
                    GUICtrlSetData($AV, "Alterac Valley")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)
                Else
                    Run("av folo ai.exe")
                    GUICtrlSetData($AV, "Turn off AV")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)
                EndIf
            Case $AB
                 If ProcessExists("antiafk.exe") Then
                    ProcessClose("antiafk.exe")
                    GUICtrlSetData($AB, "Arathi Basin")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)
                Else
                    Run("antiafk.exe")
                    GUICtrlSetData($AB, "Turn off AB")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)
                EndIf
            Case $EOTS
                 If ProcessExists("muti folo ai.exe") Then
                    ProcessClose("muti folo ai.exe")
                    GUICtrlSetData($EOTS, "Eye of the Storm")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)
                Else
                    Run("muti folo ai.exe")
                    GUICtrlSetData($EOTS, "Turn off EOTS")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)
                EndIf
            Case $click2
                 If ProcessExists("ck 2 ato swng.exe") Then
                    ProcessClose("ck 2 ato swng.exe")
                    GUICtrlSetData($click2, "Auto Swing")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)
                Else
                    Run("ck 2 ato swng.exe")
                    GUICtrlSetData($click2, "Turn off A Swing")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)
                EndIf
            Case $click3
                If ProcessExists("antiafk.exe") Then
                    ProcessClose("antiafk.exe")
                    GUICtrlSetData($click3, "Anti AFK")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)
                Else
                    Run("antiafk.exe")
                    GUICtrlSetData($click3, "Turn off AFK")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)
                EndIf
            Case $click4
                 If ProcessExists("class sp atack.exe") Then
                    ProcessClose("class sp atack.exe")
                    GUICtrlSetData($click4, "Class Ability")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)
                Else
                    Run("class sp atack.exe")
                    GUICtrlSetData($click4, "Turn off Class A")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)
                EndIf                
            Case $mouseclks
                 If ProcessExists("click mouse.exe") Then
                    ProcessClose("click mouse.exe")
                    GUICtrlSetData($mouseclks, "Auto Mouse")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)
                Else
                    Run("click mouse.exe")
                    GUICtrlSetData($mouseclks, "Turn off Mouse")
                    GUICtrlSetFont(-1, 8, 400, 0, "folkard")
                    GUICtrlSetColor (-1, 0x571B7e)
                EndIf
                
            Case $Title
            Case $Title2
                
        EndSwitch
    WEnd
    GUISetState(@SW_HIDE, $Form1_1)
EndFunc  

Func start()
    WinSetState($handle, "", @SW_SHOW)
    WinSetState($handle, "", @SW_SHOWMAXIMIZED)
    Big_GUI()
    While 1
        $show = 0
        Join()
        If $show > 0 Then ExitLoop
    WEnd
EndFunc 

Func join()
    ProcessClose ( "muti folo ai.exe")
    ProcessClose ( "av folo ai.exe")
    ProcessClose ( "click mouse.exe")
    ProcessClose ( "class sp atack.exe")
    ProcessClose ( "antiafk.exe")
    ProcessClose ( "ck 2 ato swng.exe")
Exit
EndFunc

doses some know why thisw is happerning

Share this post


Link to post
Share on other sites



Move GUICtrlCreatePic() right below $Form1_1 = GUICreate() then add GUICtrlSetState(-1, $GUI_DISABLE). You need to disable the background picture so the other controls will work.

$Form1_1 = GUICreate("BG-Bot Elite", 471, 300, -1, -1)
GUICtrlCreatePic("C:\Users\ryan\Desktop\aut\UI\gui back.jpg", 0, 0, 471, 300) ;<---------- HERE
GUICtrlSetState(-1, $GUI_DISABLE)

AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

Share this post


Link to post
Share on other sites

Move GUICtrlCreatePic() right below $Form1_1 = GUICreate() then add GUICtrlSetState(-1, $GUI_DISABLE). You need to disable the background picture so the other controls will work.

$Form1_1 = GUICreate("BG-Bot Elite", 471, 300, -1, -1)
GUICtrlCreatePic("C:\Users\ryan\Desktop\aut\UI\gui back.jpg", 0, 0, 471, 300) ;<---------- HERE
GUICtrlSetState(-1, $GUI_DISABLE)
you just beet me to it thanks for the help appreciate it but i just figured it out came back to post whare i went rong

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