[Help] Tapper is losing game focus.

Posts 1–10 of 10 · Page 1 of 1
[Help] Tapper is losing game focus.
Hello guys i just made a tapper with hotkeys for soldiefront and ive noticed when i hit F5 to DC(for tappin the map) that it goes off the program im on(eg soldiefront) and SF when u alt tab out dces you so im asking if there is any way i can i can fix this ????
Nope, it's because SF doesn't allow ALT + TAB'ing. If you try it SF just closes. Which is the so called "crash" you're talking about. They see it as an Anti-hack.

Just try to make sure you don't do anything that requires the focus of your program.
set a global keyboard hook?
&I don't really get what you're trying to do.
Set a global keyboard hook for something obscure and not used by soldier front, e.g. "ALT+K"

Really really easy to do this, just private declare Registerhotkey and Unregisterhotkey and put your tapper code on WndProc.

If you have no idea what I'm talking about, Let me google that for you
you need to add the arguement to to silence the cmd from gaining focus. This will supress the cmd line and wont minimize your game window.
Quote Originally Posted by wtfiwantthatname View Post
you need to add the arguement to to silence the cmd from gaining focus. This will supress the cmd line and wont minimize your game window.
Shell("cmd.exe /c ipconfig /release", AppWinStyle.Hide)
or use net dhcp, your choice.
Is This The Code You Used ?
Code:
For Connected : 
Shell("NET START DHCP")

For Disconnected : 
Shell("NET STOP DHCP")
???
For Connected :
Shell("NET START DHCP")

For Disconnected :
Shell("NET STOP DHCP")

try
Code:
Shell("NET STOP DHCP /Y") 
and Shell(NET START DHCP /Y")
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us