Are you saying these buttons are on the screen to be clicked with a mouse or are they on the keyboard? If it's the keyboard, how does the user know which key for each action?
If the image is to be clickable, add an "on mouse down" event to the button image to trigger the action you require.
Brian.
It is actually more difficult to use keys than screen buttons. I have set up a small demonstration for you at sk8ter87 Demo but I will have to remove it from the Internet in a few days time. Use the "view page source" or equivalent in your browser to see how it is done. You can either use Javascript or you own code where I have used the alert() function.
If you want to use the keyboard, as far as I know, the only way is to ensure the cursor is in inside a form box then either add a "submit" button or press the Enter key. Web pages are by their nature designed to interact visually rather than read the keyboard directly although you can write your own special function of course.
Brian.
Also you can add a textbox object, and monitor key presses generating on key down events or text change.
you could also :
**broken link removed**
You could for example send 'w' through the serial or USB port.
your welcome.Thanks ama_trig.. I will look on it..by any chance you know to control hardware from web browser??
http://Pc1Ip:ThatSomePortYouWereListeningTo/TurnLeft
) by pressing the buttonLets assume above method doesn't work out.
What you can do is, create a tcp/ip socket with some known port on main application which runs the hardware on pc1 , and listen for a new connection - IP bind.
have the server running your web on that pc1.
so what you will be having on pc1 so far
1)a webserver holding you web contents listening on port 80
2)a hardware controller, with a tcp/ip socket listening to some port
Have a URL redirection to (https://Pc1Ip:ThatSomePortYouWereListeningTo/TurnLeft
) by pressing the button
You can easily read TurnLeft by the socket you have created as a request tag by the browser.
so if I understood correctly you are using mysql as a bridge between WEB and VB? Why not using winsock ?
OK
lets see, if you are serving your code in php,
1)
Download Quickphp quickphp - Google Search
Set your root and index html place.
Bind it on loopback 0.0.0.0 or localhost 127.0.0.1 or pc's host local ip for example, 192.168.1.X and port 80, start the service and unblock it, if you want to test over lan.
Take into account that doing so for WAN will require portforward
[I don't know if quickphp supports MYSQL or not]
2)Download UniServer
uniserver - Google Search
unpack it
Put your html files in C:\UniServer\www\
precheck and start the service by executing the main C:\UniServer\Start.exe
right click on icon and press: Install and run all services.
I done the part where the website can interact with the vb and then control the car..
In the vb that i created,do i need to add anything like listen to port 80..
so if I did understand correctly, you are running a webserver(uniserver) hosting a website which connects to sql file, then you write the changes to it.
also a visual basic application is running on that pc, checking sql file for changes and act on change to control the hardware.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?