Search found 2295 matches

by Rohwedder
Yesterday, 10:52
Forum: Ask For Help
Topic: Script seems to stop after InputBox
Replies: 1
Views: 22

Re: Script seems to stop after InputBox

Hallo, replace: ^!i::InputBox, UserInput, Phone Number, Please enter a phone number., , 640, 480 by: ^!i:: InputBox, UserInput, Phone Number, Please enter a phone number., , 640, 480 One-liner Hotkeys have a Return in a hidden next line. Compare the error windows of the following (wrong) scripts: ^!...
by Rohwedder
Yesterday, 05:10
Forum: Ask For Help
Topic: Send to InputBox or GUI
Replies: 1
Views: 68

Re: Send to InputBox or GUI

Hallo, since the input box is waiting for an input, the next line with Send, ^V is not yet executed. Try: Clipboard := 15 SetTimer, Paste, -100 InputBox, Number, Enter number, Enter another number Return Paste: Send, ^v Return The timer thread interrupts this waiting and pastes the clipboard. Then t...
by Rohwedder
18 Nov 2019, 03:41
Forum: Ask For Help
Topic: Is there a simplified way to extract the variable?
Replies: 3
Views: 110

Re: Is there a simplified way to extract the variable?

Hallo, try: Gui, Add, Checkbox, gMySub vVar1 X10, Choice A Gui, Add, Checkbox, gMySub vVar2 X+10, Choice B Gui, Add, Checkbox, gMySub vVar3 X+10, Choice C Gui, Show return MySub: Gui, Submit, NoHide ; Find out which box is checked, and store as Var1, Var2, or Var2 While, (VarX:="Var" A_Index) And (C...
by Rohwedder
18 Nov 2019, 02:05
Forum: Ask For Help
Topic: Trying to map Any key to ALT+3
Replies: 2
Views: 66

Re: Trying to map Any key to ALT+3

Hallo,
for newbies: If modifiers are involved, no Remapping but Hotkeys.
Try this Hotkey:

Code: Select all

]::Send, !3
by Rohwedder
17 Nov 2019, 13:03
Forum: Ask For Help
Topic: Keybind to switch between loops
Replies: 4
Views: 150

Re: Keybind to switch between loops

