Jump to content

Recommended Posts

Posted

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)
Check out ConsultingJoe.com
Posted

$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.

 

Posted

$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.
Check out ConsultingJoe.com
  • Moderators
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

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.

Posted

$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.

 

Posted

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
Check out ConsultingJoe.com
Posted

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]

Posted

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:

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
×
×
  • Create New...