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 

Start Browser with Gmail

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
iamnu



Joined: 31 May 2007
Posts: 23

PostPosted: Tue Dec 08, 2009 1:41 pm    Post subject: Start Browser with Gmail Reply with quote

I'm trying to start my browser by clicking on the Gmail icon in the system tray, using the following code. It is not working because it seems not to know the x,y values are in the system tray for the right click, and the left click doesn't work at all.

Can someone explain?
Thanks...

#B::
MOUSECLICK,R,1368,888
MOUSECLICK,L,1300,770
Return
Back to top
View user's profile Send private message
Peter



Joined: 30 Dec 2005
Posts: 448

PostPosted: Tue Dec 08, 2009 1:49 pm    Post subject: Reply with quote

Did you set CoordMode for mouse to screen coordinates?
Back to top
View user's profile Send private message
Jasdeep



Joined: 09 Nov 2009
Posts: 258

PostPosted: Tue Dec 08, 2009 1:51 pm    Post subject: Reply with quote

which browser u r using and if u want to only run the gmail.com then you should just write as Run www.gmail.com then the .ahk script will automatically open the default browser with the above mentioned address
Back to top
View user's profile Send private message
iamnu



Joined: 31 May 2007
Posts: 23

PostPosted: Tue Dec 08, 2009 2:21 pm    Post subject: Reply with quote

Peter:
I was not using CoordMode, but I added it, and it did not solve the problem.

Jasdeep:
Excellent suggestion! It works fine. I should have thought of that myself.

Thank you both for your help...
Back to top
View user's profile Send private message
Jasdeep



Joined: 09 Nov 2009
Posts: 258

PostPosted: Tue Dec 08, 2009 2:35 pm    Post subject: Reply with quote

well for coordmode you have to add
Code:


CoordMode,mouse,relative,
Mouseclick,left,1300,770


well instead of creating separate .ahk scripts for your each website(which you want to open) it would be better to create one gui with several buttons and clicking on the respective buttons will open your required webpage...choice is yours

cheers
Back to top
View user's profile Send private message
Display posts from previous:   
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