ConsultingJoe Posted August 1, 2006 Posted August 1, 2006 The site I want to link to is:https://www.paypal.com/cgi-bin/webscr?cmd=_...charset=UTF%2d8try 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¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8" Run(@ComSpec & " /c " & 'start ' & $link, "", @SW_HIDE) Check out ConsultingJoe.com
GaryFrost Posted August 1, 2006 Posted August 1, 2006 $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¤cy_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.
ConsultingJoe Posted August 1, 2006 Author Posted August 1, 2006 $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¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8"'that doesnt work. it just opens the dos promped. Check out ConsultingJoe.com
Moderators SmOke_N Posted August 1, 2006 Moderators Posted August 1, 2006 (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¤cy_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 August 1, 2006 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.
GaryFrost Posted August 1, 2006 Posted August 1, 2006 $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¤cy_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.
ConsultingJoe Posted August 1, 2006 Author Posted August 1, 2006 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¤cy_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
AceLoc Posted August 2, 2006 Posted August 2, 2006 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]
MHz Posted August 2, 2006 Posted August 2, 2006 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.
ConsultingJoe Posted August 2, 2006 Author Posted August 2, 2006 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. cool, I didn't know there where that many switches and syntax Check out ConsultingJoe.com
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now