Erik. Posted April 15, 2006 Share Posted April 15, 2006 (edited) 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 April 15, 2006 by Erik. I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 15, 2006 Share Posted April 15, 2006 (edited) 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 April 15, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
Erik. Posted April 16, 2006 Author Share Posted April 16, 2006 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 More sharing options...
Erik. Posted April 16, 2006 Author Share Posted April 16, 2006 Could somene help me? I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 16, 2006 Share Posted April 16, 2006 (edited) ok nvm i understand a lil more now , ur saying u want it when u press a button to go to xfire, and windows as well ? and the game would either still be running just be minimized or something like that? Edited April 16, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
Erik. Posted April 16, 2006 Author Share Posted April 16, 2006 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 More sharing options...
Thatsgreat2345 Posted April 16, 2006 Share Posted April 16, 2006 i understand this but WHAT MENU lol im so lost , im pretty sure autoit doesnt have sound recognition so that when something plays its not going to be able to send scrolllock + x , im just ocnfused on what menu ur talking about, and whats on the menu thats going to help people Link to comment Share on other sites More sharing options...
Erik. Posted April 16, 2006 Author Share Posted April 16, 2006 (edited) 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 April 16, 2006 by Erik. I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 16, 2006 Share Posted April 16, 2006 ok i get it but im still confused on what things ur setting and such? Link to comment Share on other sites More sharing options...
Erik. Posted April 16, 2006 Author Share Posted April 16, 2006 (edited) 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 April 16, 2006 by Erik. I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 16, 2006 Share Posted April 16, 2006 expandcollapse popup#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 More sharing options...
Erik. Posted April 17, 2006 Author Share Posted April 17, 2006 (edited) 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 April 17, 2006 by Erik. I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Erik. Posted April 17, 2006 Author Share Posted April 17, 2006 Someone? I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Erik. Posted April 18, 2006 Author Share Posted April 18, 2006 Can you please help me. Does it come because the resolution of the game is diferent then the resolution of windows?? I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
NegativeNrG Posted April 18, 2006 Share Posted April 18, 2006 WinSetOnTop()? [size=20]My File Upload[/size]Register at my site and upload. Link to comment Share on other sites More sharing options...
Erik. Posted April 18, 2006 Author Share Posted April 18, 2006 I will try thanks. I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 19, 2006 Share Posted April 19, 2006 try this just made sum quick changes expandcollapse popup#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 More sharing options...
Erik. Posted April 19, 2006 Author Share Posted April 19, 2006 Sorry It still goed back to windows:( I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Erik. Posted April 20, 2006 Author Share Posted April 20, 2006 Still does not work:( I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Erik. Posted April 21, 2006 Author Share Posted April 21, 2006 Can you help me? still does not work:( I little problem, hard to find and fix 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