VB Programs [message #31290] |
Tue, 15 July 2003 12:01 |
xSeth2k2x
Messages: 285 Registered: July 2003 Location: In my room in the chair
Karma: 0
|
Recruit |
|
|
I've been seeing alot of visual basic utillites for renegade latly
Im pretty expirenced in visual basic execept for sending commands to programs,apis and such
how would i send commands(jsut a simple text message for example) into renegade
Farewell.
|
|
|
|
VB Programs [message #31541] |
Wed, 16 July 2003 09:37 |
xSeth2k2x
Messages: 285 Registered: July 2003 Location: In my room in the chair
Karma: 0
|
Recruit |
|
|
what would i searhc for?
Farewell.
|
|
|
|
VB Programs [message #32561] |
Sat, 19 July 2003 23:50 |
|
npsmith82
Messages: 525 Registered: February 2003 Location: England, UK
Karma: 0
|
Colonel |
|
|
xSeth2k2x | what would i searhc for?
|
You would search for exactly what Dante suggested at planetsourcecode.com
Dante | both will show you how to get the hwnd for any "forms" text boxes etc... and allow you to edit them easily.
for instance, you can edit the text in a popup window in renegade
|
Just search for hWnd, you'll get plenty of results.
WOL: npsmith82
For RenAutoComplete, RenSkirmish, RenBuddyList and RenWOLstatus please visit (IE) TheCodeSmith.com
|
|
|
VB Programs [message #32605] |
Sun, 20 July 2003 09:23 |
xSeth2k2x
Messages: 285 Registered: July 2003 Location: In my room in the chair
Karma: 0
|
Recruit |
|
|
thats not even half the problem.
how owuld i get an api spy to work in a fullscreen program?
Farewell.
|
|
|
|
VB Programs [message #32616] |
Sun, 20 July 2003 11:05 |
xSeth2k2x
Messages: 285 Registered: July 2003 Location: In my room in the chair
Karma: 0
|
Recruit |
|
|
heres my code(its jsut suppose to detect if renegade is open)
Option Explicit
Dim RenStatus As String
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function SendMessageSTRING Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long
Private Sub cmdOpen_Click()
Shell "C:\Westwood\Renegade\Renegade.exe"
End Sub
Private Sub tmrRen_Timer()
Dim lRenegadehWnd As Long
Dim RenChecked As String
lRenegadehWnd = FindWindow("Renegade", vbNullString)
If lRenegadehWnd Then
lblRen.Caption = "Renegade is OPEN" 'Renegade.exe Is Open
RenStatus = "Open" 'Tell it Renegade is Open
cmdStart.Enabled = True
Else
lblRen.Caption = "Renegade is CLOSED" 'Renegade.exe Isn't Opened
RenStatus = "Not Open"
cmdStart.Enabled = False
'----------------------------'
End If
End Sub
Farewell.
|
|
|