Sign in to follow this  
Followers 0
ConsultingJoe

dos command: "start" to open a site

9 posts in this topic

The site I want to link to is:

https://www.paypal.com/cgi-bin/webscr?cmd=_...charset=UTF%2d8

try this, you'll see what I mean, is there a way to open it?

$link = "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=jsammarco%40gmail%2ecom&item_name=Joliet%2086%20Millage%20Donation&item_number=1&no_shipping=1&cn=Optional%20Note&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8"
Run(@ComSpec & " /c " & 'start ' & $link, "", @SW_HIDE)

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Share this post


Link to post
Share on other sites



$link = '"https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=jsammarco%40gmail%2ecom&item_name=Joliet%2086%20Millage%20Donation&item_number=1&no_shipping=1&cn=Optional%20Note&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8"'


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

$link = '"https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=jsammarco%40gmail%2ecom&item_name=Joliet%2086%20Millage%20Donation&item_number=1&no_shipping=1&cn=Optional%20Note&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8"'
that doesnt work. it just opens the dos promped.

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Just use the DLLCall()...

$link = "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=jsammarco%40" & _
        "gmail%2ecom&item_name=Joliet%2086%20Millage%20Donation&item_number=1&no_" & _
        "shipping=1&cn=Optional%20Note&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8"
DllCall("shell32.dll", "long", "ShellExecute", "hwnd", 0, "string", 'open', "string", _
$link, "string", '', "string", @ScriptDir, "long", @SW_SHOWNORMAL)

Edit:

BTW:

Run(@ComSpec & " /c " & 'start ' & $link, "", @SW_HIDE)

Should be:

Run(@ComSpec & ' /c start ' & $link, '', @SW_HIDE)
(But it's still going to process errors because of the characters I believe.) Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

$link = '"https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=jsammarco%40gmail%2ecom&item_name=Joliet%2086%20Millage%20Donation&item_number=1&no_shipping=1&cn=Optional%20Note&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8"'
Run(@ComSpec & " /c start explorer " & $link, "", @SW_HIDE)


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Just use the DLLCall()...

$link = "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=jsammarco%40" & _
        "gmail%2ecom&item_name=Joliet%2086%20Millage%20Donation&item_number=1&no_" & _
        "shipping=1&cn=Optional%20Note&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8"
DllCall("shell32.dll", "long", "ShellExecute", "hwnd", 0, "string", 'open', "string", _
$link, "string", '', "string", @ScriptDir, "long", @SW_SHOWNORMAL)

Edit:

BTW:

Run(@ComSpec & " /c " & 'start ' & $link, "", @SW_HIDE)

Should be:

Run(@ComSpec & ' /c start ' & $link, '', @SW_HIDE)
(But it's still going to process errors because of the characters I believe.)
Thanks, it worked great

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Share this post


Link to post
Share on other sites

Run(@ComSpec & ' /c start ' & $link, '', @SW_HIDE)

where is the /c start for? (just wanna know).


[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
Share on other sites

Run(@ComSpec & ' /c start ' & $link, '', @SW_HIDE)

where is the /c start for? (just wanna know).

Start a Dos prompt and type in cmd /?

or run this

Run(@ComSpec & ' /k ' & @ComSpec & ' /?')

Now you are going to need to find out what the k means that I used. :whistle:

Share this post


Link to post
Share on other sites

Start a Dos prompt and type in cmd /?

or run this

Run(@ComSpec & ' /k ' & @ComSpec & ' /?')

Now you are going to need to find out what the k means that I used. :whistle:

cool, I didn't know there where that many switches and syntax

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

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
Sign in to follow this  
Followers 0