AutoHotkey Community

It is currently May 26th, 2012, 11:35 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: November 15th, 2008, 4:27 pm 
Offline

Joined: October 15th, 2008, 1:26 am
Posts: 25
Location: SoCal
Two questions here. Can I have a series of letters do something. Say hold down alt and tap m and then tap s. Then also how to open a certain web page?
Thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2008, 4:47 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
http://www.autohotkey.com/ wrote:
Introduction
AutoHotkey is a free, open-source utility for Windows. With it, you can:

Automate almost anything by sending keystrokes and mouse clicks. You can write a mouse or keyboard macro by hand or use the macro recorder.
Create hotkeys for keyboard, joystick, and mouse. Virtually any key, button, or combination can become a hotkey.
Expand abbreviations as you type them. For example, typing "btw" can automatically produce "by the way".
Create custom data-entry forms, user interfaces, and menu bars. See GUI for details.
Remap keys and buttons on your keyboard, joystick, and mouse.
Respond to signals from hand-held remote controls via the WinLIRC client script.
Run existing AutoIt v2 scripts and enhance them with new capabilities.
Convert any script into an EXE file that can be run on computers that don't have AutoHotkey installed.
Getting started might be easier than you think. Check out the quick-start tutorial.

i suggest starting with the front page of this site

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2008, 6:51 pm 
Offline

Joined: October 2nd, 2008, 9:23 pm
Posts: 13
If someone knows the answer to Mikesnm's inquiry, please respond. I did read the manual, specifically the Hotkeys page and could not find the answer.

Thank you.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2008, 8:08 pm 
Offline

Joined: June 27th, 2006, 2:38 pm
Posts: 385
Location: Canada
Check the index (in the ahk help file) on these topics:

Hotkeys - You probably already figured this out
Run - To open websites or documents
Variables - For knowing if the user has pressed the first hotkey.

For the mutliple hotkey thing, here's some simple code.

Code:
!1::  ; Alt+1
Hotkey1 = True
return

!2::  ; Alt+2
If Hotkey1 = True   ; First hotkey has been pressed
{
  Hotkey1 = False   ; Reset the hotkeys
  Run http://www.google.ca
  return
}
return

(untested)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2008, 3:01 am 
Offline

Joined: October 15th, 2008, 1:26 am
Posts: 25
Location: SoCal
I have read the manual several times as well, and before I post any question, I review it. I'm sure I miss a lot, a lot that I don't get- sorry. It's difficult for a layman. A lot of us are not programmers; just people who like this program, and see a forum called 'ask for help', and then ask. This is the second time I get some insinuation that I'm not trying to figure it out myself first. The last guy said RTFM- classy. If someone doesn't want to answer, then don't. It takes less time to just leave an answer if it's easy for you. I am learning with each response I get, and I'm really trying.

But thanks for the code you provided, I appreciate it.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Thanks!
PostPosted: November 16th, 2008, 3:12 am 
Offline

Joined: October 15th, 2008, 1:26 am
Posts: 25
Location: SoCal
hey Conquer
Your code works great! Thanks!

But
you mean they got Google in Canada even?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2008, 7:46 pm 
Lmao, yes there's google in Canada, America, and the UK. :)

Np, good to hear appreciation.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2008, 9:45 pm 
would this work (not tried):

Code:
! & m & s:: run http://www.google.com


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2008, 9:56 pm 
Offline

Joined: October 15th, 2008, 1:26 am
Posts: 25
Location: SoCal
I get message: 'invalid hotkey'.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: nope
PostPosted: November 17th, 2008, 5:52 am 
Offline

Joined: October 15th, 2008, 1:26 am
Posts: 25
Location: SoCal
cough.
anyone in socal knows why.

Conquer's code does the trick (even though it sends you to some wierd site up north).

Looks like you guys are thinking there's a really simple way to do it, but seems like those never work- being too logical and all.

Conquer thanks again.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2008, 2:02 pm 
Offline

Joined: July 22nd, 2008, 1:49 pm
Posts: 151
If your plan was to make a script that only ran something if alt was held down, and then m and s were taped. Then conquers script has a small flaw, if you click alt + i, then do something else, then click alt + m it will launch. Dont know if this is a problem for you with you current hotkeys. If you dont want this you could either set a timedelay on alt + i, so that hotkey1 = false after 5-10 secs. Or could just make it reset if any other buttons were pushed.

Dont know if this matters to you at all :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2008, 7:27 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
i repeat my suggestion on reading the help file
are you all saying you really cant figure out how to change conquerers url?
just change the url to any site you want

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2008, 11:10 pm 
Offline

Joined: October 15th, 2008, 1:26 am
Posts: 25
Location: SoCal
We're discussing the hotkey combo, not the URL.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2008, 12:17 am 
Offline

Joined: November 9th, 2008, 12:33 am
Posts: 14
What about if you've mapped Alt+M to do something already? Can you then map Alt+m+s to do something else, without having the Alt+M action fire as well?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2008, 1:20 am 
Offline

Joined: October 15th, 2008, 1:26 am
Posts: 25
Location: SoCal
No. AHK will tell you you've assigned a duplicate key match and will terminate.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Exabot [Bot] and 34 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