Jump to content

Make And Fide Menu


 Share

Recommended Posts

Hello,

now i made my second program.

Now i want to make another program.

i try to explain what i want to do.

I want to make something that can help you in an game.

it is not an cheat ore something.

I would like to help noobs help control there consule.

whit the consule and a password you can control the game server.

Now do i want to make something that waits untill i pressed a key you do that whit this:

HotKeySet('{Numpad0}', 'Menu')

While 1

Sleep(1000)

WEnd

Func Menu()

Send("`/rcon login ")

EndFunc

Now do i want to make an menu that when i am playing and i want to do something i press the 0 key and the menu come's in the game!! so i do not get back to windows.

Now you get an menu where you can control things.

Now when you press the 0 for the second time the menu must go away yo do not see it anymore.

When you press the 0key again u must see it ect...

Now do i want to make an menu that you can see and you can scroll in it whit the numpad arrow keys.

Can someone help me whit the basic script like menu comes and goes and some menu items in it?

Thanks

Erik

EDIT:

title is wrong:P sorry

Edited by Erik.

I little problem, hard to find and fix

Link to comment
Share on other sites

are you saying you want a GUI? with some stuff on it youll have to define what stuff you want on the menu

#include <GUIConstants.au3>
; == GUI generated with Koda ==
$gui = GUICreate("TITLE", 179, 74, 192, 125)
$Checkbox = GUICtrlCreateCheckbox("ACheckbox1", 16, 24, 17, 17)
GUICtrlCreateLabel("Enable Login Hotkey", 48, 24, 103, 17)
GUISetState(@SW_SHOW)

Do
guisetstate()
$msg = GUIGetMsg ()
$checked = Guictrlread($Checkbox)
If $checked = $GUI_CHECKED Then
HotKeySet('{Numpad0}', 'Menu')
else 
    sleep(100)
endif

until $msg = $GUI_EVENT_CLOSE
func menu()
    Send("`/rcon login ")
endfunc

??? like that

Edited by thatsgreat2345
Link to comment
Share on other sites

Hello,

Thanks for posting.

What i mean is this:

There is an program x-fire

that is a program where you can chat whit you firends.

like msn.

but it's only chat.

it is special made for game's

When you are gaming and someone types to you ho here a sound.

you also see in front of the game not in windows.

In front of the game a chat window.

When you want to chat whit him you press scrool lock+x so you get that chat window.

Wen you press it again your chat window is gone and you can play.

But you do not gat back to windows.

Thats what i want.

When you press an key i want that an window come's and you get a little menu where you can press things you want to set for the game.

When you have set it you press a key and it is gone.

Whit a key i mean q ore something.

Can you help me whit it?

I little problem, hard to find and fix

Link to comment
Share on other sites

Sorry my englis his not so well,

OKej

I want to make an program that help noob whit controling consule of a game.

I want that when i press at a key i get a menu in front of the game.

So i will still see the game NOT minimize the game.

I do not want to go back to windows.

i hope thats clear?

Good.

There is a program named X-fire.

That program is a chat program like msn.

it is made for game's.

Whem someone types to you, you will here a sound and you can push scrolllock+x to get a window in front of the game.

So the game will not me minimize and you can type and press enter to send it.

and when you press scrolllock+x again the window goes away.

Clear?

i used x-fire as a example.

I hope it is clear now?

you can add me whit msn so it goed faster?

pilot40onair@hotmail.com

Erik

I little problem, hard to find and fix

Link to comment
Share on other sites

Hello,

Fine you are online:P

Okej,

You can compare it whit a cheat.

you press a key and i menu come's you can set thins and you press key and it's gone and the setings are apply

i do not want no sounds ore something.

A menu whit buttons

The menu goed help noobs whit controling there server

Edited by Erik.

I little problem, hard to find and fix

Link to comment
Share on other sites

Lol,

you can control the game whit consule.

you must know al the commando's of the consule.

Some people do not control them so i want to make a program that make it easy to control the consule.

Could you help me?

Made a script whit one button and something that i get in front of the game?

When you press a button it only type's the commando into the consule.

i am online now at msn:P

Edited by Erik.

I little problem, hard to find and fix

Link to comment
Share on other sites

