I'm writing a simple WMI-based monitor application that sends monitoring data over a TCP Network socket to an Android app. I have no issue writing the Android App with Titanium Mobile (JavaScript) so that it creates a socket and accepts the data. However I'm looking for the best (easiest and fastest) way to get the WMI data and send it over the TCP socket but with a VERY basic Windows GUI. The only reason for the GUI at all is so the user knows the software is running, and possibly they will enter IP here to connect to the android over wifi. Here's my situation so far:
I suppose the main issue I'm facing is that I could write this app for PHP and just Bamcompile it but I need to get the users input and let them know that something is running. I also presume using something like Wapache to just show a web browser with no toolbar wouldn't work because the PHP has to run in a continuous loop and that would crash any "browser"? Will this work?
set_time_limit( 0 ); // 0 means never timeout
ignore_user_abort(true); // continue running when browser closes
So any ideas? Jscript and JSC ?
Bear in mind that I don't want to learn any Microsoft .Net stuff or complex C languages, or Java.
I'm sure I can do something like this with my current skills in PHP / JavaScript? No?
I too had problems installing the Tk
module for my Strawberry Perl, but found that it installs manually just fine. Take a look at
perldoc permodinstall
to understand the process.
Perhaps the simplest way - if your CPAN is downloading packages correctly - is to run the cpan shell and say
cpan> look Tk
which will download and unpack the module for you and then shell out to a command prompt with the unpack directory as your current location. Here you can go ahead and say
perl MAKEFILE.pl
dmake
dmake test
dmake install
as described in perlmodinstall. (dmake
is the flavour of make used by Strawberry Perl.)
My personal preference for a GUI library is the wxWindows API Wx
which is designed from the ground up to be portable and has a look and feel that depends on the platform where it is running. But you are likely to get more help using Tk
, so the choice is yours.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With