Search found 3066 matches

by Rohwedder
Today, 10:23
Forum: Ask For Help
Topic: Three Variable Script Topic is solved
Replies: 6
Views: 1379

Re: Three Variable Script Topic is solved

Just for fun a solution for lovers of the Modulo function (like me): ValuesX := ["north", "south", "east", "west"] ValuesY := ["bottom", "top"] ValuesZ := ["inner_left", "inner_right", "outer_left", "outer_right", "straight"] NX := ValuesX.Length(), NY := ValuesY.Length(), NZ := ValuesZ.Length() Per...
by Rohwedder
Today, 05:13
Forum: Ask For Help
Topic: Three Variable Script Topic is solved
Replies: 6
Views: 1379

Re: Three Variable Script Topic is solved

Hallo, try: ValuesX := ["north", "south", "east", "west"] ValuesY := ["bottom", "top"] ValuesZ := ["inner_left", "inner_right", "outer_left", "outer_right", "straight"] NX := ValuesX.Length(), NY := ValuesY.Length(), NZ := ValuesZ.Length() No := NX * NY * NZ, NN := 0 f4:: loop { Loop { Random, X, 1,...
by Rohwedder
Today, 04:02
Forum: Gaming
Topic: Help with pausing a loop, I use "pause" but the whole script pauses!
Replies: 1
Views: 559

Re: Help with pausing a loop, I use "pause" but the whole script pauses!

Hallo, try: $Shift:: toggle:=!toggle if (toggle) sendinput, {w down} else { if !GetKeyState("w") sendinput, {w down} else sendinput, {w up} } return [:: togglex:=!togglex if (togglex) sendinput, {0 down} else { if !GetKeyState("0") sendinput, {0 down} else sendinput, {0 up} Sleep, 300 } return ]:: S...
by Rohwedder
Today, 03:34
Forum: Ask For Help
Topic: Hold Alt while pressing F4
Replies: 1
Views: 699

Re: Hold Alt while pressing F4

Hallo,
try:

Code: Select all

:*:iq::
SendInput {alt down}
Sleep 50
SendInput, {Blind}{F4}
SendInput, {Blind}{F4}
SendInput, {Blind}{F4}
Sleep 50
SendInput {alt up}
sleep, 1000
by Rohwedder
Today, 03:31
Forum: Ask For Help
Topic: imagesearch with multiple images at same time
Replies: 3
Views: 965

Re: imagesearch with multiple images at same time

Hallo,
if you don't get ahead with Bobo's suggestions,
don't look for the complete pictures but only a small section.
A 1/16th of the image area in the middle or slightly offset should be enough.
by Rohwedder
Today, 03:10
Forum: Gaming
Topic: Help with my simple "hold down click/keypress" toggle script.
Replies: 1
Views: 852

Re: Help with my simple "hold down click/keypress" toggle script.

Hallo, if you want to send the hotkey itself, you should use $ . You should not use the same toggle variable for d,w,t and RButton. Maybe it works without toggle variables: $*e::send er13 $d:: IF !GetKeyState("d") sendinput, {d down}{w down}{t down} else sendinput, {d up}{w up}{t up} return $RButton...
by Rohwedder
Yesterday, 10:12
Forum: Gaming
Topic: Binding 2 keys into 1 (problem though...)
Replies: 2
Views: 942

Re: Binding 2 keys into 1 (problem though...)

Hallo,
only a try!

Code: Select all

§::
	Send, {Left DownR}{Right DownR}
	KeyWait, §, Up
	Send, {Right Up}{Left Up}
Return
by Rohwedder
Yesterday, 10:00
Forum: Gaming
Topic: Remap modifier while retaining shortcuts? Topic is solved
Replies: 2
Views: 679

Re: Remap modifier while retaining shortcuts? Topic is solved

Hallo,
perhaps:

Code: Select all

#InputLevel, 1
Ctrl::F13
#InputLevel, 0
F13 & a::Send, ^a ;ctrl a
F13 & c::Send, ^c ;ctrl c
F13 & v::Send, ^v ;ctrl v
But why on earth are you so hell-bent on remapping Ctrl?
by Rohwedder
Yesterday, 01:16
Forum: Gaming
Topic: Firing too fast!
Replies: 1
Views: 1133

Re: Firing too fast!

Hallo,
increase the delay of SetMouseDelay.
SetMouseDelay 10 or SetMouseDelay 50
by Rohwedder
03 Jul 2020, 11:12
Forum: Ask For Help
Topic: Mouse Coords not always the same (set/get)
Replies: 3
Views: 773

Re: Mouse Coords not always the same (set/get)

So far I was satisfied with MouseMove (I'm not a gamer).
In https://www.autohotkey.com/docs/commands/MouseMove.htm
DllCall("SetCursorPos"... is pointed out as an alternative method for moving the mouse pointer,
which may work better with certain multi-monitor configurations.
by Rohwedder
03 Jul 2020, 09:34
Forum: Ask For Help
Topic: Is there a windows shortcut for Click+Home+^v Topic is solved
Replies: 1
Views: 459

Re: Is there a windows shortcut for Click+Home+^v Topic is solved

Hallo,
this?:

Code: Select all

F2::Send, {Click}{Home}+{End}^v
by Rohwedder
03 Jul 2020, 09:21
Forum: Ask For Help
Topic: Mouse Coords not always the same (set/get)
Replies: 3
Views: 773

Re: Mouse Coords not always the same (set/get)

Hallo,
only a try:

Code: Select all

CoordMode, Mouse

Px:=101
Py:=101

DllCall("SetCursorPos", "int", Px, "int", Py)
MouseGetPos, MouseX, MouseY

msgbox Input:`n%Px%, %Px%`n`nOutput:`n%MouseX%, %MouseY%
by Rohwedder
03 Jul 2020, 02:58
Forum: Ask For Help
Topic: adding the ControlSend Topic is solved
Replies: 4
Views: 1595

Re: adding the ControlSend Topic is solved

Then:

Code: Select all

#SingleInstance, Force

pause
Loop
{
   Send, {F11}
   sleep, 2200
   Send, {F12}
   sleep, 290000
}
Numpad1::MouseGetPos,,, ID1

Numpad4::
Loop := True
Pause
Return
#IF Loop
Numpad4::Reload
by Rohwedder
03 Jul 2020, 02:10
Forum: Ask For Help
Topic: adding the ControlSend Topic is solved
Replies: 4
Views: 1595

Re: adding the ControlSend Topic is solved

Hallo,
try:

Code: Select all

#SingleInstance, Force
Pause
Numpad1::
Pause
MouseGetPos,,, ID1
Loop
{
   ControlSend,, {F11}, ahk_id %ID1%
   sleep, 2200
   ControlSend,, {F12}, ahk_id %ID1%
   sleep, 290000
}
Return
Numpad4::Reload
by Rohwedder
03 Jul 2020, 01:34
Forum: Gaming
Topic: Need help double colordetecting
Replies: 2
Views: 966

Re: Need help double colordetecting

Hallo, ErrorLevel is set to 0 if the color was found in the specified region. Try: 1:: Loop { PixelSearch, x, y, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, COLORCODE, Fast IF !(ErrorLevel = 0) ;COLORCODE was not found PixelSearch, x, y, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, COLORCODE2, Fast IF (Err...
by Rohwedder
02 Jul 2020, 12:58
Forum: Gaming
Topic: Getting "pause" to work better Topic is solved
Replies: 2
Views: 893

Re: Getting "pause" to work better Topic is solved

Hallo, I recommend the Pause key. Single press: Pause off/on Double press: ExitApp #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superio...
by Rohwedder
02 Jul 2020, 12:36
Forum: Ask For Help
Topic: question: 3 Keys Pressed Together
Replies: 2
Views: 1157

Re: question: 3 Keys Pressed Together

Hallo,
perhaps: Helgef’s [Class] LongHotkeys (a & b & c & ...)
https://autohotkey.com/boards/viewtopic.php?f=6&t=24145
by Rohwedder
02 Jul 2020, 08:13
Forum: Ask For Help
Topic: Using hotkeys to switch between two loops Topic is solved
Replies: 3
Views: 913

Re: Using hotkeys to switch between two loops Topic is solved

Hallo, try: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. #SingleInstance, force ;<Some hotkeys, su...
by Rohwedder
02 Jul 2020, 00:30
Forum: Gaming
Topic: Make Code shorter? more efficient?
Replies: 1
Views: 1193

Re: Make Code shorter? more efficient?

Hallo, perhaps something like this? inTown := (PGC(1646, 8) && PGC(1715, 13) && PGC(1810, 13)) ||(PGC(1670, 13) && PGC(1649, 8) && PGC(1614, 13)) ||(PGC(1773, 13) && PGC(1769, 13) && PGC(1888, 13)) ||(PGC(1749, 9) && PGC(1781, 13) && PGC(1815, 13)) PGC(X, Y, Color:= 0xFFFFFF) { ;checks if (X, Y) is ...

Go to advanced search