Jump to content

open iexplore.exe


Recommended Posts

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

Link to comment
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)

Link to comment
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

Link to comment
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

<{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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...