Search found 2204 matches

by Rohwedder
03 Oct 2019, 01:13
Forum: Bug Reports
Topic: Switch Bug!
Replies: 4
Views: 300

Switch Bug!

Hallo, this script kills Autohotkey 1.1.31.00 Unicode 64bit W7-Enterprise not only here! https://www.autohotkey.com/boards/viewtopic.php?f=76&t=68504 q:: a = b b = 5 Switch %a% { Case 5: MsgBox,% A_LineNumber } Edit: The same with this script! It's not correct, but I expect an error message instead ...
by Rohwedder
02 Oct 2019, 10:20
Forum: Ask For Help
Topic: Switch Bug?
Replies: 11
Views: 290

Switch Bug?

Hallo,
this script can't handle my autohotkey 1.1.31.00 !

Code: Select all

q::
a = b
b = 5
Switch %a%
{
	Case 5: MsgBox,% A_LineNumber
}
by Rohwedder
02 Oct 2019, 06:34
Forum: Ask For Help
Topic: Switch Case - Expression & Expression:
Replies: 4
Views: 219

Re: Switch Case - Expression & Expression:

Hallo,
try:

Code: Select all

bool:=true
switchValue:= "yo" and bool
switch switchValue
{
	case "hi":
	{
		Send Hi
	}
	case "yo" and bool:
	{
		Send Yo
		Send man
	}
}
by Rohwedder
02 Oct 2019, 01:33
Forum: Ask For Help
Topic: Right Click Lock Topic is solved
Replies: 4
Views: 229

Re: Right Click Lock Topic is solved

Hallo,
try:

Code: Select all

*RButton::
SendInput, {Blind}{RButton DownR}
Keywait, RButton, T3
IF !ErrorLevel
	SendInput, {Blind}{RButton Up}
Return
by Rohwedder
01 Oct 2019, 02:22
Forum: Ask For Help
Topic: Looking for a hotkey that has a 10 second delay, which will be cancelled if I press anything during those 10 seconds.
Replies: 8
Views: 335

Re: Looking for a hotkey that has a 10 second delay, which will be cancelled if I press anything during those 10 seconds

Hallo,
try:

Code: Select all

#InstallKeybdHook
#InstallMouseHook
q Up::
Sleep, 10000
If A_TimeIdlePhysical < 10000
	Return
MsgBox, No key has been pressed in the meantime
Return
by Rohwedder
30 Sep 2019, 04:01
Forum: Ask For Help
Topic: Test for running script Topic is solved
Replies: 4
Views: 182

Re: Test for running script Topic is solved

Hallo,
this shows all running scripts. Try:

Code: Select all

q::
DetectHiddenWindows, On
WinGet, List, List, ahk_class AutoHotkey
Scripts =
Loop,% List
{
   WinGetTitle, Title,% "ahk_id" List%A_Index%
   Scripts .=  (Scripts ? "`r`n" : "") StrReplace(Title, " - AutoHotkey v" A_AhkVersion)
}
MsgBox,% Scripts
Return
by Rohwedder
29 Sep 2019, 14:59
Forum: Ask For Help
Topic: Block input from a group of keys for x mili seconds after send from one of them Topic is solved
Replies: 2
Views: 149

Re: Block input from a group of keys for x mili seconds after send from one of them Topic is solved

Hallo,
try:

Code: Select all

$1::
$2::
$3::
$4::
$5::
$6::
$7::
IF (A_TickCount > T1_7)
{
	Send,% SubStr(A_ThisHotkey, 2)
	T1_7 := A_TickCount + 1000 ;disabled for 1000 ms
}
Return
by Rohwedder
29 Sep 2019, 05:43
Forum: Ask For Help
Topic: How to remap 3 numpad keys to run control panel in autohotkey?
Replies: 1
Views: 99

Re: How to remap 3 numpad keys to run control panel in autohotkey?

Hallo,
try:

Code: Select all

#If GetKeyState("NumpadAdd","P")
NumpadSub & NumpadHome::Run, Control
#If
by Rohwedder
27 Sep 2019, 07:10
Forum: Ask For Help
Topic: Simple Ctrl-A Ctrl-C script randomly doesn't work in Premiere Topic is solved
Replies: 2
Views: 93

Re: Simple Ctrl-A Ctrl-C script randomly doesn't work in Premiere Topic is solved

Hallo,
try:

