AutoHotkey Community

It is currently May 22nd, 2012, 2:09 pm

All times are UTC [ DST ]


Search found 410 matches
Search these results:

Author Message

 Forum: Tutorials   Topic: The definitive autofire thread!

Posted: Today, 6:22 am 

Replies: 82
Views: 26287


I suggest altering the code for "The Toggle" in your original post. As it is: toggle = 0 #MaxThreadsPerHotkey 2 F8:: Toggle := !Toggle While Toggle{ Click Send a [color=#FF0000]sleep 100[/color] } return it will not behave in a desirable fashion when it's hotkey is held longer than Window'...

 Forum: Support   Topic: Windows' key repeat alters toggle behavior?

Posted: Today, 12:17 am 

Replies: 2
Views: 64


Thank you for taking the time to explain this, Leef_me. :D

 Forum: Support   Topic: How to Interrupt a Toggle?

Posted: Today, 12:14 am 

Replies: 4
Views: 75


Caveat :!:: If I hold down key 1 until my autorepeat begins, I am unable to toggle off the stream of 1s using key 1. I don't yet understand why. Leef_me explained the issue. When I changed the Sleep time from 100 to 1 the code behaved as expected, even when key 1 was held down longer than the repea...

 Forum: Support   Topic: Open a few Chrome browsers each having active tabs

Posted: May 18th, 2012, 10:48 pm 

Replies: 1
Views: 57


The first response in the following link implies the desktop icon might be used as an example.

Multiple Google Chrome browsers

 Forum: Support   Topic: Windows' key repeat alters toggle behavior?

Posted: May 18th, 2012, 8:53 pm 

Replies: 2
Views: 64


With the following code, if key 1 is pressed and held until Windows' repeat delay has been exceeded (i.e. Windows has begun repeating the 1), why can't the stream of 1s be toggled off by pressing key 1? #MaxThreadsPerHotkey 2 $1:: Toggle := (! Toggle) While ( Toggle ) { Send 1 Sleep 100 } Return Doe...

 Forum: Support   Topic: How to Interrupt a Toggle?

Posted: May 18th, 2012, 8:17 pm 

Replies: 4
Views: 75


I'm using this code I got from somewhere to do that successfully: I don't think your code does what you said it does. I think this code does what you want: #MaxThreadsPerHotkey 2 $1:: KeyWait 1 Toggle := (! Toggle) While ( Toggle && ! TogglePaused ) { Send 1 Sleep 100 } Return $2:: If ( Tog...

 Forum: Support   Topic: Circumventing keyboard auto repeat & 2 functions on 1 key

Posted: May 18th, 2012, 7:18 pm 

Replies: 3
Views: 43


Code:
q::
   Send e
   KeyWait q
   Send b
Return

d::
   Toggle := (! Toggle)
   If ( Toggle )
      Send 01
   Else
      Send 15
Return

 Forum: Support   Topic: Only if I double click at the same coords?

Posted: May 17th, 2012, 6:02 am 

Replies: 6
Views: 63


~LButton:: If ( A_PriorHotKey = A_ThisHotKey && A_TimeSincePriorHotkey < 600 ) { MouseGetPos xSecond, ySecond ; get second click's coordinates If ( (xFirst = xSecond) && (yFirst = ySecond) ) MsgBox Double clicked same coordinates Else MsgBox Double clicked different coordinates } El...

 Forum: Support   Topic: when browser starts for it to be placed to certain place

Posted: May 17th, 2012, 5:46 am 

Replies: 1
Views: 22


Code:
Run iexplore.exe
WinWait ahk_class IEFrame
WinMove, ,
       , (A_ScreenWidth - 900) // 2, (A_ScreenHeight - 800) // 2
       , 900, 800

 Forum: Support   Topic: a FileCopyDir script works only in one direction

Posted: May 16th, 2012, 6:31 am 

Replies: 2
Views: 51


here is a simple copy directory script that runs as expected when I click on the file (in W7 Ult x64): FileCopyDir, C:\Users\Stew\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup, C:\Startup_Backup Problem: when I create a 2nd script file that just switches the source & destination...

 Forum: Support   Topic: Sleep monitor + modify text

Posted: May 15th, 2012, 7:13 am 

Replies: 8
Views: 69


Change: NumpadEnter:: If (nTap(A_ThisHotkey, 1000, 2)) Run rundll32.exe user32.dll LockWorkStation Return to: NumpadEnter:: If (nTap(A_ThisHotkey, 1000, 2)) [color=#FF0000]{ ; from http://www.autohotkey.com/docs/misc/SendMessage.htm example SendMessage 0x112, 0xF170, 2, , Program Manager ;[/color] R...

 Forum: Support   Topic: Hotkeys sometimes mess up....

Posted: May 15th, 2012, 7:05 am 

Replies: 8
Views: 105


Leef_me wrote:
1. using custom combinations of hotkeys, such as
"space & d" and "d & space" seems like a recipe for trouble.

Why is having such pairs of custom combination hotkeys trouble?

 Forum: Support   Topic: Sending key strokes until Escape key is pressed

Posted: May 15th, 2012, 6:49 am 

Replies: 2
Views: 56


Code:
#m::
   Gosub SendCtrlM
   SetTimer SendCtrlM, 2000
Return

Escape:: SetTimer SendCtrlM, Off

SendCtrlM:
   Send ^m
Return

 Forum: Support   Topic: Sleep monitor + modify text

Posted: May 15th, 2012, 5:10 am 

Replies: 8
Views: 69


Hi, first off I'd like to have a script where I type mark and then it goes to input mark15@hotmail.com straight after. I recently had ::mark::mark15@hotmail.com, but it'd only work after I hit space after typing mark, that's undesirable. :[color=#FF0000]*[/color]:mark::mark15@hotmail.com Also I'd l...

 Forum: Support   Topic: Snap Window To Grid

 Post subject: Re: Snap Window To Grid
Posted: May 15th, 2012, 12:27 am 

Replies: 1
Views: 68


You can adapt this script to implement your desired snap to grid capability:

Easy Window Dragging -- KDE style (requires XP/2k/NT) -- by Jonny
Sort by:  
Page 1 of 28 [ Search found 410 matches ]


All times are UTC [ DST ]


Powered by phpBB® Forum Software © phpBB Group