Sign in to follow this  
Followers 0
LoneReaper

open iexplore.exe

5 posts in this topic

I want to be able to open internet explorer and have it open this page

http://trkcnfrm1.smi.usps.com/netdata-cgi/...trOrigTrackNum=

and at the very end of the "TrackNum=" i want to add the variable

$usps

how 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

Share this post


Link to post
Share on other sites

#2 ·  Posted (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 by automagician

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 key

Press hotkey

[program takes over]

ctrl+c

variable = clipget()

open iexplore to website + variable

HotKeySet("{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 by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

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