Search found 2049 matches

by Rohwedder
16 Aug 2019, 11:15
Forum: Gaming
Topic: Need help with a timed keypress
Replies: 2
Views: 141

Re: Need help with a timed keypress

Hallo,
this

Code: Select all

$8::
SetKeyDelay,
SetTimer, PressKey, % (x := !x) ? 8000 : "Off"
;every, lets say, 8sec
return
by Rohwedder
16 Aug 2019, 05:41
Forum: Ask For Help
Topic: How to check if a program has a sub window open
Replies: 6
Views: 172

Re: How to check if a program has a sub window open

#32770 is the default class for a dialog box.
https://docs.microsoft.com/en-us/windows/win32/winmsg/about-window-classes.
I've never seen the class of a dialog box change before. But if it does, maybe SetTitleMatchMode, Regex helps.
by Rohwedder
16 Aug 2019, 02:36
Forum: Ask For Help
Topic: How to check if a program has a sub window open
Replies: 6
Views: 172

Re: How to check if a program has a sub window open

Hallo,
"X-Ways_Operation_Complete2.exe" seems to be the name of your debug script!
With ahk_class #32770 windows sometimes the wintext parameter does not work as expected.
Perhaps?:

Code: Select all

SetTitleMatchMode, 2
WinWait, X-Ways Forensics ahk_class #32770
by Rohwedder
14 Aug 2019, 02:33
Forum: Ask For Help
Topic: Match multiple variable with clipboard Topic is solved
Replies: 1
Views: 84

Re: Match multiple variable with clipboard Topic is solved

Hallo,
try:

Code: Select all

If InStr(ClipBoard, office) and InStr(ClipBoard, dob)
{ ;I want to ensure that clipboard contains office and dob both
	msgbox, Office and DOB both matched! Go ahead!
	Sleep, 100
}
Else
{
	msgbox, No luck ! Office and dob does not match!
	Sleep, 100
}
by Rohwedder
13 Aug 2019, 10:49
Forum: Ask For Help
Topic: How to use variable in if condition Topic is solved
Replies: 1
Views: 151

Re: How to use variable in if condition Topic is solved

Hallo,
here it works!:

Code: Select all

dob = 6/15/1987 ;test
ClipBoard = 6/15/1987 (Date of Birth) ;test

If Clipboard Contains %dob%
{
	msgbox, Date of Birth matched !
	Sleep, 2000
}
Else
{
	msgbox, Date of Birth did not match !
	Sleep, 2000
}
by Rohwedder
13 Aug 2019, 04:23
Forum: Ask For Help
Topic: About the usage of the IF statement
Replies: 4
Views: 422

Re: About the usage of the IF statement

Then more universal!
If several interdependent queries are to be made frequently, i.e. if speed is important, minimize the query effort according to Boolean short-circuit evaluation. https://www.autohotkey.com/docs/Functions.htm#ShortCircuit.
Otherwise, as short as possible.
by Rohwedder
13 Aug 2019, 02:03
Forum: Ask For Help
Topic: About the usage of the IF statement
Replies: 4
Views: 422

Re: About the usage of the IF statement

Hallo,
I prefer this:

Code: Select all

a := 0
b := 0
i := 0

loop, 3
{
    If (e = 0 Or e = 1)
		++a, b += e
    Else
		++i
}
return
by Rohwedder
13 Aug 2019, 01:32
Forum: Ask For Help
Topic: How can i fix this?
Replies: 1
Views: 198

Re: How can i fix this?

Hallo,
perhaps:

Code: Select all

~LButton & f::
send {z up}
send f
send {z down}
Return
~LButton up::send {z up}
by Rohwedder
13 Aug 2019, 01:23
Forum: Ask For Help
Topic: Key stays pressed after locking the computer Topic is solved
Replies: 2
Views: 268

Re: Key stays pressed after locking the computer Topic is solved

Hallo,
try to lock the computer only after you have released VKBF:

Code: Select all

