MigLeader
12-21-2008, 08:37 AM
hi there i have made a program that blocks the desktop and every key combination for the user yet provides a nice interface to to let him pick what game he want (i have a computer gaming center) and i have did a lot of coding but i faced a big problem:
i have used the SSides dll's to block the keys but when i run a game inside this game i can use these keys that SSides dll's ave blocked , and i have made a script when the user press a button to launch a game it removes any other buttons on the application so that they dont run two or more games at the same time , but if he run a game then press CTRL+ESC the game will minimize and he will get stuck because no buttons are visable to him unless he quits the game.
so i did a button to make the game maximize but it didn't work as i want here its code.
processes = Window.EnumerateProcesses();
pro = {};
pro[1] = "BF2.exe";
pro[2] = "CoD2MP_s.exe";
pro[3] = "CoD2SP_s.exe";
pro[4] = "cstrike.exe";
pro[5] = "quake3.exe";
pro[6] = "Transformers.exe";
pro[7] = "AirRaid.exe";
pro[8] = "Tqit.exe";
pro[9] = "Onslaught.exe";
pro[10] = "hl2.exe";
pro[11] = "Game.exe";
for i = 1, 11 do
Window.Restore(pro[i]);
Window.Maximize(pro[i]);
Window.Show(pro[i]);
end
these codes are in the on click tab on the button
note : the pro = {} is the names of the games EXE's that run in the taskmaneger
thanks
i have used the SSides dll's to block the keys but when i run a game inside this game i can use these keys that SSides dll's ave blocked , and i have made a script when the user press a button to launch a game it removes any other buttons on the application so that they dont run two or more games at the same time , but if he run a game then press CTRL+ESC the game will minimize and he will get stuck because no buttons are visable to him unless he quits the game.
so i did a button to make the game maximize but it didn't work as i want here its code.
processes = Window.EnumerateProcesses();
pro = {};
pro[1] = "BF2.exe";
pro[2] = "CoD2MP_s.exe";
pro[3] = "CoD2SP_s.exe";
pro[4] = "cstrike.exe";
pro[5] = "quake3.exe";
pro[6] = "Transformers.exe";
pro[7] = "AirRaid.exe";
pro[8] = "Tqit.exe";
pro[9] = "Onslaught.exe";
pro[10] = "hl2.exe";
pro[11] = "Game.exe";
for i = 1, 11 do
Window.Restore(pro[i]);
Window.Maximize(pro[i]);
Window.Show(pro[i]);
end
these codes are in the on click tab on the button
note : the pro = {} is the names of the games EXE's that run in the taskmaneger
thanks