Code : Tout sélectionner
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\T1j0n\Desktop\AutoIt\Form1.kxf
$Form1 = GUICreate("Virtu4l Clav13r V0.1", 541, 166, 192, 124, -1, BitOR($WS_EX_TOPMOST,$WS_EX_WINDOWEDGE))
$Button1 = GUICtrlCreateButton("Ech", 8, 8, 33, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("F9", 328, 8, 33, 25, $WS_GROUP)
$Button3 = GUICtrlCreateButton("F5", 192, 8, 33, 25, $WS_GROUP)
$Button4 = GUICtrlCreateButton("F4", 152, 8, 33, 25, $WS_GROUP)
$Button5 = GUICtrlCreateButton("F3", 120, 8, 33, 25, $WS_GROUP)
$Button6 = GUICtrlCreateButton("F2", 88, 8, 33, 25, $WS_GROUP)
$Button7 = GUICtrlCreateButton("F1", 56, 8, 33, 25, $WS_GROUP)
$Button8 = GUICtrlCreateButton("F7", 256, 8, 33, 25, $WS_GROUP)
$Button9 = GUICtrlCreateButton("F12", 424, 8, 33, 25, $WS_GROUP)
$Button10 = GUICtrlCreateButton("F8", 288, 8, 33, 25, $WS_GROUP)
$Button11 = GUICtrlCreateButton("F6", 224, 8, 33, 25, $WS_GROUP)
$Button12 = GUICtrlCreateButton("Inser", 472, 8, 33, 25, $WS_GROUP)
$Button13 = GUICtrlCreateButton("F10", 360, 8, 33, 25, $WS_GROUP)
$Button14 = GUICtrlCreateButton("Suppr", 504, 8, 33, 25, $WS_GROUP)
$Button15 = GUICtrlCreateButton("F11", 392, 8, 33, 25, $WS_GROUP)
$Button16 = GUICtrlCreateButton("²", 8, 40, 33, 25, $WS_GROUP)
$Button17 = GUICtrlCreateButton("1", 48, 40, 33, 25, $WS_GROUP)
$Button18 = GUICtrlCreateButton("0", 336, 40, 33, 25, $WS_GROUP)
$Button19 = GUICtrlCreateButton("6", 208, 40, 33, 25, $WS_GROUP)
$Button20 = GUICtrlCreateButton("2", 80, 40, 33, 25, $WS_GROUP)
$Button21 = GUICtrlCreateButton("4", 144, 40, 33, 25, $WS_GROUP)
$Button22 = GUICtrlCreateButton("9", 304, 40, 33, 25, $WS_GROUP)
$Button23 = GUICtrlCreateButton("8", 272, 40, 33, 25, $WS_GROUP)
$Button24 = GUICtrlCreateButton("3", 112, 40, 33, 25, $WS_GROUP)
$Button25 = GUICtrlCreateButton("=", 400, 40, 33, 25, $WS_GROUP)
$Button26 = GUICtrlCreateButton("7", 240, 40, 33, 25, $WS_GROUP)
$Button27 = GUICtrlCreateButton("<==", 432, 40, 105, 25, $WS_GROUP)
$Button28 = GUICtrlCreateButton(")", 368, 40, 33, 25, $WS_GROUP)
$Button29 = GUICtrlCreateButton("Tab", 8, 64, 49, 25, $WS_GROUP)
$Button30 = GUICtrlCreateButton("5", 176, 40, 33, 25, $WS_GROUP)
$Button31 = GUICtrlCreateButton("o", 312, 64, 33, 25, $WS_GROUP)
$Button32 = GUICtrlCreateButton("a", 56, 64, 33, 25, $WS_GROUP)
$Button33 = GUICtrlCreateButton("e", 120, 64, 33, 25, $WS_GROUP)
$Button34 = GUICtrlCreateButton("z", 88, 64, 33, 25, $WS_GROUP)
$Button35 = GUICtrlCreateButton("y", 216, 64, 33, 25, $WS_GROUP)
$Button36 = GUICtrlCreateButton("r", 152, 64, 33, 25, $WS_GROUP)
$Button37 = GUICtrlCreateButton("$", 400, 64, 33, 25, $WS_GROUP)
$Button38 = GUICtrlCreateButton("u", 248, 64, 33, 25, $WS_GROUP)
$Button39 = GUICtrlCreateButton("t", 184, 64, 33, 25, $WS_GROUP)
$Button40 = GUICtrlCreateButton("i", 280, 64, 33, 25, $WS_GROUP)
$Button41 = GUICtrlCreateButton("p", 344, 64, 33, 25, $WS_GROUP)
$Button42 = GUICtrlCreateButton("^", 376, 64, 25, 25, $WS_GROUP)
$Button43 = GUICtrlCreateButton("Entree", 448, 64, 89, 49, $WS_GROUP)
$Button44 = GUICtrlCreateButton("Caps", 8, 88, 57, 25, $WS_GROUP)
$Button45 = GUICtrlCreateButton("q", 64, 88, 33, 25, $WS_GROUP)
$Button46 = GUICtrlCreateButton("h", 224, 88, 33, 25, $WS_GROUP)
$Button47 = GUICtrlCreateButton("j", 256, 88, 33, 25, $WS_GROUP)
$Button48 = GUICtrlCreateButton("s", 96, 88, 33, 25, $WS_GROUP)
$Button49 = GUICtrlCreateButton("k", 288, 88, 33, 25, $WS_GROUP)
$Button50 = GUICtrlCreateButton("d", 128, 88, 33, 25, $WS_GROUP)
$Button51 = GUICtrlCreateButton("l", 320, 88, 33, 25, $WS_GROUP)
$Button52 = GUICtrlCreateButton("f", 160, 88, 33, 25, $WS_GROUP)
$Button53 = GUICtrlCreateButton("m", 352, 88, 33, 25, $WS_GROUP)
$Button54 = GUICtrlCreateButton("g", 192, 88, 33, 25, $WS_GROUP)
$Button55 = GUICtrlCreateButton("ù", 384, 88, 33, 25, $WS_GROUP)
$Button56 = GUICtrlCreateButton("*", 416, 88, 33, 25, $WS_GROUP)
$Button57 = GUICtrlCreateButton("<", 56, 112, 33, 25, $WS_GROUP)
$Button58 = GUICtrlCreateButton("Maj", 8, 112, 49, 25, $WS_GROUP)
$Button59 = GUICtrlCreateButton("x", 120, 112, 33, 25, $WS_GROUP)
$Button60 = GUICtrlCreateButton("w", 88, 112, 33, 25, $WS_GROUP)
$Button61 = GUICtrlCreateButton("c", 152, 112, 33, 25, $WS_GROUP)
$Button62 = GUICtrlCreateButton("b", 216, 112, 33, 25, $WS_GROUP)
$Button63 = GUICtrlCreateButton("v", 184, 112, 33, 25, $WS_GROUP)
$Button64 = GUICtrlCreateButton(",", 280, 112, 33, 25, $WS_GROUP)
$Button65 = GUICtrlCreateButton("n", 248, 112, 33, 25, $WS_GROUP)
$Button66 = GUICtrlCreateButton(";", 312, 112, 33, 25, $WS_GROUP)
$Button67 = GUICtrlCreateButton("!", 376, 112, 33, 25, $WS_GROUP)
$Button68 = GUICtrlCreateButton(":", 344, 112, 33, 25, $WS_GROUP)
$Button69 = GUICtrlCreateButton("Majuscule", 432, 112, 105, 25, $WS_GROUP)
$Button70 = GUICtrlCreateButton("Espace", 152, 136, 161, 25, $WS_GROUP)
$Button71 = GUICtrlCreateButton("Al gr", 312, 136, 33, 25, $WS_GROUP)
$Button73 = GUICtrlCreateButton("", 344, 136, 33, 25, $WS_GROUP)
$Button74 = GUICtrlCreateButton("Ctrl", 376, 136, 33, 25, $WS_GROUP)
$Button75 = GUICtrlCreateButton("alt", 120, 136, 33, 25, $WS_GROUP)
$Button76 = GUICtrlCreateButton("win", 88, 136, 33, 25, $WS_GROUP)
$Button77 = GUICtrlCreateButton("", 56, 136, 33, 25, $WS_GROUP)
$Button78 = GUICtrlCreateButton("ctrl", 8, 136, 49, 25, $WS_GROUP)
$Button72 = GUICtrlCreateButton("<", 408, 136, 33, 25, $WS_GROUP)
$Button79 = GUICtrlCreateButton("^", 440, 136, 33, 25, $WS_GROUP)
$Button80 = GUICtrlCreateButton("n", 472, 136, 33, 25, $WS_GROUP)
$Button81 = GUICtrlCreateButton(">", 504, 136, 33, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
WinGetTitle("[ACTIVE]", "")
Case $Button16
send("²")
EndSwitch
WEnd