| View previous topic :: View next topic |
| Author |
Message |
iamnu
Joined: 31 May 2007 Posts: 23
|
Posted: Tue Dec 08, 2009 1:41 pm Post subject: Start Browser with Gmail |
|
|
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 |
|
 |
Peter
Joined: 30 Dec 2005 Posts: 448
|
Posted: Tue Dec 08, 2009 1:49 pm Post subject: |
|
|
| Did you set CoordMode for mouse to screen coordinates? |
|
| Back to top |
|
 |
Jasdeep
Joined: 09 Nov 2009 Posts: 258
|
Posted: Tue Dec 08, 2009 1:51 pm Post subject: |
|
|
| 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 |
|
 |
iamnu
Joined: 31 May 2007 Posts: 23
|
Posted: Tue Dec 08, 2009 2:21 pm Post subject: |
|
|
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 |
|
 |
Jasdeep
Joined: 09 Nov 2009 Posts: 258
|
Posted: Tue Dec 08, 2009 2:35 pm Post subject: |
|
|
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 |
|
 |
|