AutoHotkey Community

It is currently May 27th, 2012, 12:55 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: firefox active
PostPosted: August 31st, 2011, 5:04 pm 
How to make firefox the current page, without ALT tabbing?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 31st, 2011, 5:29 pm 
Offline

Joined: June 10th, 2011, 6:12 pm
Posts: 115
Use WinActivate:
http://www.autohotkey.com/docs/commands/WinActivate.htm

_________________
“There is a computer disease that anybody who works with computers knows about. It's a very serious disease and it interferes completely with the work. The trouble with computers is that you 'play' with them!” Richard Feynman


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 31st, 2011, 5:44 pm 
I have below but the icon doesn't show up and doesn't make Firefox active.
Code:
IfWinExist, Mozilla  Firefox
    WinActivate ; use the window found above
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 31st, 2011, 6:23 pm 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
You need SetTitleMatchMode 2

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 31st, 2011, 6:44 pm 
Where do I put that?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 31st, 2011, 6:49 pm 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
Please read the linked documentation.

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2011, 11:15 pm 
I;m lost, help;


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2011, 11:30 pm 
Offline

Joined: September 15th, 2009, 1:14 am
Posts: 562
Location: Tempe, Arizona
Anonymous wrote:
I;m lost, help;

He linked to the settitlematchmode documentation that states you can put it in the autoexecute section of a script to make it the default for all hotkeys/etc in that script.

Infact, it specifically states this:
Quote:
Every newly launched thread (such as a hotkey, custom menu item, or timed subroutine) starts off fresh with the default setting for this command. That default may be changed by using this command in the auto-execute section (top part of the script).

_________________
Disclaimer: I'm not an expert by any means; I just try to help out where I can.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2011, 12:28 pm 
I don't understand.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 14th, 2011, 12:15 pm 
how to make internet explorer the active window?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 14th, 2011, 12:36 pm 
Offline

Joined: July 10th, 2008, 8:49 am
Posts: 1865
Location: Brussels, Belgium
Lamer spotted ! Fall back, fall back !

:-D

Ok, seriously :

Code:
SetTitleMatchMode 2 ; Look for the title anywhere in the... title >_>

F1::
IfWinExist Mozilla Firefox ; With only ONE space between Mozilla and Firefox
WinActivate
Return
F2::
IfWinExist Internet Explorer ; With only ONE space between Mozilla and Firefox
WinActivate
Return


Note : titles are case sensitive.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 14th, 2011, 1:49 pm 
hehe finally took a pity. Just dunno how to proceed now.... upon insertion of this code to my script it doesn't work anymore.... I placed it in the middle, at the top, at the bottom, all to no avail


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 14th, 2011, 2:29 pm 
Offline

Joined: July 10th, 2008, 8:49 am
Posts: 1865
Location: Brussels, Belgium
The windows must exist, it doesn't LAUNCH the program.

Is it what you want ? Just bringing the window to front ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 14th, 2011, 2:37 pm 
Firefox is open. I did try it standalone version and it did make Firefox active. Problem arise when I inserted in my script. Doesn't work on top, middle and button placement.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 14th, 2011, 5:13 pm 
it worked now at the top, I dunno what happened earlier. thanks for the code


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, chaosad, MSN [Bot] and 22 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group