AutoHotkey Community

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: September 12th, 2008, 6:34 pm 
Offline

Joined: November 18th, 2006, 7:56 pm
Posts: 305
Aaahh thanks, Serenity -- that works great! I wasn't aware that "Input" would be able to act like a hotkey (instead of just sitting there and waiting).

Thanks also for the hint regarding "A_TimeIdle"!

Now it should be almost possible to code my "background keyboard player"!

Greetings David.P


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 17th, 2009, 3:12 pm 
Offline

Joined: June 3rd, 2008, 6:44 pm
Posts: 27
While the script itself is working fine, I like it to work only when a certain window is active. But it doesn't work. Here's the code:
Code:
#IfWinExist ahk_class gdkWindowToplevel

Loop
{
   Input, Key, L1 V, {LControl}{RControl}{LAlt}{RAlt}{LShift}{RShift}{LWin}{RWin}{AppsKey}{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}{Left}{Right}{Up}{Down}{Home}{End}{PgUp}{PgDn}{Del}{Ins}{BS}{Capslock}{Numlock}{PrintScreen}{Pause}
   If ErrorLevel
      SoundBeep
}


I have also tried putting #IfWinExist after If ErrorLevel, but that didn't work either. Any thoughts?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 18th, 2009, 3:55 am 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
The point is no input. I think the easiest would be
Code:
~a::
~b::
~c::
etc.
SoundBeep
Return

_________________
aboutscriptappsscripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 18th, 2009, 9:31 am 
Offline

Joined: June 3rd, 2008, 6:44 pm
Posts: 27
It looks a little hokey, but it works. Thanks!


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher and 15 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