i have a program that interact with another window. lets say window 1 is the window i am trying to interact with... window 2 is different window that is current in the foreground. so i did a getforegroundwindow to get window2, getprocessbyname for window1. bring window1 to the foreground with...
Private Sub cmsTypes_Opening(sender As Object, e As CancelEventArgs) Handles cmsTypes.Opening
With cmsTypes.Items
.Add("Cut", Nothing, AddressOf cmsTypes_Click)
.Add("Paste", Nothing, AddressOf cmsTypes_Click)
End With
e.Cancel = False
End Sub
This will just...
how do you get the data from that? With the filedrop from desktop, i catch it in dragdrop and that doesnt fire for link drop. I did a
CType(e.Data.GetData(DataFormats.FileDrop), String())
to get the file names but that doesnt work for the link
I just dragged a link from chrome address bar and the for loop give me a bunch of those messages in the msgbox. Even some blanks. 23 messages from 1 drop.
Is there a way to simulate a mouse click without first setting the cursor position then do a mouse event leftdown? sometime if i am moving my mouse during this event, the mouse won't be clicking where its suppose to be clicking.
I created a webbrowser in a tab. I want to download files to the default directory without the save prompt.
Dim imgBrowser As New WebBrowser
With imgBrowser
AddHandler .DocumentCompleted, AddressOf imgBrowser_DocumentCompleted
AddHandler...
When i do it the way u did, it works. Then it must mean that when i do it in the command prompt, it failed. "Appname.appref-ms" 123. That doesnt work. How do i pass argument from the command prompt?
How do i get the argument from and 2nd instance in a single instace app? I tried to catch it in MyApplication_StartupNextInstance. But the e.commandLine or the AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData seems to be null. I use "Appname.appref-ms" 123 to send 123...
When i do findwindow, i get the nox4 951074 . and if i findwindowex, it just go down the child 721cce. The one i want is the 168173C which isnt under Nox4 in the tree. Oh i could just findwindow(nothing,"Nox_2")
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.