To close application is
Code:End
hi,
sorry for my bad english.
ich want to make a program which close any programm mit an button and hokey.
what is the correct code for close a program?
mopo
To close application is
Code:End
hotkey
(if getkeypress(vbkeyA) then
end
end sub
thx,
but i want to close a program like warrock or media player.
not the hack.
mopo
Then use
Shell("TASKKILL /F /IM "PnkBstrA.exe")
sorry,
i dont understand.can you post the code plz.
mopo
He just did. If you want it in a hotkey it would be like this:
Replace PnkBstrA.exe with whatever the programs process is that you want to close.Code:If GetKeyPress (vbKeyA) Then Shell("TASKKILL /F /IM "PnkBstrA.exe") End Sub
WarRock:
WMP (Windows Media Player):Code:Shell("TASKKILL /F /IM "Warrock.exe")
Code:Shell("TASKKILL /F /IM "wmplayer.exe")
i get an error.
"syntaxfehler"
mopo
Yo, u must declare if get keypress...
Public Declare Function GetkeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As Integer
hmm,
new error:
erwartet listentrennzeichen oder )
must i write the code in a butoon or in a timer?
mopo
what this would do is end a process, defined here:
Shell("TASKKILL /F /IM "PnkBstrA.exe")
so change that to "WarRock.exe" (without the quotes as they are already there) then it would close War Rock
dont have any idea on that, though.hmm,
new error:
erwartet listentrennzeichen oder )
must i write the code in a butoon or in a timer?
mopo
Last edited by olie122333; 11-01-2007 at 10:12 AM. Reason: to help with an extra problem