VS 2008 - Place Mouse At The Top Of Screen
Mar 4, 2010If i place my mouse at the top of my screen , anywhere on top, i want my program to show. how would i do this?
View 4 RepliesIf i place my mouse at the top of my screen , anywhere on top, i want my program to show. how would i do this?
View 4 RepliesI am learning Visual Basic 2010 and I am working on a space combat program for my own education and amusement (a simulation of the Honorverse space combat system). I have a routine to add ships to the enemy ship roster and then place them randomly on the viewscreen. When I step through the sub with the debugger, it works fine, but when I run it without stopping, it wants to place all the objects in the same place on the screen. It's actually assigning 2 random numbers pertaining to the size of the viewscreen and assigning those numbers to GameObjectScreenLocation through GameObjectWorldLocation.X and GameObjectWorldLocation.Y. The objects are fully initialized to 0 in their constructor, FYI. Code is below:
[Code]....
i am trying to get a project that will magnify the area of the screen under my mouse... and be displayed in the applacations window! so far all i have been able to do is track the X, Y positions of my mouse... i have some experiance but not very much useing visual basic.
View 6 RepliesIs there a code in which the software scans the screen and point a specified color out of that scan and mark it.
View 1 RepliesI'm trying to get coordinates on my screen by holding down my mouse and placing it over different parts of the screen. I'm using the mouse_up and down events in a button to kinda simulate the mouse being held down. The problem I'm running into is that anytime I go past the button's bounds, the coordinates I want stop. This is what I have so far:
[Code]...
Like I imagine everyone, I often have problems navigating my code because the flow can jump from place to place. For example, if my code calls routine1, and I then want to go to routine1's code, I know that I can click in the dropdown menu and it will take me to that sub. But wouldn't it be easier if I could somehow right click on the call to routine way and select something like 'take me there' which would transport me from the function making the call to the code for the function being called? Then it would be easy to hop from place to place.
View 1 RepliesI'm trying to place multiple units that have already been selected on a previous form to appear where selected on the battlefield. I have tried it multiple ways and all I can do is get one to appear not the econd ect.
[Code]...
How to place units and their men on the form but I cant seem to get this array to work. It has multiple errors in it.
Dim pic(calctroops()) As New PictureBox
Dim z As Integer = 15
For i = 0 To Form3.orcunits
For x = 1 To Form3.orc(orcunits)
z = z + 15
pic(i).Location = New Point(Orc1.x + z, Orc1.y)
pic(i).BackColor = Color.Green
Me.Controls.Add(pic(i))
Next x
Next i
I looked at "How do I place an image with a mouse-click in Javascript?" but it had a small snippet of Java; immensely larger than my knowledge of Java. And that is the closest I've come to finding an answer in the past week. Here's what I would like to do (don't know if its even possible):
I have a panel and a toolstrip with 3 buttons. Each button represents a different image. I want to click on a button (once) and then move into the panel and everytime I click the mouse button it drops the image where ever I clicked. This only ends when either I click back on the same button or one of the other buttons. I do not want to drag an image into the panel each time. In other words the button stays depressed and the event/action stays active.
This is for my game but posted it here as it doesn't specifically relate to game programming. Basically I have an integer variable called FoodIndex which gets incremented throughout the game. Every time it gets incremented I want to test if it is a multiple of 20 so that I can place A bonus item on the screen.
View 2 RepliesIs there a way to create a custom splash screen in VB.net to use in place of a msgbox?
View 16 Repliesi want capture and save captcha from this url :
[URL]
after capture i want save it in my local computer.
how to read data from mifare card (ACR120S) and place the data on textbox on screen?? Jz like touch and go function. Thx...
View 4 RepliesWhat code do you use for the mouse to click somewhere on the screen?
View 1 RepliesI'm just wondering if it's possible to add the mouse when capturing the screen or monitor in vb.net?
because I'm doing a project that would record the screen and I'm actually successfull doing that by capturing the screen and include it in a timer, but my only problem is the mouse or the cursor isn't showing.
below is my sample code.
Dim ScreenSize As Size = New Size(TotalScreenWitdh, MonitorHeightArray(0))
Dim BMP As New Bitmap(TotalScreenWitdh, MonitorHeightArray(0))
[Code].....
A simple example is: lets say that im trying to make a program that allows you to move the mouse only with the arrows (left/right/up/down) how can i change the position of the mouse on the screen programmatically? If i wanted when you press a button the mouse to change position to X=0,Y=0 of the hole screen/desktop not the window of the form how can i do it? [Code]
View 5 RepliesNormally the event: PanelTransparentMarquee_MouseUp is only raised when the mouse is within the PanelTransparentMarquee panel. I'd like it raised where ever the mouse is on the screen.So in the load event for the usercontraol containing
PanelTransparentMarquee panel I inserted
PanelTransparentMarquee.Capture =
True
But I still only get the PanelTransparentMarquee_MouseUp event when the mouse is within the PanelTransparentMarquee panel.
I thought of something quite cool i would like to try. Would it be possible to revert the mouse and the screen, so when you mouse your mouse up, the arrow stays still but the desktop moves towards it.
View 1 Repliesin VB.NET. how do i make a mouse click somewhere on the screen?
View 4 Replieshow can i add the cursor to my screen capt program
Public Class Form1
Dim bounds As Rectangle
Dim screenshot As System.Drawing.Bitmap
[Code].....
Any one know an alternative way to draw the screen to a bitmap without using the copy screen function.Trying to avoid locking up the mouse pointer.
View 3 RepliesHow to make program to detect mouse click and run vb script for action?
View 4 RepliesI want to disable the funtionality of using a mouse when using a touch screen monitor in vb.net. the reason why i ask is because i want to limit users to only one option. is there a way I can code this in vb.net 2010.
View 2 RepliesHow to disable the right click of mouse? Please provide codes. How to disablethe Print Screen Key so that user cannot use it? Please provide codes. Applicable to both windows and web applicatuions.
View 9 RepliesI'm trying to move the mouse pointer to a certain position on the screen.I've done the declarations for both the SetCursorPos as well as the mouse_event, however I keep getting a Declaration expected error at this line: SetCursorPos(x,y),Perhaps something is wrong with the project or vb as well, cause I used an other declaration as well and when I wanted to use that I also got a Declaration expected error.[code]....
View 2 Repliesim am making a vb 2010 tile egine and i was wondering how to get place a tile on mouse click and allign it to a 50x50 tile grid, and wonder how i can sav this to a .txt file from a array of thew tiles and question ask.
View 8 RepliesI tried to make a mouse move and locate the point in the screen but I failed every time i press F5 the mouse click go to upper in the screen i want to locate it wherever i want locate mouse click.i used this site to learn a little for making a bot. ttp:unknownuserac...rews_VBNET.htmlhere is code please fix it for me
[/Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[code].....
I had a post about how to disable monitors, but someone suggested just making it not possible to leave the primary screen. This was obviously a good suggestion, but im not sure how i would accomplish this.
I need to prevent the user from entering the ctrl, alt, delete, escape, and windows key. I also need to prevent the mouse from leaving the primary screen.
My program is a security login system. It requires a username and password to close, and i want to make sure that it cannot close unless the user supplies the correct username and password.
Pressing a Hotkey, I want to click the button of another application (a game table), knowing it x and y coordinates, without to move on the screen then mouse pointer, because this generate an annoyng fluttering.atm I use mouse_event, that works fine, but with the fluttering..In you opinion is this job is possible with a direct Api? I tried to hide the mouse with ShowCursor(False), but it works only over my forms, not over the screen...
View 2 Replies-User is able to pick coordinates off his/her own screen with a right-click
-User can then add those coordinates to a list in any order they wish
-Up to 3 different lists are available
What I want it to do:
-User is able to pick coordinates off his/her own screen with a right-click
-User can then add those coordinates to a list in any order they wish
-Up to 3 different lists are available
-Mouse will go to coordinates specified in list boxes and click each coordinate
-The time in between each mouse movement/click can be adjusted by the "time between
[Code]...