| View previous topic :: View next topic |
| Author |
Message |
Newb Guest
|
Posted: Thu Mar 10, 2005 12:12 pm Post subject: Open a new IE window |
|
|
i use the following script to help me shortcut alot of things... but one problem
| Code: | #notrayicon
^F12::Run rundll32.exe user32.dll LockWorkStation, %windir%\System32
^F11::Shutdown,0
^F2::Run C:\Program Files\Microsoft Office\Office10\OUTLOOK.EXE /recycle
^F1::Run Http://www.google.com
return |
When i send CTRL + F1 if i have any otehr existing IE windows open it... opend google in there ... can i not get it to open a new IE window instead of changing a current website open?
Hope i make sense
Thanks |
|
| Back to top |
|
 |
ILL.1
Joined: 29 Sep 2004 Posts: 84
|
Posted: Thu Mar 10, 2005 1:03 pm Post subject: |
|
|
For this to work, you need to open a new instance of IE and pass the page as a parameter.
| Code: | | ^F1::Run, "C:\Program Files\Internet Explorer\iexplore.exe" http://www.google.com |
_________________ ===============
----------ILL.1-----------
=============== |
|
| Back to top |
|
 |
garry Guest
|
Posted: Thu Mar 10, 2005 1:30 pm Post subject: |
|
|
return (or exit) after each command
| Code: |
^F2::
Run C:\Program Files\Microsoft Office\Office10\OUTLOOK.EXE /recycle
return
^F1::
Run Http://www.google.com
return
|
|
|
| Back to top |
|
 |
ILL.1
Joined: 29 Sep 2004 Posts: 84
|
Posted: Thu Mar 10, 2005 3:56 pm Post subject: |
|
|
A return is not needed for one line hotkeys, but it doesn't hurt as a good programming practice. Also putting {} around all conditional statements helps a bunch when debugging. _________________ ===============
----------ILL.1-----------
=============== |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Thu Mar 10, 2005 4:14 pm Post subject: |
|
|
| ILL.1 wrote: | | Code: | | ^F1::Run, "C:\Program Files\Internet Explorer\iexplore.exe" http://www.google.com |
| Run, iexplore.exe http://www.google.com works too. _________________
 |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Mar 10, 2005 6:33 pm Post subject: |
|
|
Does this script work for FireFox Also?
I'm 99% using FireFox now (only using IE for Windows Update). |
|
| Back to top |
|
 |
ILL.1
Joined: 29 Sep 2004 Posts: 84
|
Posted: Thu Mar 10, 2005 7:50 pm Post subject: |
|
|
Just change the the program path to the exe for firefox and it should work. _________________ ===============
----------ILL.1-----------
=============== |
|
| Back to top |
|
 |
|