AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Open a new IE window

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Newb
Guest





PostPosted: Thu Mar 10, 2005 12:12 pm    Post subject: Open a new IE window Reply with quote

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

PostPosted: Thu Mar 10, 2005 1:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
garry
Guest





PostPosted: Thu Mar 10, 2005 1:30 pm    Post subject: Reply with quote

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

PostPosted: Thu Mar 10, 2005 3:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5390
Location: /b/

PostPosted: Thu Mar 10, 2005 4:14 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Guest






PostPosted: Thu Mar 10, 2005 6:33 pm    Post subject: Reply with quote

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

PostPosted: Thu Mar 10, 2005 7:50 pm    Post subject: Reply with quote

Just change the the program path to the exe for firefox and it should work.
_________________
===============
----------ILL.1-----------
===============
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group