PHP To Simulate a "Click" or a "Keystroke&quo
Moderator: General Moderators
-
ForceGamerDotCom
- Forum Newbie
- Posts: 5
- Joined: Fri Aug 13, 2004 12:36 am
PHP To Simulate a "Click" or a "Keystroke&quo
Okay this one is a doozy.
I need to somehow make PHP simulate a Click on a certain coordinate of the screen, and I also need PHP to simulate a keystroke, such as sending F11 to a system. I need to incorporate PHP into my C++ core program... It is for a bot for a game.
Any help at all would be much appreciated.
I need to somehow make PHP simulate a Click on a certain coordinate of the screen, and I also need PHP to simulate a keystroke, such as sending F11 to a system. I need to incorporate PHP into my C++ core program... It is for a bot for a game.
Any help at all would be much appreciated.
-
ForceGamerDotCom
- Forum Newbie
- Posts: 5
- Joined: Fri Aug 13, 2004 12:36 am
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- arcanechaos
- Forum Newbie
- Posts: 4
- Joined: Sat Aug 14, 2004 3:27 am
- Location: Long Beach, CA
php doesnt run on the persons machine, it executes before you get the page displayed on your screen. javascript runs on any javascript enabled browser, and executes after the page has been loaded. two different types of usage. sounds like you need php to get the info, javascript to use the info, and c/c++ to do the rest.
however what you could do is you could use an image map on your coordinate system, that would link to a PHP page that would execute the query to store the click... then refresh the current page.
as for the F11, no clue how you're going to do that... the only thing i could think of would be to use a javascript keyhook to catch the F11 keystroke, then have it execute a certain PHP page and refresh the current page or whatever you want to do.
goodluck, sounds like a tough situation...
as for the F11, no clue how you're going to do that... the only thing i could think of would be to use a javascript keyhook to catch the F11 keystroke, then have it execute a certain PHP page and refresh the current page or whatever you want to do.
goodluck, sounds like a tough situation...
-
ForceGamerDotCom
- Forum Newbie
- Posts: 5
- Joined: Fri Aug 13, 2004 12:36 am
I'm wondering that as well. Since it's a bot for a game I am assuming it's for windows. If so there are plenty of languages other than c/c++ capable of doing a mouseclick and sending a keystroke. Whatever features of php you require must be doable in one of them with less effort than writing an interpreter.
Also if you are going to write an interpreter for php in c++ then you are going to have to implement the functionality of php that you require in c++ to interpret it. Why not just cut out a lot of work and do it all in c++ to start with? Unless some form of scripting is needed.
Also if you are going to write an interpreter for php in c++ then you are going to have to implement the functionality of php that you require in c++ to interpret it. Why not just cut out a lot of work and do it all in c++ to start with? Unless some form of scripting is needed.