#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=..\1475779252_Settings_gear_setting_tools.ico
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("", 211, 139, 192, 124)
$Group1 = GUICtrlCreateGroup("", 16, 8, 177, 113)
$Button1 = GUICtrlCreateButton("Choisir", 104, 32, 75, 17)
$Button2 = GUICtrlCreateButton("Choisir", 104, 64, 75, 17)
$Button3 = GUICtrlCreateButton("Choisir", 104, 96, 75, 17)
$Label1 = GUICtrlCreateLabel("MultiCompte 1 :", 24, 32, 77, 17)
$Label2 = GUICtrlCreateLabel("MultiCompte 2 :", 24, 64, 77, 17)
$Label3 = GUICtrlCreateLabel("MultiCompte 3 :", 24, 96, 77, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
Global $Handle1
Global $Handle2
Global $Handle3
;~ While 1
;~ $nMsg = GUIGetMsg()
;~ Switch $nMsg
;~ Case $GUI_EVENT_CLOSE
;~ Exit
;~ EndSwitch
;~ WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
multi1()
Case $Button2
multi2()
Case $Button3
multi3()
EndSwitch
WEnd
Func multi1()
ToolTip("Cliquez sur votre fênetre pour la mettre au premier plan, puis, appuyez sur C", 0, 0)
HotKeySet("c", "Option1")
EndFunc
Func multi2()
ToolTip("Cliquez sur votre fênetre pour la mettre au premier plan, puis, appuyez sur C", 0, 0)
HotKeySet("c", "Option2")
EndFunc
Func multi3()
ToolTip("Cliquez sur votre fênetre pour la mettre au premier plan, puis, appuyez sur C", 0, 0)
HotKeySet("c", "Option3")
EndFunc
Func Option1()
Tooltip("")
$Handle1 = WinGetHandle("")
ToolTip($Handle1,0,0)
Sleep(1000)
ToolTip("")
HotKeySet("c")
HotKeySet("&", "Start1")
EndFunc
Func Option2()
Tooltip("")
$Handle2 = WinGetHandle("")
ToolTip($Handle2,0,0)
Sleep(1000)
ToolTip("")
HotKeySet("c")
HotKeySet("é", "Start2")
EndFunc
Func Option3()
Tooltip("")
$Handle3 = WinGetHandle("")
ToolTip($Handle3,0,0)
Sleep(1000)
ToolTip("")
HotKeySet("c")
HotKeySet('"', "Start3")
EndFunc
Func Start1()
WinActivate($Handle1)
EndFunc
Func Start2()
WinActivate($Handle2)
EndFunc
Func Start3()
WinActivate($Handle3)
EndFunc