Ich will eine schleife solange laufen lassen, bis eine bestimmte aktion durchgeführt wird (zb maus-rechtsklick oder eine bestimmte taste)
ist das möglich?
erschwerend kommt hinzu, dass innerhalb der Schleife ein BlockInput verwendet wird....
Schleife mit Abbruchbedingung Eingabe
-
- [ offen ]
-
CallMeN00b68 -
28. April 2007 um 11:40 -
Geschlossen -
Erledigt
-
-
- Offizieller Beitrag
Hi,
ja ist möglich, wenn du genau beschreiben kannst, was du willst.
So long,
Mega
-
naja ich habe als grundgerüst nun eine do...until-Schleife. als abbruchbedingung habe ich derzeit einen laufindex=7, und eben dieser soll ersetzt werden - maus-rechtsklick wäre da schon genau das richtige
oder was meinst du mit "genau beschreiben"?
-
- Offizieller Beitrag
Hi,
dann machst du until _isPressed ... rechte Maustaste
So long,
Mega
-
"_isPressed" ist in der Hilfe nicht zu finden?!
-
Guck mal im Beta helpfile da ist das meist drin
-
wo gibt es das denn?
PS: im englischen Helpfile stehts auch nicht
-
- Offizieller Beitrag
Hi!
Hmmm...
Zitat
Function Reference
_IsPressed
--------------------------------------------------------------------------------Check if key has been pressed
#Include <Misc.au3>
_IsPressed ( $s_hexKey [, $v_dll = 'user32.dll' ] )Parameters
$s_hexKey key to check for
$v_dll Optional: Handle to dll or default to user32.dllReturn Value
Success: Returns 1 if true.
Failure: Returns 0 if false.Remarks
01 Left mouse button
02 Right mouse button
[...]Related
None.
Example
#include <Misc.au3>
$dll = DllOpen("user32.dll")
While 1
Sleep ( 250 )
If _IsPressed("23", $dll) Then
MsgBox(0,"_IsPressed", "End Key Pressed")
ExitLoop
EndIf
WEnd
DllClose($dll)peethebee
-
Ja das sieht doch gut aus - wo ahst du das jetzt her? wäre ganz gut für zukünftiges die vollständige Liste zu haben;
"
Remarks01 Left mouse button
02 Right mouse button
[...]
" -
- Offizieller Beitrag
Hi!
Ich habe es aus der aktuellen Beta-Hilfe (auf Englisch) kopiert. Da findest du auch eine komplette Liste der Tasten
peethebee
-
mmm also ich habe jetzt die help von v3.2.3.11 (beta) aufgerufen und auch dort finde sich mit isPressed oder _isPressed nichts?! weder so über die Suche noch unter functions
-
- Offizieller Beitrag
-
-
- Offizieller Beitrag
_IsPressed()
-
guck doch mal, an welcher stelle das trotz "_" bei dir steht.... unter _ gibts garnichts (also vor a oder nach z)
-
- Offizieller Beitrag
Dann gib einfach die ersten Buchstaben ein:
[Blockierte Grafik: http://img-up.net/img/ispressedwTC.PNG]Viel einfacher aber:
Befehl in SciTE schreiben, markieren und dann F1 drücken.