Hallo, if your bunches of code contains special Sleeps, these Sleep() can execute the exit command: ^w:: Remember() ;this in the beginning Loop { ToolTip,% A_ThisHotkey " " A_TickCount Sleep(100) } Remember = ;this at the end Return ^t:: Remember() ;this in the beginning Loop { ToolTip,% A_ThisHotke...
by Rohwedder
17 Nov 2019, 08:08
Forum: Ask For Help
Topic: AHK holding win and/or ctrl - reload not working Topic is solved
Replies: 2
Views: 58

Re: AHK holding win and/or ctrl - reload not working Topic is solved

Hallo,
your script is syntactically wrong. I don't know why it doesn't generate an error message.
Try:

Code: Select all

#F20::Send,!{Left}
by Rohwedder
17 Nov 2019, 02:42
Forum: Ask For Help
Topic: 1 key presses 3 differant keys 1 at a time each key press
Replies: 1
Views: 91

Re: 1 key presses 3 differant keys 1 at a time each key press

Hallo,
try:

Code: Select all

$1::Send,% Counter := Mod(0 Counter, 3) + 1
or if you want to keep the keys pressed for a longer time:

Code: Select all

$1::Send,% "{" (Counter2 := Mod(0 Counter1, 3) + 1) " DownR}"
$1 Up::Send,% "{" (Counter1 := Counter2) " Up}"
by Rohwedder
16 Nov 2019, 10:16
Forum: Gaming
Topic: ImageSearch Stuck?
Replies: 4
Views: 220

Re: ImageSearch Stuck?

I see you're trying to make two loops work at once. Unfortunately Autohotkey can't do that. https://www.autohotkey.com/docs/misc/Threads.htm I replaced the loops with timers, untested: ;BreezeBot a0.1 Test := False ;True or False #SingleInstance Force #NoEnv SetWorkingDir %A_ScriptDir% SetBatchLines...
by Rohwedder
16 Nov 2019, 03:00
Forum: Gaming
Topic: Need syntax help with break command
Replies: 6
Views: 465

Re: Need syntax help with break command

Hallo, try: ;+++++++++++++++++++++++++++++++ ;enter jewel farm event F11::pgdn := False pgdn:: pgdn := True Loop { ;new psuedocode -- I also dont know exact syntax ;Do While (f11 != pressed) ... Else (Break) ;start send, e ;post a new quest click, 200, 133 sleep(2000,pgdn) ; ... ; ... ; ... } Return...
by Rohwedder
16 Nov 2019, 02:31
Forum: Gaming
Topic: ImageSearch Stuck?
Replies: 4
Views: 220

Re: ImageSearch Stuck?

Hallo, I've built in a test to check if the three timers will be toggled on/off. This seems to work. ;BreezeBot a0.1 Test := True ;True or False #SingleInstance Force #NoEnv SetWorkingDir %A_ScriptDir% SetBatchLines -1 IF FileExist("C:\BreezeBot\Data\Images\icon.ico") Menu Tray, Icon, C:\BreezeBot\D...
by Rohwedder
16 Nov 2019, 01:48
Forum: Ask For Help
Topic: Maximising a window with a matching MyWinTitle
Replies: 8
Views: 551

Re: Maximising a window with a matching MyWinTitle

Hallo, try: #UseHook On WinGet, MyWindows, List, ahk_class WindowsForms10.Window.8.app.0.2eed1ca_r9_ad1 Loop, % MyWindows { ThisWindow := MyWindows%A_Index% WinActivate, ahk_id %ThisWindow% WinGetTitle, MyWinTitle, ahk_id %ThisWindow% MsgBox, 64, Window Activated, % "Win ID: " ThisWindow "`nTitle: "...
by Rohwedder
15 Nov 2019, 15:42
Forum: Ask For Help
Topic: How do I get Hiragana \ Katakana character as a variable using Input?
Replies: 6
Views: 591

Re: How do I get Hiragana \ Katakana character as a variable using Input?

Hallo,
only a try:

Code: Select all

q::
ClipBoard =
Send, ka{Space} ;課 or カ ?
Sleep, 100
Send, {LButton}{Shift Down}{Left}{Shift Up}^x
ClipWait,1
MsgBox,% Ord(ClipBoard)
Return
Hiragana \ Katakana: is there a difference?
by Rohwedder
15 Nov 2019, 11:29
Forum: Ask For Help
Topic: 2 scripts in 1 help
Replies: 5
Views: 246

Re: 2 scripts in 1 help

Hallo, try: #SingleInstance, Force CoordMode, Mouse, Pixel, Screen return Numpad0:: IF Target1_Color Return Target1_Color := "0x669C12" Target1_X := 264 Target1_Y := 62 timer1: PixelGetColor,Current_Color1,Target1_X,Target1_Y,RGB if(Current_Color1!=Target1_Color) { Send, 9 SetTimer,timer1,5000 Retur...
by Rohwedder
15 Nov 2019, 06:38
Forum: Ask For Help
Topic: How to listen/detect Mouse WheelUp/Down stop-event?
Replies: 3
Views: 176

Re: How to listen/detect Mouse WheelUp/Down stop-event?

Hallo,
there's nothing to listen to.
https://www.autohotkey.com/docs/Hotkeys.htm#Wheel
Finally, since mouse wheel hotkeys generate only down-events (never up-events), they cannot be used as key-up hotkeys.
by Rohwedder
13 Nov 2019, 13:51
Forum: Ask For Help
Topic: keep track of mouse usage time
Replies: 4
Views: 183

Re: keep track of mouse usage time

Hallo,
try:

Code: Select all

#InstallMouseHook
SetTimer, MouseUsed, 1000
MouseUsed:
IF (A_TimeIdleMouse < 1000)
	MouseUsed++
Return
F8::ToolTip,% Format("mouse was used: {1:02}:{2:02}", MouseUsed//60, Mod(MouseUsed,60))
Edit: shortened
by Rohwedder
13 Nov 2019, 10:45
Forum: Ask For Help
Topic: Sleep lenght modifie using Gui
Replies: 2
Views: 149

Re: Sleep lenght modifie using Gui

Hallo,
try:

Code: Select all

Sleep, 500 + Sleep
Times < 0ms are simply not executed. But the Sleep variable shouldn't be empty.
by Rohwedder
13 Nov 2019, 09:09
Forum: Ask For Help
Topic: I need help with a very simple script.
Replies: 3
Views: 158

Re: I need help with a very simple script.

Try:

Code: Select all

~*r::
RLoop := False
Keywait, r, T.3
IF ErrorLevel
{
	RLoop := True
	SetTimer, RLoop, 40
	Gosub, RLoop
	Keywait, r
}
ToolTip
Return
RLoop:
IF !RLoop
	SetTimer, RLoop, Off
Click down
Sleep 20
Click up
ToolTip, "AutoClicker is now ON"
Return
by Rohwedder
13 Nov 2019, 03:03
Forum: Ich brauche Hilfe
Topic: Schnellöffnen einer Datei
Replies: 6
Views: 318

Re: Schnellöffnen einer Datei

Hallo,
Notepad++ Erweiterung: RunMe
by Rohwedder
13 Nov 2019, 02:12
Forum: Ask For Help
Topic: I need help with a very simple script.
Replies: 3
Views: 158

Re: I need help with a very simple script.

Hallo,
try:

Code: Select all

~*r::
RLoop := False
Keywait, r, T.3
IF ErrorLevel
{
	RLoop := True
	SetTimer, RLoop, 100
	Keywait, r
}
ToolTip
Return
RLoop:
IF !RLoop
	SetTimer, RLoop, Off
ToolTip,% A_TickCount " RLoop running"
Return
by Rohwedder
12 Nov 2019, 10:25
Forum: Ask For Help
Topic: Remap key when NumLock is ON
Replies: 7
Views: 213

Re: Remap key when NumLock is ON

Hallo,
perhaps somthing like this:

Code: Select all

sc016::u
of course with your scancode for the key u.

Go to advanced search