Quantcast

Jump to content

» «
Photo

[BETA] GTAIV .Net ScriptHook

2,943 replies to this topic
Cyron43
  • Cyron43

    Player Hater

  • Members
  • Joined: 14 Apr 2013

#2941

Posted 23 December 2014 - 01:33 PM

Will you make a .net scripthook for GTA V as well?

Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#2942

Posted 24 December 2014 - 11:24 AM

If they do ....it would be AWESOME

Cyron43
  • Cyron43

    Player Hater

  • Members
  • Joined: 14 Apr 2013

#2943

Posted 17 January 2015 - 08:46 PM

Hmm no reply yet. I consider that as a bad sign. :panic:


vorotkov
  • vorotkov

    Player Hater

  • New Members
  • Joined: A week ago
  • None

#2944

Posted A week ago

How to set focus to the Form after starting Form1.Show() without clicking the mouse on the Form?

Without the active focus on the form processing KeyUp event occurs.

Imports System
Imports System.Drawing
Imports System.Windows.Forms
Imports GTA

Public Class GTA_Forms
    Inherits Script

    Public Sub New()
        Wait(1000)
    End Sub

    Private Sub Main_KeyUp(ByVal sender As Object, ByVal e As GTA.KeyEventArgs) Handles MyBase.KeyUp
        If e.Key = Keys.D1 Then
            Dim Form1 As New Form1_Window
            Form1.Show()
        End If
    End Sub

End Class

Public Class Form1_Window
   Inherits GTA.Forms.Form

   Public Sub New()
        'Me.KeyPreview = True   'Not work
   End Sub

    Private Sub Main_KeyUp(ByVal sender As Object, ByVal e As GTA.KeyEventArgs) Handles MyBase.KeyUp
        If e.Key = Keys.D2 Then Me.Close
    End Sub
End Class




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users