Damein

ShellExecute won't run this Localhost file

9 posts in this topic

#1 ·  Posted (edited)

Not sure why this would be or how to get around it.

ShellExecuteWait('http://localhost:54657/?action=[Speak("Hello World")]&key=ABC1234')

Any ideas? I can do an _IECreate() but would rather not. I can run it manually in Firefox and IE and it works just fine then.

 

Thanks!

Edited by Damein

MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Share this post


Link to post
Share on other sites



2 hours ago, Damein said:

Not sure why this would be or how to get around it.

ShellExecuteWait('http://localhost:54657/?action=[Speak("Hello World")]&key=ABC1234')

Any ideas? I can do an _IECreate() but would rather not. I can run it manually in Firefox and IE and it works just fine then.

 

Thanks!

 

;~ ShellExecuteWait('http://localhost:54657/?action=[Speak("Hello World")]&key=ABC1234', "", "", "open")
ShellExecuteWait('http://localhost:54657/?action=[Speak("Hello World")]&key=ABC1234', Null, Null, "open")

 


“The world won’t care about your self-esteem. The world will expect you to accomplish something Before you feel good about yourself.”

Share this post


Link to post
Share on other sites

Neither the commented code nor the non seemed to of worked. Although if I attempt it a couple times in a row j get an error from Firefox.

 


MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Share this post


Link to post
Share on other sites

you don't try to run a file, you have only parameters. I think puting them in a file and trying to (Shell)executing this file will work.

Share this post


Link to post
Share on other sites

The OP actually is trying to run an URL, which works when used like: ShellExecuteWait("Http://google.com")

You can't have spaces in a URL so try:

ShellExecuteWait('http://localhost:54657/?action=[Speak("Hello+World")]&key=ABC1234')

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I think "+" and space is different on URL!

http://localhost:54657/?action=[Speak(%22Hello%20World%22)]&key=ABC1234

 


“The world won’t care about your self-esteem. The world will expect you to accomplish something Before you feel good about yourself.”

Share this post


Link to post
Share on other sites

(: I try and no difference! 
Apologize for think of my ignorance!  :'(


“The world won’t care about your self-esteem. The world will expect you to accomplish something Before you feel good about yourself.”

Share this post


Link to post
Share on other sites

@Jos's code works fine for me.  You should see your browser open with that URL.  You won't see any page since it requires a webserver with some service running to accept the arguments the OP is passing ... 


Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now