Jump to content


Photo

Simulate Dll V1.2


  • Please log in to reply
21 replies to this topic

#1 gamefreak315

gamefreak315

    GMC Member

  • New Member
  • 295 posts

Posted 13 August 2008 - 04:46 PM

:GM069: Simulate DLL V1.2 - By: GameFreak315 ;)


:GM069: Description - Simulate Dll allows you to send key presses into other programs, send sentances into other programs, simulate a mouse press, mouse down, and mouse realease. Also I know you can do it with gamemaker functions but I added simulate key press and sentances also. Basically you can simulate key presses and mouse presses. This helps for those programs that do not pick up the regular key simulation, or if you want to type in a program without having to be focused on it.

This is my first DLL and it took me about 3 days to make. I know that there are other dlls for simulation but I have not seen a dll that can simulate keys into another program, so I made that and decided to add more so it wasnt so empty and boring.

Its made with C++, Dev-C++. I just started C++ and I am glad I finished this!

*UPDATE* Just added being able to simulate a combo of keys and triple keys!
*UPDATE 2* Just added Mouse Scroll

:GM070: Functions -
int_dll()
sim_key_win()
sim_sentance_win()
sim_key()
sim_sentance()
sim_key_double()
sim_key_triple()
mouse_click()
mouse_down()
mouse_up()
mouse_scroll()

^_^ Terms -
Use DLL with care.
I am not responsible for anything that happens to you, your computer, or others computers when using this DLL.
Free to use, must credit if used commercially.
Have fun, and remember credit is 100% appreciated. :D


::lmao:: Download V1.2 - :GM7:
Posted Image

For the GEX go HERE

If you are looking for WinSpy++ I mentioned in the game info, go HERE.

If you want something added that is the subject of the dll please ask!
See Game information for extra help!
Thanks for help from the C++ Learning Community
Also please do not post if it is about some of these already being functions in gamemaker. I mostly put those in for the sake of me learning more C++, and it may be easier for some people to use.

Edited by gamefreak315, 24 October 2008 - 10:41 PM.

  • 1

#2 posva

posva

    GMC Member

  • New Member
  • 610 posts
  • Version:GM8

Posted 16 August 2008 - 12:51 PM

sim_key and mouse_click doesn't work ....
  • 0

#3 dk81584

dk81584

    Program Maker

  • New Member
  • 171 posts
  • Version:GM8

Posted 16 August 2008 - 06:13 PM

sim_key and mouse_click doesn't work ....

lol this is like the third one of these that i've seen, including mine xD
you should add a key combo to it, like i did with mine, so u can simulate alt tab, and stuff
like that, people would find it more useful
  • 0
Signature removed due to size restriction violation. The old signature is placed in the About Me section of the user's profile.

#4 regneer

regneer

    GMC Member

  • New Member
  • 59 posts

Posted 16 August 2008 - 06:56 PM

I love it!. I havent seen the others?
  • 0

#5 gamefreak315

gamefreak315

    GMC Member

  • New Member
  • 295 posts

Posted 16 August 2008 - 07:09 PM

posva - As far as I know they work. Check the game information. They look like this
mouse_click(0)
//Argument0 - Mouse Button
//0-Left
//1-Right
//2-Middle
sim_key(ord("A"))
//Argument0 - Key - ord('A'), vk_space
dk81584 - Thanks, I probably will do that, I had a thought of doing it but never did yet. Also these two are new
sim_key_win()
sim_sentance_win()
I pretty much made this for them but then added the rest. Nobody has used these before.

regneer - Thanks, I'm glad you like it!

[EDIT] Btw, dk81584 I just added the combo keys, I just need to upload it, lol.

[EDIT2] Finished adding double keys and triple keys! Now V1.1

[EDIT3] Just added mouse scroll simulation! Now V1.2

Edited by gamefreak315, 16 August 2008 - 09:50 PM.

  • 0

#6 regneer

regneer

    GMC Member

  • New Member
  • 59 posts

Posted 17 August 2008 - 09:26 AM

Can you make it so that it checks for a specific keypress inside the game?
Want it so if someone presses a key it writes a line.
edit: im having a hard time making it do this: sim_key_win(vk_enter,'myprog.exe',false,'');

Edited by regneer, 17 August 2008 - 09:31 AM.

  • 0

#7 gamefreak315

gamefreak315

    GMC Member

  • New Member
  • 295 posts

Posted 17 August 2008 - 04:12 PM

Check the Game Information in my example btw. Where you used 'myprog.exe' you are supposed to use the caption of the game window. But I am also having trouble getting this to simulate the key in a gamemaker game, maybe there is a child window. So in the meantime sim_key will work with gamemaker games.

Edited by gamefreak315, 18 August 2008 - 03:39 AM.

  • 0

#8 zachman

zachman

    MagicMan Productions

  • New Member
  • 212 posts

Posted 18 October 2008 - 02:50 AM

in your help it says you can use WinSpy++ to detect the child windows... What do I need to so to use it? I need to be able to find the child window of the program I want to simulate a sentence in.
  • 0

#9 Lucky Luke

Lucky Luke

    GMC Member

  • New Member
  • 123 posts

Posted 21 October 2008 - 09:05 AM

This is an awesome dll, i just wish i could make it check for key presses while another window is active.
So i could be in a game and the gamemaker still could check for key presses and send them to the active window.

