Hi
Ich will ein kleines Programm schreiben und bräuchte da die Funktion dass sich bei den pfeiltasten der Schwarze Kasten Verschiebt und zwar jedes mal in die richtung die man drückt
Folgendes habe ich bisher:
Spoiler anzeigen
#include <gui.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#NoTrayIcon
HotKeySet("{Down}")
HotKeySet("{Up}")
HotKeySet("{Right}")
HotKeySet("{Left}")
GUICreate("SB Game",@DesktopWidth,@Desktopheight,0,0,$WS_POPUP)
GUISetBkColor(0xCDAD00)
$mainmenu = GUICTrlCreateMenu("Datei")
$exititem = GUICtrlCreatemenuitem("Beenden",$mainmenu)
GUICtrlCreateLabel("",10,10,30,30)
GUICTrlSEtBkColor(-1,0x000000)
GUISEtState()
[/autoit] [autoit][/autoit] [autoit]While 1
$msg = GUIGEtMsg()
Switch $msg
Case $GUI_EVENT_CLOSE
Exit
Case $exititem
Exit
EndSwitch
Wend
Ich hoffe mir kann jemand helfen.
mfg. Simon