Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » VB Programs
VB Programs [message #31290] Tue, 15 July 2003 12:01 Go to next message
xSeth2k2x is currently offline  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.
http://www.multec.com/case9studios/sigs/case9_seth_signature.jpg
VB Programs [message #31539] Wed, 16 July 2003 09:26 Go to previous messageGo to next message
Dante
Messages: 1039
Registered: February 2003
Karma: 0
General (1 Star)
http://www.vbcode.com
http://www.planet-source-code.com

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 (team chat, reg chat). that is how autocomplete was made.


VB Programs [message #31541] Wed, 16 July 2003 09:37 Go to previous messageGo to next message
xSeth2k2x is currently offline  xSeth2k2x
Messages: 285
Registered: July 2003
Location: In my room in the chair
Karma: 0
Recruit
what would i searhc for?

Farewell.
http://www.multec.com/case9studios/sigs/case9_seth_signature.jpg
VB Programs [message #32544] Sat, 19 July 2003 21:52 Go to previous messageGo to next message
xSeth2k2x is currently offline  xSeth2k2x
Messages: 285
Registered: July 2003
Location: In my room in the chair
Karma: 0
Recruit
....

Farewell.
http://www.multec.com/case9studios/sigs/case9_seth_signature.jpg
VB Programs [message #32561] Sat, 19 July 2003 23:50 Go to previous messageGo to next message
npsmith82 is currently offline  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 Go to previous messageGo to next message
xSeth2k2x is currently offline  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.
http://www.multec.com/case9studios/sigs/case9_seth_signature.jpg
VB Programs [message #32611] Sun, 20 July 2003 10:21 Go to previous messageGo to next message
NeoX is currently offline  NeoX
Messages: 408
Registered: April 2003
Location: Canada, Ontario, Acton
Karma: 0
Commander
THXXXXX
VB Programs [message #32616] Sun, 20 July 2003 11:05 Go to previous message
xSeth2k2x is currently offline  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.
http://www.multec.com/case9studios/sigs/case9_seth_signature.jpg
Previous Topic: need help badly
Next Topic: Dedicated VIS tutorial for the Dedicated
Goto Forum:
  


Current Time: Mon Dec 23 23:18:29 MST 2024

Total time taken to generate the page: 0.00677 seconds