 |
| ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

January 13th, 2011, 03:31 PM
|
|
Authorized User
|
|
Join Date: Apr 2010
Posts: 55
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
script work in my pc but not in host server
hi there
i develop a script that move the cursor (mouse cursor) to any position that im choose!
its work fine in my pc,but when im upload the script to host server the mouse are stay in is own position.
im try to replace the code to
Windows.Forms.Cursor.Position = New Point(333, 400)
and its steel work only im my pc!
|
|

January 14th, 2011, 03:36 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Windows.Forms.Cursor.Position = New Point(333, 400) cannot be used in an ASP.NET application. It may appear to work on your local machine because that machine is the client and the server, but this code will never make it to the browser. You need to use JavaScript to accomplish this: http://www.google.com/#hl=en&sugexp=...e+mouse+cursor
Cheers,
Imar
|
|

January 14th, 2011, 08:34 AM
|
|
Authorized User
|
|
Join Date: Apr 2010
Posts: 55
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
and what about this
Public Declare Auto Function SetCursorPos Lib "User32.dll" (ByVal X As Integer, ByVal Y As Integer) As Integer
its not work too
|
|

January 14th, 2011, 09:41 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Same story: this works locally on a Windows machine, but never makes it to the browser....
Imar
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

January 14th, 2011, 12:12 PM
|
|
Authorized User
|
|
Join Date: Apr 2010
Posts: 55
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
ok,the problem with js is that pepole can see my code and copy him.
and i want to sell the code,i guess i drop this idea!
thanks
|
|

January 15th, 2011, 01:15 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Moving the mouse cursos with JavaScript isn't exactly rocket science; Google has 2.3 million articles on that. So, personally, I wouldn't bother much with protecting this kinf of source.
A browser must be able to read JavaScript, so any browser based JavaScript solution will be hard to protect anyway.
Cheers,
Imar
|
|
 |