Teen Programmers Unite  
 

 

Return to forum top

i need to find a language that can do a certain thing

Posted by Busyboy [send private reply] at May 16, 2002, 08:59:52 AM

I am new at all languages, and i only know vbs, basic, vba, and html. I dont think it exists, but is there a command in any of these langages that can move the mouse curser and click w\ on its own? I know you can do this w\ key press's (in vbs), but i dont know how to do it w\ this. Also, i would need the command to work in 1 of the above languages, because i dont own a compiler for anything <i>but</i> vba & basic (basic is so old, that i never use it anyway)

Posted by metamorphic [send private reply] at May 16, 2002, 09:09:23 AM

1) Moving the mouse programatically and then clicking cannot be done, or at least no that i know of. It violates the users will if they don't want to click it.

2) these boards don't allow HTML

3) VBA and HTML are not languages. VBA is a scripting sub-set of visual basic and HTML is a markup text launguage.

Posted by metamorphic [send private reply] at May 16, 2002, 09:11:31 AM

one sec, i just thought... You could try in VB the mouse_move event if it moves over something then use the yourcontrolhere_click method to automatically click on it. So it can be done, but its odd.

Posted by Psion [send private reply] at May 16, 2002, 10:02:35 AM

I know it is possible in Visual Basic, because you have full access to the Windows API through some sort of DLL interface, but I don't know how to do it. As usual for when someone mentions VB here, if you want to do things like this (or anything, really!), you will be better off with a language like C++. There are links to free compilers in the FAQ.

Posted by CodeRed [send private reply] at May 16, 2002, 10:46:37 AM

Don't do whatever it is that you are thinking of doing. NOBODY wants a VB script taking control of their mouse, It's bad enough that they make those stupid popup windows that cannot be closed without ctrl-alt-deleting

Posted by Faisal [send private reply] at May 16, 2002, 11:37:33 AM

What do you want to do anyways? Are you trying to make some type of "hacker program" for script kiddies that lets them take control of the users mouse, or is that just some random guess i made that was not even worth asking

Posted by RedX [send private reply] at May 16, 2002, 12:36:17 PM

Or you could replace the mouse driver. This requires a strong knowledge of Windows internals, but would be virtually undetectable for normal software, since they *trust* on windows to handle hardware (scary, isn't it?).

It's possible but if you pull this off on my computer, I'll do a simular thing on your car (if no car available, one will be provided) and let a 12-year-old play "carmagedon 4" with it. Try to explain that to the friendly officers you'll meet as soon as you run out of gas.

RedX

Posted by AngelOD [send private reply] at May 16, 2002, 06:05:25 PM

I don't know if this is possible through VBS (I sure hope not!), but with VB it's really quite easy. I don't use VB any longer, but a quick search on Google (DAFGS anyone?) gave me this:

http://www.vb-world.net/mouse/tip15.html

Posted by sphinX [send private reply] at May 16, 2002, 06:07:03 PM

Well, there is a valid use for this sort of code. I regularly use a remote admin program at home to control my net server, and it moves the mouse cursor involuntarily as controlled by my movement in the next room. So is it possible? Of course it is. Could I tell you how to do it in VB? Nope.

Posted by metamorphic [send private reply] at May 17, 2002, 09:31:49 AM

Although i doubt forced mouse control has that many legit reasons

Posted by CViper [send private reply] at May 17, 2002, 10:10:57 AM

I remember a program (or extension) on mac that made your cursor "drop down" every now and then... really annoying :/

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.