Loop mit Input Topic is solved

Stelle Fragen zur Programmierung mit Autohotkey

Moderator: jNizM

Yumakuru
Posts: 11
Joined: 12 Nov 2022, 09:02

Loop mit Input  Topic is solved

18 Nov 2022, 05:44

Hallo ihr, so langsam werde ich etwas wärmer wie das ganze funktioniert.
Ich habe mir jetzt folgende Sache erstellt

Code: Select all

#NoEnv
#SingleInstance Force
SetWorkingDir %A_ScriptDir%
SetBatchLines -1
^k::
InputBox, count,
Loop %count%
{
	ImageSearch, found_x, found_y, 0, 0, 1200, 1200, *100 qwe.png
	if (!ErrorLevel)
	{
	Send, {Control down} 
	MouseClick, left, %found_x%, %found_y% 
		
	
	}
}

InputBox, zahl,
Loop %zahl%
{
	ImageSearch, found_x, found_y, 0, 0, 1200, 1200, *100 qwe.png
	if (!ErrorLevel)
	{
	Send, {Control down} 
	MouseClick, left, %found_x%, %found_y% 
		
	
	}
}
return
Die erste Input Box öffnet sich ich gebe die gewünschte zahl ein. Er macht die genannten Durchläufe und öffnet dann die 2 InputBox. Allerdings hängt es sich dann wie auf. Ich kann keine Eingabe für die 2 Loop machen.
Hat hier jemand eine Idee?
Besten Dank
Freundliche Grüsse
Yumakuru
Last edited by jNizM on 18 Nov 2022, 06:20, edited 1 time in total.
Reason: added code tags
just me
Posts: 9453
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: Loop mit Input

18 Nov 2022, 05:52

Code: Select all

Send, {Control down}
Wann wird die wieder losgelassen?
Yumakuru
Posts: 11
Joined: 12 Nov 2022, 09:02

Re: Loop mit Input

18 Nov 2022, 06:08

just me wrote:
18 Nov 2022, 05:52

Code: Select all

Send, {Control down}
Wann wird die wieder losgelassen?
die wird nie los gelassen :lol:
demnach könnte dass, das Problem sein?
Yumakuru
Posts: 11
Joined: 12 Nov 2022, 09:02

Re: Loop mit Input

18 Nov 2022, 06:33

Hab es eingesetzt das Control up. Jetzt funktioniert es. Dankeschön
just me
Posts: 9453
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: Loop mit Input

18 Nov 2022, 07:16

Bitteschön! ;)

Return to “Ich brauche Hilfe”

Who is online

Users browsing this forum: No registered users and 94 guests