Jump to content

n00b3

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

n00b3's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hello freakz, I am mostly familiar with php for serving up web pages; however, recently i have been writing a local command line script on my WinXP machine. I have spent the better part of this last week and all of today trying to figure out a way to send a mouse click to a particular window on the screen. I first saw w32api.dll on the php.net site. However, I cannot find this dll, but this searching took me to winbinder and php-gtk2. It seems that I can only get winbinder to get (not send) mouse information: event type and x,y positions. I am not too familiar with php-gtk nor creating dlls. I want to use my local php command line script on my winXP machine to send mouse events (click) to a window. I am open to any ideas on how to do this. For C++ and VB there seems to be the SendMessage() function. Is there a way to tap into that function from my php script? winbinder has a function that wraps the SendMessage() function called wb_send_message, but after literally 9 hours i quit. Possible ideas: -Load a dll with the dl() function? (Write the dll with VB or C++) -use the w32api_register_function() in php somehow to 'tap' into windows api functions. -use a project that can assist me in this like php-gtk2 or winbinder -maybe someone has a copy of w32api.dll -something about COM objects, though i am really not familiar I am throwing out this question to the community and wondering what your suggestions would be for how to go about sending a mouse click event to my windows api from a php script. I am not interested in writing javascript as this is not a web application. Any thoughts, comments, suggestions, about how to do send mouse events from a php script will be much appreciated. Thanks in advance,
  2. Hello, <?php $somestr = "0,1"; $array = array($somestr); print_r($array); echo count($array); /* The above code prints out the following: Array ( [0] => 0,1 } 1 However, I want the following: Array ( [0] => 0 [1] => 1 } 2 */ ?> How do i get the string "0,1" to act more 'literally'. That is, I would like the string to be the two arguments into the array function rather than just the one "0,1" argument. The variable $somestr can be any variable type. I tried array({$somestr}) {array($somestr)} array((binary) $somestr) But these three attempts resulted in errors or not the desired result. Thanks in advance. DanK
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.