hey, :D
Ich hab hier mal was aus langeweile gemacht.
Ein Tool zum Verstecken von Fenstern.
Ich weiß..blauwiggle hat das schon gemacht, aber ich will betonen das ich nichts aus seiner source kopiert habe sondern alle selbständigt gemacht habe
Mein Prob:
Bei Exit soll der bei Hotkey aktivierung, erst eine MsgBox hoch holen.
Bei "Ja" dann alle verstecketen Fenster !-minimiert-! vorholen und sich schließen.
Bei "Nein" soll sich die MsgBox einfach schließen
Und noch eine frage:
ich hab jetz @SW_show und @SW_MINIMIZ einzel gemacht.
Kann das das ned zusammen machen ?? mit "and" und "+" hab ich es versucht und kam ned weiter
für ewas hilfe wär ich dankbar:)
€dit:
Ich hab hier mal was aus langeweile gemacht.
Ein Tool zum Verstecken von Fenstern.
Ich weiß..blauwiggle hat das schon gemacht, aber ich will betonen das ich nichts aus seiner source kopiert habe sondern alle selbständigt gemacht habe
Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("Ich kann dich sehen! oO", 443, 603, 277, 157)
$Group1 = GUICtrlCreateGroup("", 8, 8, 425, 505)
$Input1 = GUICtrlCreateInput("", 40, 160, 161, 21)
$Input2 = GUICtrlCreateInput("", 40, 200, 161, 21)
$Button1 = GUICtrlCreateButton("Show", 256, 160, 57, 25)
$Button2 = GUICtrlCreateButton("Show", 256, 200, 57, 25)
$Button3 = GUICtrlCreateButton("Hide", 328, 160, 57, 25)
$Button4 = GUICtrlCreateButton("Hide", 328, 200, 57, 25)
$Input3 = GUICtrlCreateInput("", 40, 240, 161, 21)
$Button5 = GUICtrlCreateButton("Show", 256, 240, 57, 25)
$Button6 = GUICtrlCreateButton("Hide", 328, 240, 57, 25)
$Group3 = GUICtrlCreateGroup("Anleitung", 16, 24, 193, 105)
$Label7 = GUICtrlCreateLabel("Name vom Prog. eingben.", 24, 48, 127, 17)
$Label8 = GUICtrlCreateLabel("Show ---> Anzeigen", 24, 80, 96, 17)
$Label9 = GUICtrlCreateLabel("Hide -----> Verstecken", 24, 104, 107, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group4 = GUICtrlCreateGroup("Hotkeys", 232, 24, 185, 105)
$Label10 = GUICtrlCreateLabel("Beenden ------> F6", 240, 48, 156, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Input4 = GUICtrlCreateInput("", 40, 280, 161, 21)
$Input5 = GUICtrlCreateInput("", 40, 320, 161, 21)
$Button7 = GUICtrlCreateButton("Show", 256, 280, 57, 25)
$Button8 = GUICtrlCreateButton("Hide", 328, 280, 57, 25)
$Button9 = GUICtrlCreateButton("Show", 256, 320, 57, 25)
$Button10 = GUICtrlCreateButton("Hide", 328, 320, 57, 25)
$Input6 = GUICtrlCreateInput("", 40, 360, 161, 21)
$Input7 = GUICtrlCreateInput("", 40, 400, 161, 21)
$Input8 = GUICtrlCreateInput("", 40, 440, 161, 21)
$Input9 = GUICtrlCreateInput("", 40, 480, 161, 21)
$Button11 = GUICtrlCreateButton("Show", 256, 360, 57, 25, 0)
$Button12 = GUICtrlCreateButton("Hide", 328, 360, 57, 25, 0)
$Button13 = GUICtrlCreateButton("Show", 256, 400, 57, 25, 0)
$Button14 = GUICtrlCreateButton("Hide", 328, 400, 57, 25, 0)
$Button15 = GUICtrlCreateButton("Show", 256, 440, 57, 25, 0)
$Button16 = GUICtrlCreateButton("Hide", 328, 440, 57, 25, 0)
$Button17 = GUICtrlCreateButton("Show", 256, 480, 57, 25, 0)
$Button18 = GUICtrlCreateButton("Hide", 328, 480, 57, 25, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button20 = GUICtrlCreateButton("Show All", 256, 528, 57, 65, 0)
$Button21 = GUICtrlCreateButton("Hide All", 328, 528, 57, 65, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
HotKeySet("{F6}", "_exit")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button20
_show_all()
Case $Button21
_hide_all()
Case $Button1
WinSetState(GUICtrlRead($Input1), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
Case $Button3
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input1), "", @SW_HIDE)
Case $Button2
WinSetState(GUICtrlRead($Input2), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input2), "", @SW_MINIMIZE)
Case $Button4
WinSetState(GUICtrlRead($Input2), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input2), "", @SW_HIDE)
Case $Button5
WinSetState(GUICtrlRead($Input3), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input3), "", @SW_MINIMIZE)
Case $Button6
WinSetState(GUICtrlRead($Input3), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input3), "", @SW_HIDE)
Case $Button7
WinSetState(GUICtrlRead($Input4), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input4), "", @SW_MINIMIZE)
Case $Button8
WinSetState(GUICtrlRead($Input4), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input4), "", @SW_HIDE)
Case $Button9
WinSetState(GUICtrlRead($Input5), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input5), "", @SW_MINIMIZE)
Case $Button10
WinSetState(GUICtrlRead($Input5), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input5), "", @SW_HIDE)
Case $Button11
WinSetState(GUICtrlRead($Input6), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input6), "", @SW_MINIMIZE)
Case $Button12
WinSetState(GUICtrlRead($Input6), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input6), "", @SW_HIDE)
Case $Button13
WinSetState(GUICtrlRead($Input7), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input7), "", @SW_MINIMIZE)
Case $Button14
WinSetState(GUICtrlRead($Input7), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input7), "", @SW_HIDE)
Case $Button15
WinSetState(GUICtrlRead($Input8), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input8), "", @SW_MINIMIZE)
Case $Button16
WinSetState(GUICtrlRead($Input8), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input8), "", @SW_HIDE)
Case $Button17
WinSetState(GUICtrlRead($Input9), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input9), "", @SW_MINIMIZE)
Case $Button18
WinSetState(GUICtrlRead($Input9), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input9), "", @SW_HIDE)
EndSwitch
WEnd
Func _show_all()
WinSetState(GUICtrlRead($Input1), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input2), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input3), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input4), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input5), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input6), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input7), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input8), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input9), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
EndFunc ;==>_show_all
Func _hide_all()
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input1), "", @SW_HIDE)
WinSetState(GUICtrlRead($Input2), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input2), "", @SW_HIDE)
WinSetState(GUICtrlRead($Input3), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input3), "", @SW_HIDE)
WinSetState(GUICtrlRead($Input4), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input4), "", @SW_HIDE)
WinSetState(GUICtrlRead($Input5), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input5), "", @SW_HIDE)
WinSetState(GUICtrlRead($Input6), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input6), "", @SW_HIDE)
WinSetState(GUICtrlRead($Input7), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input7), "", @SW_HIDE)
WinSetState(GUICtrlRead($Input8), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input8), "", @SW_HIDE)
WinSetState(GUICtrlRead($Input9), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input9), "", @SW_HIDE)
EndFunc ;==>_hide_all
Func _exit()
$iResponse = MsgBox(4 + 64 + 262144, "Wirklich Beenden?", "Beim Beenden werden alle verstecken Fenster wieder hervorgerufen!!")
If $iResponse = 6 Then
WinSetState(GUICtrlRead($Input1), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input2), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input3), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input4), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input5), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input6), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input7), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input8), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
WinSetState(GUICtrlRead($Input9), "", @SW_SHOW)
WinSetState(GUICtrlRead($Input1), "", @SW_MINIMIZE)
Exit
EndIf
EndFunc ;==>_exit
Bei Exit soll der bei Hotkey aktivierung, erst eine MsgBox hoch holen.
Bei "Ja" dann alle verstecketen Fenster !-minimiert-! vorholen und sich schließen.
Bei "Nein" soll sich die MsgBox einfach schließen
Und noch eine frage:
ich hab jetz @SW_show und @SW_MINIMIZ einzel gemacht.
Kann das das ned zusammen machen ?? mit "and" und "+" hab ich es versucht und kam ned weiter
für ewas hilfe wär ich dankbar:)
€dit:
hab extra hier rein gemacht weil man doch in den anderen beiden sektionen keine fragen stellen darf ??Quote:
1. Wrong Sektion