Jump to content


Photo

MouseControl DLL


  • This topic is locked This topic is locked
7 replies to this topic

#1 tamper2

tamper2

    GMC Member

  • New Member
  • 369 posts

Posted 21 June 2010 - 08:51 PM

Mouse Controlling DLL, as simple as it sounds. Posted Image
This GM tailored DLL gives you full control over your mouse.

Through the DLL you can:
  • Set the mouse's position
  • Get the mouse's position
  • Simulate a left/right/middle click
  • Get the current state of each mouse button (up or down)
  • Set the current state of each mouse button (up or down)
  • And more! Posted Image
Free to use for Non-Commercial and Commercial games/applications.

I know what you must think - "Why should I use this one, there are dozens of these DLLs out there".
Well, I got the answer to that!
First of all, most other DLLs lack the functionality granted by this DLL.
Secondly, this DLL is very novice friendly, and includes a very easy-to-use example and a help file that includes all the functions in the DLL.

So what are you waiting for?
Hit the download button right below, and start working! Posted Image
MouseControl DLL Download - Includes a help file + example made by YellowAfterLife

Please comment, suggest, and criticize!
And of course, if you have any problems, feel free to contact me directly Posted Image

Enjoy the DLL,
Tamper

P.S. More System level control DLLs - yet to come...
  • 1


#2 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • GMC Elder
  • 18181 posts
  • Version:GM:Studio

Posted 22 June 2010 - 02:24 AM

FIXED

I think you have your global options to skip over un-initialized variables... Because this is the first thing I see when I run it.
___________________________________________
ERROR in
action number 2
of Create Event
for object obj_tutorial0:

Error in code at line 7:
typewrite_init(_s,0.5);
^
at position 21: Unknown variable _s

Edited by icuurd12b42, 23 June 2010 - 12:31 AM.

  • 0

gmcbanner.pnggmcbanner_tools.png

ICU Live Tutoring Through Slack or Skype | My Tools Page follow.png

I FRANTICALLY MADE MY 18000 POST TOPIC BEFORE MIKE ANNOUNCED A DELAY...
Now I'm squirming not to hit that reply button


#3 YellowAfterlife

YellowAfterlife

    GMC Member

  • Global Moderators
  • 4157 posts
  • Version:GM:Studio

Posted 22 June 2010 - 06:15 AM

I think you have your global options to skip over un-initialized variables... Because this is the first thing I see when I run it.
___________________________________________
ERROR in
action number 2
of Create Event
for object obj_tutorial0:

Error in code at line 7:
typewrite_init(_s,0.5);
^
at position 21: Unknown variable _s

No, that was issue related to unfinished editing process of my variable names (all _s variables were renamed to str for better readability, but function calls were forgotten).
Here's a quick fix version, until next update:
Posted Image
  • 0
If my posts contain broken links, try looking around my website. I gradually make blog posts for any examples I make.
_.png_.gif

#4 tamper2

tamper2

    GMC Member

  • New Member
  • 369 posts

Posted 22 June 2010 - 08:25 AM

I am very sorry, as YellowAfterLife said, I was editing his variables for more comfortable reading, and I guess I forgot to change that one.
Thank you very much YellowAfterLife for fixing it on such short notice :), and sorry everybody else who might have tried...


Tamper
  • 0


#5 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • GMC Elder
  • 18181 posts
  • Version:GM:Studio

Posted 23 June 2010 - 12:41 AM

I dont know about the tutorial2 though. it does not seem that setting the mouse through your api is catchable, through gm functions or your own. I would try to see if you can set the mouse in a way that the event is captured via GM event system (I did not check if it did detect myself)
mouse_check_button(mb_left) (I checked this, dont work)
mouse_check_button_pressed() (did not check)
mouse_check_button_released() (did not check)
keyaboard_check_direct() use 1, for left mouse button, 2 for right, 3 for middle Funky way to catch the mouse (did not check)

Can you add mouse wheel detection as well, that is requested often.

Also, If you want, you can grab my mouse dll code. I have extra features/functions in there you may want to include in yours. Tools page, link in sig.

Edited by icuurd12b42, 23 June 2010 - 12:44 AM.

  • 0

gmcbanner.pnggmcbanner_tools.png

ICU Live Tutoring Through Slack or Skype | My Tools Page follow.png

I FRANTICALLY MADE MY 18000 POST TOPIC BEFORE MIKE ANNOUNCED A DELAY...
Now I'm squirming not to hit that reply button


#6 tamper2

tamper2

    GMC Member

  • New Member
  • 369 posts

Posted 23 June 2010 - 09:50 PM

Thank you for commenting.
As shown in the tutorial, through the GM event, mouse clicking is catchable through GM.
I haven't checked all the ways, but it works in the way shown.
Also, thank you for giving me extra ideas to add to the DLL, I will look in your DLL and see what I would like to add.

When possible, I will add a list of all things that will be added.

Please give more feedback,
Tamper
  • 0


#7 iloveportalz0r

iloveportalz0r

    GMC Member

  • New Member
  • 25 posts

Posted 12 September 2010 - 01:32 AM

You might wanna put that second link where the original is. Some people might just close the topic after they see that the file isn't on mediafire anymore instead of reading the comments for another link <_<
  • 0
I use Posted Image Pro version.
98% of the teenage population has smoked, if you are one of the proud 2% that never will, put this in your sig.
How good are you at GML?
Posted Image

#8 xot

xot

    GMC Dismember

  • GMC Elder
  • 4785 posts
  • Version:GM:Studio

Posted 17 September 2010 - 08:48 AM

This topic has been closed at the creator's request.

Thanks,
GMC Team

Note: This is an automated reply!
  • 0
GMLscripts.com, rise from your grave!

If any of my posts contain broken images or links, I can probably supply them for you. PM with a link to the post.