Search found 1991 matches

by Rohwedder
Today, 01:01
Forum: Gaming
Topic: Which games do you usually play?
Replies: 2
Views: 159

Re: Which games do you usually play?

Hallo,
I like to play Autohotkey, so I joined this forum.
by Rohwedder
Today, 00:56
Forum: Ask For Help
Topic: Alt+Tab does not work
Replies: 1
Views: 132

Re: Alt+Tab does not work

Hallo,
try:

Code: Select all

#IfWinActive ahk_exe Mordhau-Win64-Shipping.exe
~LAlt:: ;Tilde: ~ prefix when the hotkey fires,
;its key's native function will not be blocked.
	SendInput {Blind}{j 2}{Numpad1}
	Sleep 272
	SendInput {Blind}{l}
Return
#IfWinActive ;End of effect of directive: #IfWinActive ahk_exe Mord...
by Rohwedder
18 Jul 2019, 14:11
Forum: Ask For Help
Topic: Pause loop while keep SetTimer running Topic is solved
Replies: 2
Views: 108

Re: Pause loop while keep SetTimer running Topic is solved

Hallo, this timer checks the shift key (instead of your app). If this key is not pressed, the loop pauses. #Persistent SetTimer, Timer, 1000 Gosub, Timer loop { ToolTip, Loop %A_Index% Sleep, 100 } Return Timer: A := GetKeyState("Shift","P") ;track an app on or off Sleep, 100 IF !A Goto, Timer ;paus...
by Rohwedder
15 Jul 2019, 12:42
Forum: Ask For Help
Topic: Input as à Variable
Replies: 3
Views: 90

Re: Input as à Variable

As a German it is very difficult for me to explain this in English.
See: https://www.autohotkey.com/docs/FAQ.htm#percent
by Rohwedder
15 Jul 2019, 12:35
Forum: Ask For Help
Topic: Help with simple script
Replies: 1
Views: 85

Re: Help with simple script

Hallo, try: F12 Up:: ;"endless" loop on/off If (toggle := !toggle) { SetTimer, Timer, 90000 ;every 90 seconds Goto, Timer ;and for the first time immediately } Else SetTimer, Timer, Off Return Timer: Click ;clicks once Sleep, 3000 ; waits 3 seconds Click ;another left click Return ;then repeat the p...
by Rohwedder
15 Jul 2019, 05:21
Forum: Ask For Help
Topic: Input as à Variable
Replies: 3
Views: 90

Re:

Hallo,
try:

Code: Select all

sleep, % ran(MinTime, MaxTime)
by Rohwedder
14 Jul 2019, 02:59
Forum: Ask For Help
Topic: Left Windows Key as ctrl+shift+alt
Replies: 2
Views: 125

Re: Left Windows Key as ctrl+shift+alt

Hallo,
to disable default left winkey behaviour (open start menu) without disable key itself, try:

Code: Select all

~LWin::Send {Blind}{vk07}
by Rohwedder
12 Jul 2019, 06:31
Forum: Ask For Help
Topic: Loop problems with sequence
Replies: 4
Views: 118

Re: Loop problems with sequence

here: Win7, UAC dead,
Ahk v1.1.30.03 run as admin,
Firefox run as non-admin
it works.
by Rohwedder
12 Jul 2019, 05:52
Forum: Ask For Help
Topic: can you make 2 windows active/focused at once?
Replies: 3
Views: 84

Re: can you make 2 windows active/focused at once?

and you edit both windows at the same time?
by Rohwedder
12 Jul 2019, 04:47
Forum: Ask For Help
Topic: Send double shift to fire hotkey
Replies: 1
Views: 44

Re: Send double shift to fire hotkey

Hallo,
try:

Code: Select all

~*Shift::
IF (A_PriorHotkey <> A_ThisHotkey Or A_TimeSincePriorHotkey > 400)
	Return
MsgBox, fired!
Return
by Rohwedder
12 Jul 2019, 03:39
Forum: Ask For Help
Topic: Loop problems with sequence
Replies: 4
Views: 118

Re: Loop problems with sequence

Hallo,
If your browser window has the focus all the time, your script should do exactly what it's supposed to do.
Send commands are always sent to the currently active window.
by Rohwedder
12 Jul 2019, 02:30
Forum: Ask For Help
Topic: Sending Keys will no work
Replies: 4
Views: 80

Re: Sending Keys will no work

Hallo,
try:

Code: Select all

; --- Synchronize time with NTP server -------------------------------------
; Start timedate.cpl as an Administrator and then press the HotKey
#IfWinExist, Date and Time
^!t::
WinActivate,  Date and Time
Send {Tab 5}{Right 2}{Tab}{Enter}{Tab 2}{Enter}{Tab}{Enter}{Tab}{Enter}
Return
by Rohwedder
12 Jul 2019, 02:09
Forum: Ask For Help
Topic: double tap to cycle values Topic is solved
Replies: 2
Views: 72

Re: double tap to cycle values Topic is solved

Hallo,
try:

Code: Select all

x := 3
MButton::
IF (A_PriorHotkey <> A_ThisHotkey Or A_TimeSincePriorHotkey > 400)
	Return
x := (x=4) ? 2 : x+1
ToolTip,% x
Return
by Rohwedder
11 Jul 2019, 12:25
Forum: Gaming
Topic: Diablo 3 Key loops Topic is solved
Replies: 6
Views: 14176

Re: Diablo 3 Key loops Topic is solved

Hallo gumegasonic,
just replace Pause by Reload. Then you only need F1.
by Rohwedder
11 Jul 2019, 03:28
Forum: Ask For Help
Topic: combination keys as hotkey in ini
Replies: 1
Views: 84

Re: combination keys as hotkey in ini

Hallo,
you write: I have a code something like this
If I try this "this" I get
Error: ELSE with no matching IF
If you want your car repaired, you bring the garage a junk car similar to yours?
by Rohwedder
11 Jul 2019, 02:49
Forum: Ask For Help
Topic: If, Else Statement - Help Please Topic is solved
Replies: 5
Views: 168

Re: If, Else Statement - Help Please Topic is solved

Hallo, your note makes no sense. What does a letter W in a command have to do with a letter W in a hotkey? Test this snippet first inside a notepad window! $^d:: Send dim al _nea{enter} ;with space, right? Sleep, 100 KeyWait, Lbutton, D ;Wait for Lbutton to be pushed down KeyWait, Lbutton ;Wait for ...
by Rohwedder
11 Jul 2019, 02:06
Forum: Ask For Help
Topic: Closing another ahk script with a ahk script
Replies: 2
Views: 98

Re: Closing another ahk script with a ahk script

Hallo,
try:

Code: Select all

q:: ;closes all other scripts
DetectHiddenWindows, On
WinGet, AHKList, List, ahk_class AutoHotkey
Loop, %AHKList%
{
    ID := AHKList%A_Index%
    If (ID <> A_ScriptHwnd)
        WinClose, ahk_id %ID%
}
Return
by Rohwedder
10 Jul 2019, 11:51
Forum: Ask For Help
Topic: Avoiding interrupting after 2-key combo
Replies: 1
Views: 50

Re: Avoiding interrupting after 2-key combo

Hallo,
try:

Code: Select all

$d::
$w::
IF GetKeyState("d","P") And GetKeyState("w","P")
	Send, e
Else
	Send,% SubStr(A_ThisHotkey,2) ;removes $
Return

Go to advanced search