Could this be done?

Thanks again
  • 0
Durid has can run fast form is TRAVEL FORM

#10 gamefreak315

gamefreak315

    GMC Member

  • New Member
  • 295 posts

Posted 24 October 2008 - 10:37 PM

Hey guys thanks for your comments, and sorry for late response.

zachman, Yes you open winspy++ drag the little cursor in the program to the spot you are trying to control, let the mouse go and winspy should tell you the name of the window and other info. All you should need is the name of the child window caption and if you don't already have it the parent window caption, if its using one. Then use sim_sentance_win() like this,
sim_sentance_win("Hello",'parent window caption',true,'child window caption');
Heres a link to winspy if you can't find it. CLICK

Lucky Luke, there is a function in gm for that. It checks the keyboard directly.
if keyboard_check_direct(vk_enter)=true then{
///Do something
}

Glad you guys like the DLL! :GM7:

Edited by gamefreak315, 24 October 2008 - 10:40 PM.

  • 0

#11 nick1965

nick1965

    GMC Member

  • New Member
  • 88 posts

Posted 13 February 2009 - 07:05 AM

Awesome 10/10, just what i needed. (Lol i want to rule all game with haxxorz, now all i need is ME and PE dll)

~Nick
  • 0

#12 coolist

coolist

    The Coolist

  • New Member
  • 913 posts

Posted 13 February 2009 - 10:24 PM

Pretty cool, just need to make it so that you can: Simulate keyboard press and release, make it find the child window automaticly as I couldn't get it worknig with game maker.
  • 0

#13 Un_t0uch

Un_t0uch

    GMC Member

  • GMC Member
  • 868 posts

Posted 20 February 2009 - 02:44 AM

No child windows seem to work.

And the sim_key is pretty much keyboard_key_press
  • 0
thx for the avantar t3mpets

QUOTE
hey guys im in a quote lol

THIS AVATAR IS FOR NEXT YEAR THEREFORE I AM THE FURTHEST IN THE FAD

#14 Krisando

Krisando

    GMC Member

  • New Member
  • 1351 posts

Posted 22 February 2009 - 05:49 AM

May I request?
movemouse( x,y, spd)
find_color (returnx,returny,col,x1,y1,x2,y2)
find_color_tolerance(returnx,returny,col,x1,y1,x2,
y2,tol)

//Possibly
silentmouse(x,y) - Can be hard to do ;P

Thankyou for listening =]
  • 0

Posted Image


#15 h3csc

h3csc

    GMC Member

  • New Member
  • 165 posts

Posted 15 March 2009 - 07:53 AM

Can we have a gm6 example?
  • 0

#16 Yambam

Yambam

    GMC Member

  • GMC Member
  • 647 posts
  • Version:GM8

Posted 10 May 2009 - 09:43 AM

May I request?
movemouse( x,y, spd)
find_color (returnx,returny,col,x1,y1,x2,y2)
find_color_tolerance(returnx,returny,col,x1,y1,x2,
y2,tol)

//Possibly
silentmouse(x,y) - Can be hard to do ;P

Thankyou for listening =]

that funtion doenst exist but window_mouse_set(x,y) does exist even that you still can move the mouse by seting the mouse on the x and y of the object so when the object moves the mouse moves with it :lol: so why you dont check that out :P
  • 0

#17 zezimaimp

zezimaimp

    GMC Member

  • GMC Member
  • 552 posts

Posted 07 December 2009 - 01:25 AM

My PC dosen't work with host-a.net for some odd reason, could you use another file host and them pm me the link?
  • 0
<p align=center><a target=_blank href=http://www.nodiatis.com/personality.htm><img border=0 src=http://www.nodiatis.com/pub/7.jpg></a></p>

#18 Mister_M

Mister_M

    GMC Member

  • New Member
  • 499 posts

Posted 17 December 2009 - 07:18 AM

__________________________________________
ERROR in
action number 1
of Create Event
for object simulate:

Error defining an external function.

I extracted the folder, and the dll is in place. Whats wrong?
I've tried commenting, problem is... everywhere - every line.

Edited by Mister_M, 17 December 2009 - 07:22 AM.

  • 0

#19 Krisando

Krisando

    GMC Member

  • New Member
  • 1351 posts

Posted 04 May 2010 - 07:30 AM

This gives me a black screen on initlization, i'm in XP. =S

Edited by Krisando, 04 May 2010 - 07:31 AM.

  • 0

Posted Image


#20 guppylover

guppylover

    GMC Member

  • New Member
  • 112 posts

Posted 17 May 2010 - 02:43 PM

so it's a bot
  • 0
armouredcrow.org
nikc-nack.com

check out my xbox support engine project

#21 olivebates

olivebates

    GMC Member

  • GMC Member
  • 526 posts
  • Version:GM8

Posted 09 July 2013 - 02:58 PM

Download is broken..


  • 0

- Olivebates


#22 ThePC007

ThePC007

    Chickenator

  • GMC Member
  • 1062 posts
  • Version:GM:Studio

Posted 31 October 2014 - 11:11 PM

Wow, this is old. I need a dll like this though, so let's see how well it works. 

 

EDIT: works perfectly in GM8.0. :) Thanks. 


Edited by ThePC007, 31 October 2014 - 11:16 PM.

  • 0