#include <Guiconstants.au3>
Hotkeyset("\","popup")
$menu = GUicreate("menu", 739,44,0,0)
$group1 = Guictrlcreategroup("",0,0,737,41) 
$login = Guictrlcreatebutton("Login",8,8,49,25)
Guictrlsetstate(-1,$gui_DISABLE)
$kick = Guictrlcreatebutton("Kick",64,8,49,25)
$restart = Guictrlcreatebutton("Restart",120,8,49,25)
$restartmap = Guictrlcreatebutton("Restart Map",176,8,73,25)
$combo = guictrlcreatecombo("",264,8,113,21)
GUICtrlSetData(-1,"Russia|ANOTHER MAP","Russia")
$change = Guictrlcreatebutton("Change Map",384,8,73,25)
$type = Guictrlcreatebutton("Game Type",464,8,73,25)
$pam = Guictrlcreatebutton("Pam Mode",544,8,73,25)
$say = GUICtrlCreateButton("Say",624,8,49,25)
$quit = GUICtrlCreateButton("Quit",680,8,49,25)
Guictrlcreategroup("",-99,-99,1,1)

Guisetstate(@SW_HIDE)
func popup()
    $state = Guictrlgetstate($login)
    If $state = 144 Then
        Guictrlsetstate($login, $Gui_ENABLE)
        Guisetstate(@sw_show)
        elseif $state = 80 Then
        Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
    EndIf
endfunc 
    Do
    $msg = Guigetmsg()
    Select
        
Case $msg = $login 
    Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
        send("`/rcon login")
Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)
Case $msg = $kick
        Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
        send("`/rcon kick")
        Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)

case $msg = $restart
    Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
        send("`/rcon fast_restart{enter}`")
    Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)

    
Case $msg = $restartmap
        Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
        send("`/rcon map_restart{enter}`")
Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)
    
    
Case $msg = $change
        Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
    $map = Guictrlread($combo)
    send("`/rcon map mp_" & $map)
Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)

    Case $msg = $type
            Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
        send("`/rcon g_gametype")
Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)
    
Case $msg = $pam
        Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
        send("`/rcon pam_mode")
Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)
        
    Case $msg = $say
            Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
    send("`/rcon say")
Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)

Case $msg = $quit
        Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
    send("`/quit{enter}")
Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)

    endselect

until $msg = $GUI_EVENT_CLOSE

Link to comment
Share on other sites

Thanks man!!!!

There is only one problem left.

When i am onto the game and i press \ i firts go back to windows and thats what i don't want.

Can you fix that ore is that to dificult?

Is the problem that the resolution diferent is whit the menu and game?

Could that be the problem?

Thanks for the script!!

Edited by Erik.

I little problem, hard to find and fix

Link to comment
Share on other sites

try this just made sum quick changes

#include <Guiconstants.au3>
Hotkeyset("\","popup")
$menu = GUicreate("Menu", 739,44,0,0)
$group1 = Guictrlcreategroup("",0,0,737,41)
$login = Guictrlcreatebutton("Login",8,8,49,25)
$trigger = GUICtrlCreateButton("",-50,-50,0,0)
Guictrlsetstate(-1,$gui_DISABLE)
$kick = Guictrlcreatebutton("Kick",64,8,49,25)
$restart = Guictrlcreatebutton("Restart",120,8,49,25)
$restartmap = Guictrlcreatebutton("Restart Map",176,8,73,25)
$combo = guictrlcreatecombo("",264,8,113,21)
GUICtrlSetData(-1,"Russia|ANOTHER MAP","Russia")
$change = Guictrlcreatebutton("Change Map",384,8,73,25)
$type = Guictrlcreatebutton("Game Type",464,8,73,25)
$pam = Guictrlcreatebutton("Pam Mode",544,8,73,25)
$say = GUICtrlCreateButton("Say",624,8,49,25)
$quit = GUICtrlCreateButton("Quit",680,8,49,25)
Guictrlcreategroup("",-99,-99,1,1)

Guisetstate(@SW_Show)
func popup()
    $state = Guictrlgetstate($trigger)
    If $state = 144 Then
        Guictrlsetstate($trigger, $Gui_ENABLE)
        winsettrans("Menu","",255)
        WinSetOnTop("Menu","",1)
        WinActivate("Menu")
        elseif $state = 80 Then
        Guictrlsetstate($trigger , $gui_DISABLE)
        winsettrans("Menu","",0)
    EndIf
endfunc 
    Do
    $msg = Guigetmsg()
    Select
        
Case $msg = $login
    Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
        send("`/rcon login")
Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)
Case $msg = $kick
        Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
        send("`/rcon kick")
        Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)

case $msg = $restart
    Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
        send("`/rcon fast_restart{enter}`")
    Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)

    
Case $msg = $restartmap
        Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
        send("`/rcon map_restart{enter}`")
Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)
    
    
Case $msg = $change
        Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
    $map = Guictrlread($combo)
    send("`/rcon map mp_" & $map)
Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)

    Case $msg = $type
            Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
        send("`/rcon g_gametype")
Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)
    
Case $msg = $pam
        Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
        send("`/rcon pam_mode")
Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)
        
    Case $msg = $say
            Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
    send("`/rcon say")
Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)

Case $msg = $quit
        Guictrlsetstate($login , $gui_DISABLE)
        Guisetstate(@SW_HIDE)
    send("`/quit{enter}")
Guisetstate(@SW_SHOW)
Guictrlsetstate($login,$Gui_ENABLE)

    endselect

until $msg = $GUI_EVENT_CLOSE
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...