F1:: ; lock computer
KeyWait, VKBF
DllCall("LockWorkStation")
return
by Rohwedder
11 Aug 2019, 09:24
Forum: Ask For Help
Topic: How can i make LButton hold down another key after pressing f
Replies: 2
Views: 83

Re: How can i make LButton hold down another key after pressing f

Hallo,
try:

Code: Select all

~LButton & f:: ;hold LButton and then press f
SendInput, {Blind}f{z DownR}
KeyWait, LButton ;as long as LButton is held
SendInput, {Blind}{z Up}
Return
by Rohwedder
11 Aug 2019, 01:40
Forum: Gaming
Topic: Click with pressed key Topic is solved
Replies: 6
Views: 341

Re: Click with pressed key Topic is solved

Of course it's possible!
Sometimes it helps to slow down the mouse cursor for testing:

Code: Select all

^Numpad5::
SetDefaultMouseSpeed, 30
Send, {Ctrl Down}{Click, 100, 400, right}{Click, 400, 100, Left}{Ctrl Up}
Return
by Rohwedder
11 Aug 2019, 01:21
Forum: Ask For Help
Topic: LButton Down While Ctrl KeyState Down Topic is solved
Replies: 5
Views: 280

Re: LButton Down While Ctrl KeyState Down Topic is solved

Just like with Aspirin! I also don't quite understand how it works but sometimes it is helpful. Maybe this drug will help against hanging modifiers: #InstallKeybdHook #InstallMouseHook $^!+LButton:: Click Send {Blind}{LButton Down} KeyWait, Ctrl Send {LButton Up} Gosub, ModifierUp Return ModifierUp:...
by Rohwedder
10 Aug 2019, 12:16
Forum: Gaming
Topic: Click with pressed key Topic is solved
Replies: 6
Views: 341

Re: Click with pressed key Topic is solved

Then simply:

Code: Select all

^Numpad5::Send, {Ctrl Down}{RButton}{LButton}{Ctrl Up}
by Rohwedder
10 Aug 2019, 09:41
Forum: Gaming
Topic: Click with pressed key Topic is solved
Replies: 6
Views: 341

Re: Click with pressed key Topic is solved

Hallo, one position and another position means right and left mouse button? Try with Hotkey F6: *F6:: ;* Fires the hotkey even if extra modifiers are being held down Click right ;first click with the right button Click ;second click with the left button ;Click does not automatically release the modi...
by Rohwedder
10 Aug 2019, 02:18
Forum: Ask For Help
Topic: LButton Down While Ctrl KeyState Down Topic is solved
Replies: 5
Views: 280

Re: LButton Down While Ctrl KeyState Down Topic is solved

Hallo,
try:

Code: Select all

#InstallKeybdHook
#InstallMouseHook
$^!+LButton::
Click
Send {Blind}{LButton Down}
KeyWait, Ctrl
Send {LButton Up}
Return
by Rohwedder
10 Aug 2019, 01:51
Forum: Ask For Help
Topic: can't figure this out
Replies: 9
Views: 318

Re: can't figure this out

{WheelDown}, to turn the mouse wheel down instead of {RButton}, should work.
Or do you actually want to click the mouse wheel? Then {MButton}.
by Rohwedder
09 Aug 2019, 10:16
Forum: Ask For Help
Topic: can't figure this out
Replies: 9
Views: 318

Re: can't figure this out

Then it's difficult! But maybe it's better this way $e:: Send {Blind}g sleep 20 send {blind}{RButton} send {blind}{DEL Down} While, GetKeyState("e","P") And !(GetKeyState("q","P") Or GetKeyState("f","P") Or GetKeyState("XButton1","P") Or GetKeyState("XButton2","P")) Sleep, 0 SendInput {Blind}{DEL Up...
by Rohwedder
09 Aug 2019, 07:51
Forum: Ask For Help
Topic: can't figure this out
Replies: 9
Views: 318

Re: can't figure this out

The q-Keybind is written with AutoHotkey or a function of the game?
In the first case one could postpone the execution.

Go to advanced search