Help - Search - Members - Calendar
Full Version: Loading another app from inside the game ??
AC Tools Everything Macro > General Discussion > C++/Delphi/VB Development
killa
Hi,

im using the winAPI shellexecute function to load my teamspeak client from inside the game. the problem i am having is that the TS client upon start up asks for focus... so i end up kicked out of game. is there a way i can over ride this ?

ive tryed useing the Hide const with shellexecute and it doesnt seem to hide the client. i also tryed using the MinimizedNoFocus const , that does start the client minimized and with out focus but i still get booted out of game.

anyone have any ideas on what else i can try? im using vb6

here is the code im using the api declarations is in my ts.bas..
CODE
Private Sub cmdStartTS_Accepted(ByVal nID As Long)

 On Error GoTo Hell
ShellExecute GetActiveWindow, vbNullString, "TeamSpeak.exe", vbNullString, app.path, 7
 

 Exit Sub
Hell:
 Hub.WriteToLog "cmdStartTS_Accepted", "ControlHandler", Err.Number, Err.Description, Erl
End Sub
Starhawk
hrm. nope. sounds like you are doing everything the right way.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.