Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GlovePie Mouse

Empfohlene Antworten

Veröffentlicht

Hallo

Ihr kennt doch bestimmt die Funktion von Windows Maus Eigabehilfe ( Maus über Tastatur steuer)

Jetzt wollte ich sowas ähnliches über GlovePie machen, aber ich kriege es so nicht hin

Der Maus zeiger soll einen Pixel nach rechts rutschen wenn ich die Pfeiltaste drücke, aber mit meinem Code springt der Mauszeiger nur zum 1. Pixel.

if key.Left = True

x = mouse.CursorPosX

y = x + 1 Pixel

mouse.CursorPosX = y

end if

if key.Left = True

x = mouse.CursorPosX

y = x + 1 Pixel

mouse.CursorPosX = y

end if

Was hast du für nen Compiler? Erkennt der denn das Wort Pixel??

Für mich sieht der Code okay aus.

Hast du denn schon mal debugt?

Schreib doch einfach mal statt y = x + 1 nen Absolutwert rein. Also z. B. 400 Pixel und guck, ob er dorthin springt.

Versuchs mal so:

if key.Left = True

  mouse.CursorPosX = mouse.CursorPosX + 1

end if

Mit deinem Code legst du IMHO keine neuen Variablen an, sondern belegst die Tasten x und y neu.

Äh... woher kommt denn der Zusammenhang zwischen x, y und "Tasten".

Dass keine neuen Variablen angelegt werden, erscheint mir logisch.

Aber das erstere versteh ich nicht so recht.

Meinst du, dass x und y gar keine Variablen sind?

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.