Glaub net, dass das bei externen Fenstern möglich ist.
Farbe von allen Controls ändern
-
- [ gelöst ]
-
NoName -
10. Februar 2010 um 18:59 -
Geschlossen -
Erledigt
-
-
Nein, glaube ich nicht. Das wär auch richtig blöd von Windows, weil jeder Virus könnte immer alle Fenster usw. zerstören/anders anzeigen, dass man nicht mehr arbeiten kann
-
Genau
-
*g* und ich glaube schon das das geht, zumindest fenster verändern. ob man fremden controls ne andre farbe geben kann weiß ich aber nicht sicher.
aber du kannst fremde controls auf @SW_Hide setzten und deine eigenen reinmachenDas stichwort is AnyGui.au3
http://www.autoitscript.com/forum/index.php?showtopic=9517eine meiner lieblings udf's
-
Dann wäre das AutoIt Script ja ein Virus, denn man ändert ja ein anderes Programm.
-
Was man alles machen kann.
-
Ein programm nur zu verändern is noch kein virus. Sonst wären ja sämtliche Plugin's viren.
ich hab mir schon oft buttons in andere programme gemacht, weil halt einfach oft was bestimmtes fehltaber im prinzip hast du recht. man kann damit seehr viel scheiße baun.
grundsätzlich isses aber als sehr nützlich gedacht -
Wie soll mir denn ANYGUI helfen Controls in einem Fenster zu finden bzw zu erkennen?^^
-
wieso solltest du controls suchen? hast du ein fenster wo du nicht weißt welche controls drauf sind?
-
- Offizieller Beitrag
Da ich an die 100 COntrols habe möchte ich nicht jedes einzelne mit GUICtrlSetColor ändern
Mach die Controls in ein Array und benutz ne For Schleife
Ja daran habe ich auch schon gedacht, finde aber nicht, dass das die beste Lösung ist (flls es überhaupt eine andere gibt).
@NoName: Du bekommst hier eine saubere Lösung angeboten (bei 100 Controls ist es übrigens wenig sinnvoll kein Array zu verwenden) und lehnst sie ab, weil du findest, dass das nicht die beste sei.. :wacko:
Wär nicht schlecht, wenn du das mal begründen könntest. Letztlich lagerst du das in eine Funktion aus und hast dann nur einen einzigen Befehl dafür. -
Diese 100 Controls dienen zur Anzeige von Daten, also werden die Labels regelmäßig refresht. Dadurch kann ich die Controls nicht in einer Schleife erstellen bzw. ändern. Also müsste ich manuell nach jedem Control das Handle in ein Array stopfen, was sehr viel Code und viel Copy+Paste (also auch Aufwand) erfordert. Man muss wissen dass ich ein fauler Mensch bin, sonst hätte ich das schon längst so gemacht^^
Deshalb frage ich hier nochmal nach, zudem haben sich bisher nur die selben Leute geäußert.
-
Hab ich jetzt richtig verstanden, dass du durch Radioboxen usw. Labels verändern willst?
Wenn ja dann geht das immernoch gut mit einem Array -
- Offizieller Beitrag
also werden die Labels regelmäßig refresht.
Ein Grund mehr ein Array zu verwenden.
Also müsste ich manuell nach jedem Control das Handle in ein Array stopfen
Ganz und gar nicht, du kannst die Controls im Array erstellen, so wird die ID automatisch gespeichert.
-
Hab ich jetzt richtig verstanden, dass du durch Radioboxen usw. Labels verändern willst?
Wenn ja dann geht das immernoch gut mit einem Array
Wie kommst du denn darauf? xD neinEin Grund mehr ein Array zu verwenden.
Ganz und gar nicht, du kannst die Controls im Array erstellen, so wird die ID automatisch gespeichert.
Ja klar kann man das direkt ins Array erstellen, nur dann muss ich noch die ganzen 100 GUICtrlSetData verändern. Also weniger Arbeit ist das nicht. -
Dann erklär doch mal bitte inwiefern die GUI's im Zusammenhang mit den Labels stehen
-
Also weniger Arbeit ist das nicht.
ähm doch
außerdem brauchst du noch nichmal array. die lösung die ich in Post 15 geschrieben hab geht auch ohne^^
-
- Offizieller Beitrag
Dieser Thread ist ein klassisches Bsp. dafür, wie man sinnlos ein Forum beschäftigt, weil man einfach seinen Source-Code zur Problembeleuchtung nicht zeigt!
Also, solange hier kein Code ist, der klärt was du eigentlich willst...
-
Dann erklär doch mal bitte inwiefern die GUI's im Zusammenhang mit den Labels stehen
Ich verstehe nicht was du meinst oOähm doch
außerdem brauchst du noch nichmal array. die lösung die ich in Post 15 geschrieben hab geht auch ohne^^
Es wäre wesentlich weniger Arbeit. Bis ich alle Codestellen gefunden habe ist der halbe Tag rum, der Code ist 3000 Zeilen lang. Die Lösung aus Post 15 ist für mich nicht drin, da die Controls nicht in einer Reihe liegen, sondern unterschiedliche X und Y Koordinaten und unterschiedliche Breite und Höhe haben, außerdem sind das auch Inputs, Buttons, Pics, und Groups.Wenn das mit dem Array die beste Lösung ist, werd ich das wohl umsetzen, aberdoof ist das schon, geht immer so viel Zeit drauf.
-
was bitte haben denn die x und y koordinaten mit der textfarbe der controls zu tun?
was genau willst du jetz egtl machen?
-
was bitte haben denn die x und y koordinaten mit der textfarbe der controls zu tun?
was genau willst du jetz egtl machen?
In Post 15 hast du in einer For Schleife Controls erstellt und direkt in das Array geschrieben. Ich habe nur gesagt dass das für mich nicht möglich ist. Aufgrund der Koordinaten, Breite, Höhe... -