Jump to content
Sign in to follow this  
Generator

Button won't create...

Recommended Posts

Generator

I have a GUI and the last button which is the Exit Button won't create, any idea why?

Here is the code that's needed.

#include<GUIConstants.au3>
#include<GUIStatusbar.au3>
#include<GUIList.au3>
#include<GUICombo.au3>
#NoTrayIcon
Opt("GUIOnEventMode",1)
$HideIt=False
$HotKeyToggleHide=False
$mainfrm=GUICreate("Hider Pro","200","350",-1,-1)
$menufile=GUICtrlCreateMenu("File")
$menufileitem=GUICtrlCreateMenuitem("Exit",$menufile)
$menutrans=GUICtrlCreateMenu("Trans Set")
$menutransitem1=GUICtrlCreateMenuItem("75% Transparent",$menutrans)
$menutransitem2=GUICtrlCreateMenuItem("50% Transparent",$menutrans)
$menutransitem3=GUICtrlCreateMenuItem("25% Transparent",$menutrans)
$menutransitem4=GUICtrlCreateMenuItem("Restore Transparent",$menutrans)
$menuopt=GUICtrlCreateMenu("Options")
$menuoptitem=GUICtrlCreateMenuitem("Toggle Hide",$menuopt)
$menuoptitem1=GUICtrlCreateMenuItem("Help",$menuopt)
$labelprocess=GUICtrlCreateLabel("Process Name",5,2,80,20,$SS_CENTER)
$labelstate=GUICtrlCreateLabel("State",110,2,70,20,$SS_CENTER)
$listpro=GUICtrlCreateList("",2,22,90,200,$LBS_SORT+$WS_VSCROLL+$WS_BORDER )
$vislabel=GUICtrlCreateLabel("Unknown State",100,25,90,60,$SS_CENTER)
$checkbutton=GUICtrlCreateButton("Check State",100,80,90,30,$BS_CENTER+$BS_VCENTER)
$refreshbutton=GUICtrLCreateButton("Refresh List",100,115,90,30,$BS_CENTER+$BS_VCENTER)
$setrealbutton=GUICtrlCreateButton("Set Real Win",100,150,90,30,$BS_CENTER+$BS_VCENTER)
$setfakebutton=GUICtrlCreateButton("Set Fake Win",100,185,90,30,$BS_CENTER+$BS_VCENTER)
$HotkeyEnDis=GUICtrlCreateButton("Enable/Disable Hide Hotkey",2,225,196,30,$BS_CENTER+$BS_VCENTER)
$Restoreal=GUICtrlCreateButton("Restore All Hideen Windows",2,260,196,30,$BS_CENTER+$BS_VCENTER)
$SetOnTop=GUICtrlCreateButton("Set On Top",2,295,90,30,$BS_CENTER+$BS_VCENTER)
$ExitButton=GUICtrlCreateButton("Exit",100,330,90,30,$BS_CENTER+$BS_VCENTER)
GUISetState(@SW_SHOW)

While 1
    Sleep(1000)
WEnd

Thanks in advance.

:shocked:

Share this post


Link to post
Share on other sites
Valuater

change this

$ExitButton=GUICtrlCreateButton("Exit",100,330,90,30,$BS_CENTER+$BS_VCENTER)

to rhis

$ExitButton=GUICtrlCreateButton("Exit",100,295,90,30,$BS_CENTER+$BS_VCENTER)

8)


NEWHeader1.png

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  

×