Cannot run exe from asp.net Programming Web Development by lennyli … achieve the following: Have a webpage with a button, when pressed, it will launch a webpage that runs a server side… Re: Cannot run exe from asp.net Programming Web Development by Salem …. Initially asked... > Have a webpage with a button, when pressed, it will launch a webpage that runs a server side… Re: Cannot run exe from asp.net Programming Web Development by pritaeas > while at the same time run the same exe on the local client pc. Not possible. Re: Cannot run exe from asp.net Programming Web Development by pritaeas No, Javascript cannot run/start executables on the client machine. Re: Cannot run exe from asp.net Programming Web Development by rproffitt I see pritaeas has answered so I'll move to the next stage of the discussion which is to ask what you need in your web site. For example there is an "online notepad" which does some basic notepad work. And there are many screensavers that run from a webpage with an example at whitescreen.online . You can get there. Re: Cannot run exe from asp.net Programming Web Development by lennyli Why does the following code dont run and launch the exe I specify (eg, notepad.exe, or ribbons.scr)? <%@ Language="VBScript" %> <!DOCTYPE html> <html> <Body> <% Dim objShell Dim command Dim result ' Path to the executable command = "C:\… Re: Cannot run exe from asp.net Programming Web Development by pritaeas Are you sure IIS is configured to allow running external scripts? Re: Cannot run exe from asp.net Programming Web Development by lennyli > Are you sure IIS is configured to allow running external scripts? The document folder and asp file has security permission set to ALL rights for 'everyone'. In IIS, under handler mappings for .asp files, under request restriction/access, script was chosen (not execute) for feature permissions, all 'read' 'script' 'execute' are chosen Re: Cannot run exe from asp.net Programming Web Development by lennyli > I see pritaeas has answered so I'll move to the next stage of the discussion which is to ask what you need in your web site. > > For example there is an "online notepad" which does some basic notepad work. And there are many screensavers that run from a webpage with an example at whitescreen.online . > > You can … Re: Cannot run exe from asp.net Programming Web Development by john_111 Let me expand on what rproffitt said, by explaining why. If a webpage could run a program installed on another computer, the entire world wide web would be hacked into tiny pieces and cease to exist. No one would ever use the web, it would be so totally insecure. So web pages are prohibited from running programs on your computer. They can … Re: Cannot run exe from asp.net Programming Web Development by Reverend Jim >No, Javascript cannot run/start executables on the client machine. Technically correct but there are ways around it. For example, save a file in a special folder on the target computer, which has a folder watch on that folder. The watching task could then trigger a local task. Re: Cannot run exe from asp.net Programming Web Development by Neil_brown001 Why your approach isn’t working What you're trying to do is mostly blocked by modern security rules — for good reasons. Here's the breakdown: Running a .exe on the server You can technically make the server launch an .exe file like Notepad, but: It will run in the background on the server, not visibly on the desktop. It needs special … Re: Cannot run exe from asp.net Programming Web Development by lennyli > Why your approach isn’t working > What you're trying to do is mostly blocked by modern security rules — for good reasons. Here's the breakdown: > > Running a .exe on the server > You can technically make the server launch an .exe file like Notepad, but: > > It will run in the background on the server, not visibly on… Re: Cannot run exe from asp.net Programming Web Development by gediminas.bukauskas.7 Pritaeas answered the question: normal WEB security settings forbids launching executables on a client machine. The only legal workaround is to create windows service (daemon in Linux environment), install it on client machine and listen for some commands coming from server over WEB sockets. Re: Cannot run exe from asp.net Programming Web Development by lennyli > Pritaeas answered the question: normal WEB security settings forbids launching executables on a client machine. The only legal workaround is to create windows service (daemon in Linux environment), install it on client machine and listen for some commands coming from server over WEB sockets. Sure, I understand, but for my above new … Re: Cannot run exe from asp.net Programming Web Development by Salem > When I run the command "python server.py" on the server pc, it held for a second, then released back to the command prompt. So did it even give you `print("Waiting for a connection...")` ? Consider making your server main like this. if __name__ == "__main__": print('Server Begin') … Re: Cannot run exe from asp.net Programming Web Development by lennyli > > When I run the command "python server.py" on the server pc, it held for a second, then released back to the command prompt. > > So did it even give you `print("Waiting for a connection...")` ? > > Consider making your server main like this. > > if __name__ == "__main__": >… Re: Cannot run exe from asp.net Programming Web Development by lennyli I fixed the problem by ensuring the path is including python. Also on the server I must run pip install Thank you all All working now Re: Cannot run exe from asp.net Programming Web Development by Salem Congrats on getting going. > Even if i run the setup and ticked the option "add to path", the echo %PATH% command didnt seem to show what i expected. Yeah, this won't transform the PATH of any existing process. In increasing annoyance order, you may have to: 1. Start a new cmd window 2. Log out and log in again 3. Reboot … How to determine which button was pressed? Programming Web Development by n00b0101 …code to "figure out" which button was pressed. When the user presses one of the buttons, … to popup a form depending upon which button was pressed. Wherever there's a reference to "sample0"… change to the id of the button that was actually pressed. [code] YAHOO.namespace("forms.container"); function init() … Re: C++ Form problem: pause execution until button is pressed Programming Software Development by VernonDozier …;} else if (<button 2 on form is pressed>) {<then carry out function_2>} &… (still_user_turn == true) { // <wait until button is pressed and action related function functions (plus or minus 1 from…stick a pause in there? } // button 1 has been pressed. Do whatever. } [/code] Within that button1_Clicked function, set… Testing whether shift is pressed Programming Software Development by Medalgod …object sender, KeyPressEventArgs e) { //If enter is pressed and shift isn't //This allows for line breaks… rtbInput.Text.Length - 1); Send(); } //Else if shift is pressed else if (e.KeyChar == (char)15) { shiftPressed = true;… Re: How do you check if arrow keys are pressed? Programming Software Development by Diode …) { case ARROW_KEY_UP: printf("\nYou pressed the UP arrow key!"); return; …; case ARROW_KEY_LEFT: printf("\nYou pressed the LEFT arrow key!"); return… Mouse event pressed/released (C++) Programming Software Development by Extremus … came up. I found out the way to catch the pressed event: [CODE] #include <windows.h> #include….Event.MouseEvent.dwButtonState & FROM_LEFT_1ST_BUTTON_PRESSED)) { printf("Left Mouse - Pressed.\n"); } } } [/CODE] What I want to use …is to catch the time elapsed between the 'pressed' and 'released' event. Re: Mouse event pressed/released (C++) Programming Software Development by nezachem … it for is to catch the time elapsed between the 'pressed' and 'released' event.[/QUOTE] [CODE] while( TRUE ) { ReadConsoleInput(…InputRec.Event.MouseEvent.dwButtonState & FROM_LEFT_1ST_BUTTON_PRESSED) { printf("Left Mouse - Pressed.\n"); } else { printf("Left Mouse - Released\n&… C++ Form problem: pause execution until button is pressed Programming Software Development by carrythe1 …decision is made (one of the buttons is pressed). I have added a simplified version of the…{ while (still_user_turn == true) { // <wait until button is pressed and action related function functions (plus or minus 1 from…and continue the program when the button is pressed but I cannot seem to get it to … Some action tobe done in RTB when Enter key pressed.... Programming Software Development by Nivass … key on the rich text box. i.e; If user pressed enter key the rich text box cursor should not move…. I have achived this to some what. When enter key pressed it do action what needs to be done. the issue… in the RTB. Say pointer in 70 line and i pressed enter key pointer move to 71 line and do the… Tkinter which button was pressed? Programming Software Development by Gobble45 … bottom right square missing.) when one of the buttons is pressed, and if it is directly next to the empty square… cant think of a way to determine which button was pressed. i only want to use a single function for this… "get" the details of the button that was pressed, is there like a value? or something that will do… Wait for a button to be pressed before sending info back to caller Programming Software Development by getack … be inserted here*/); OKPressed = true; System.out.println("OK Pressed"); //this.dispose(); } public void display() { java.awt.EventQueue.…a boolean variable that turns true when the button is pressed. For some reason it keeps on spinning and the waitForOK… Re: C++ Form problem: pause execution until button is pressed Programming Software Development by carrythe1 … for input> if (<button 1 on form is pressed>) {<then carry out function_1>} else if (<…;button 2 on form is pressed>) {<then carry out function_2>} <continue code…