Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

How to make AxShockwaveFlash have a on Click effect?

Not sure of the proper terms but I would like to have where when my

"AxShockwaveFlash1" is clicked it performs a task such as
Quote: ' Private Sub AxShockwaveFlash1_Click(sender As Object, e As EventArgs) Handles AxShockwaveFlash1.Click
Process.Start("cmd", "/k start maplestory.exe nexusdevv.ddns.net 8484")
Shell("taskkill /F /IM cmd.exe")
Application.Exit()
End Sub



But when I do try this, i get
[Image: 51190c8bd6069a30ac3a35266b473824.png]



Can anyone help me?

I'm basically just trying to make it a button
You could check for the WndProc message that looks a little something like this
Code
msg=0x210 (WM_PARENTNOTIFY) hwnd=0x1170270 wparam=0x201 lparam=0x5e0071 (WM_LBUTTONDOWN) result=0x0

Check if your mouse is in the bounds of the flash object when you're checking for the message and then start your process.

Something like this:
PHP Code

<?php 
//Converted to VB using converter so the syntax may be off.

Protected Overrides Sub WndProc(ByRef m As Message)
    
Dim message As String = m.ToString()

    
Dim cur As Point = Me.PointToClient(Cursor.Position)
    
Dim clickRect As New Rectangle(axShockwaveFlash1.Location.X, axShockwaveFlash1.Location.Y, axShockwaveFlash1.Size.Width, axShockwaveFlash1.Size.Height)
    If 
clickRect.Contains(cur.X, cur.Y) Then
        
If message.Contains("(WM_LBUTTONDOWN)") Then

            
//Handle Click
            
MessageBox.Show("Clicked!")

        
End If
    
End If

    
MyBase.WndProc(m)
End Sub 

There's probably a more efficient way but I'm just throwing this out there.
Skype: happy.cbb
0x38E6A0912657E
i appreciate the response but it did not work

i am still looking for this! please message me!


Alright I figured out a weird but effective way.
I just used on MouseClickEvent and make it where i used shell to close out of the internet explorer process that opened


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by Ammar_HFMar 16, 2015 03:35 AM 10 260 Mar 16, 2015 03:35 AM
Last Post: Ammar_HF
[C#] by Jack_SoffJan 9, 2015 02:30 PM 11 345 Jan 9, 2015 02:30 PM
Last Post: TyrantKingBen
[.NET] by OriginalPosterAug 17, 2014 07:53 PM 15 433 Aug 17, 2014 07:53 PM
Last Post: Eternal Darkness