Code: Select all

F3::
SetKeyDelay, 100, 100
Send ^a^c
Return

F4::
SetKeyDelay, 100, 100
Send ^a^v
Return
by Rohwedder
27 Sep 2019, 03:19
Forum: Ask For Help
Topic: Mutiple Scripts with While Loop
Replies: 4
Views: 175

Re: Mutiple Scripts with While Loop

I did not find a sufficient explanation concerning the use of "pass-through" hotkeys of several scripts running simultaneously.
https://www.autohotkey.com/docs/HotkeyFeatures.htm#pass-through
Some things you just have to try out and hope that they behave like this in the future as well.
by Rohwedder
26 Sep 2019, 11:35
Forum: Ask For Help
Topic: MousclickDrag works with Snipping Tool but not Greenshot
Replies: 5
Views: 137

Re: MousclickDrag works with Snipping Tool but not Greenshot

Hallo,
here (Windows 7) your script works with Greenshot.
Maybe you should first make CoordMode and then MouseGetPos?
by Rohwedder
26 Sep 2019, 11:17
Forum: Ask For Help
Topic: Mutiple Scripts with While Loop
Replies: 4
Views: 175

Re: Mutiple Scripts with While Loop

Hallo,
first run these three scripts at the same time:

Code: Select all

q::Send, 1

Code: Select all

q::Send, 2

Code: Select all

q::Send, 3
you'll find there's only one Q hotkey working.
Then run these three scripts at the same time:

Code: Select all

q::Send, 1

Code: Select all

~q::Send, 2

Code: Select all

~q::Send, 3
Exactly one has the hotkey Q without Tilde ~, all others with Tilde.
by Rohwedder
26 Sep 2019, 07:09
Forum: Ask For Help
Topic: Autofire any key with Autohotkey?
Replies: 1
Views: 76

Re: Autofire any key with Autohotkey?

Hallo,
try:

Code: Select all

Loop
{
	Input, Key, VL1
	IF Key Not Between a and z
		Continue
	While GetKeyState(Key,"P")
	{
		Random, r, 50, 250
		sleep r
		Send,% Key
	}
}
by Rohwedder
25 Sep 2019, 11:03
Forum: Ask For Help
Topic: Check variable not exist or only a number Topic is solved
Replies: 3
Views: 126

Re: Check variable not exist or only a number Topic is solved

Hallo,
try:

Code: Select all

Test(TstVar)
{	If TstVar and !StrLen(TstVar+1)
		MsgBox ,, Row %A_LineNumber% -> %A_ScriptName%, TstVar is NOT a number `n`n- %TstVar%
}
by Rohwedder
25 Sep 2019, 03:19
Forum: Ask For Help
Topic: space after punctuation
Replies: 1
Views: 131

Re: space after punctuation

Hallo, try this autocorrection while writing: Loop, Parse,% "([{" ;a space before and not after them HotString(":*?R:" A_LoopField "` ", " `" A_LoopField) Loop, Parse,% ",.:;?!)]}" ;no space before and a space after them HotString(":*?R:` " A_LoopField, A_LoopField " `") Return F6:: Loop, Parse,% "(...
by Rohwedder
24 Sep 2019, 01:11
Forum: Gaming
Topic: Make arrow keys numpad with working numlock?
Replies: 1
Views: 109

Re: Make arrow keys numpad with working numlock?

Hallo,
try:

Code: Select all

End::NumLock
#If !GetKeyState("NumLock", "T")
Up::Numpad8
Down::Numpad2
Left::Numpad4
Right::Numpad6
AppsKey::Numpad0
RCtrl::Numpad5
#If
by Rohwedder
23 Sep 2019, 02:51
Forum: Ask For Help
Topic: Open and resize the same program twice Topic is solved
Replies: 2
Views: 147

Re: Open and resize the same program twice Topic is solved

Hallo, try: Run, "C:\Users\Chris\AppData\Local\RuneLite\RuneLite.exe",,, 1PID WinWaitActive, ahk_pid %1PID% Sleep, 500 WinMove, ahk_pid %1RuneLite%,, 0, 0, 960, 1024 Run, "C:\Users\Chris\AppData\Local\RuneLite\RuneLite.exe",,, 2PID WinWaitActive, ahk_pid %2PID% Sleep, 500 WinMove, ahk_pid %2PID%,, 9...

Go to advanced search