LoneReaper Posted March 16, 2005 Share Posted March 16, 2005 I want to be able to open internet explorer and have it open this pagehttp://trkcnfrm1.smi.usps.com/netdata-cgi/...trOrigTrackNum=and at the very end of the "TrackNum=" i want to add the variable $uspshow would i do that? i tried$usps = ClipGet()run("C:\Program Files\Internet Explorer\iexplore.exe http://trkcnfrm1.smi.usps.com/netdata-cgi/...trOrigTrackNum= $usps")but it doesnt enter the variable it enters the text%20$usps Link to comment Share on other sites More sharing options...
automagician Posted March 16, 2005 Share Posted March 16, 2005 (edited) run("C:\Program Files\Internet Explorer\iexplore.exe http://trkcnfrm1.smi.usps.com/netdata-cgi/...trOrigTrackNum=" & $usps) You need to take the variable out of quotes Edited March 16, 2005 by automagician Link to comment Share on other sites More sharing options...
bshoenhair Posted March 16, 2005 Share Posted March 16, 2005 $URL = "http://trkcnfrm1.smi.usps.com/netdata-cgi/db2www/cbd_243.d2w/output?CAMEFROM=OK&strOrigTrackNum=" DllCall("shell32.dll", "long", "ShellExecute", "hwnd", 0, "string", '', _ "string", $URL, "string", '', "string", '', "long", @SW_SHOWNORMAL) Link to comment Share on other sites More sharing options...
LoneReaper Posted March 16, 2005 Author Share Posted March 16, 2005 got it thanks. now how do i copy the current hightlighted text to the clipboard? i want to be able to highlight a tracking number and press a hotkey to open up the USPS tracking site with the tracking number entered. thanks in advance Link to comment Share on other sites More sharing options...
Blue_Drache Posted March 16, 2005 Share Posted March 16, 2005 (edited) got it thanks. now how do i copy the current hightlighted text to the clipboard?i want to be able to highlight a tracking number and press a hotkey to open up the USPS tracking site with the tracking number entered.thanks in advance<{POST_SNAPBACK}>Highlight tracking keyPress hotkey[program takes over]ctrl+cvariable = clipget()open iexplore to website + variableHotKeySet("{F10}","_USPS") HotKeySet("{ESC},"MyExit") While 1 Sleep(10) WEnd Func _USPS() Local $usps Send("^C"); copy $usps = ClipGet() run("C:\Program Files\Internet Explorer\iexplore.exe http://trkcnfrm1.smi.usps.com/netdata-cgi/...TrackNum=" & $usps) EndFunc Func MyExit() Exit EndFunc Edited March 16, 2005 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
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