 |
AutoHotkey Community Wir helfen uns gegenseitig aus der Patsche
|
| Vorheriges Thema anzeigen :: Nächstes Thema anzeigen |
| Autor |
Nachricht |
IMPACT
Anmeldedatum: 17.05.2006 Beiträge: 54
|
Verfasst am: Do Mai 18, 2006 1:07 pm Titel: Bilder Buttons und Links |
|
|
Halöle
Frage: wie kan ich es so machen das ich ein bild als button verwende??
Und: wie füge ich bei Smart gui einen Link als Text ein??
ThX IMPACT |
|
| Nach oben |
|
 |
Thalon
Anmeldedatum: 25.10.2005 Beiträge: 1867 Wohnort: Österreich
|
|
| Nach oben |
|
 |
IMPACT
Anmeldedatum: 17.05.2006 Beiträge: 54
|
Verfasst am: Do Mai 18, 2006 4:14 pm Titel: |
|
|
jetz hab ich noch n problem ich hba zwar fleißig die anlietung gelesen und auch den Befehl : gui, -caption gefunden aber ich will das mein programm keinen windowsrahmen mit dem x butoon zum beenden und so hat aber das ich das menü trotzdem noch bewegen kann aber wie??? und ich will noch das mein programm also mein guifesnter transparent ist ich ahbe es zwar schon mit:
| Code: |
CustomColor = EEAA99
Gui, Color, %CustomColor%
WinSet, TransColor, %CustomColor% 150
Gui, Add, Text, vMyText cLime,
Gui, -Caption |
aber des funktioniert nciht so ganz also müsst ich jetz gerne von euch wissen wie ich den rahmen genau weggkrieg und das guifenster aber trotzdem noch verschieben kann und wie ich es etwas durchsichtig hinbekomme also nur so halbdurchsichtich
Vielen Viele Vielen Dank IMPACT |
|
| Nach oben |
|
 |
Thalon
Anmeldedatum: 25.10.2005 Beiträge: 1867 Wohnort: Österreich
|
Verfasst am: Do Mai 18, 2006 5:00 pm Titel: |
|
|
| Code: | Gui, Add, Text, vMyText cLime, AaBbCcDdEeFfGgHh
Gui, -SYSMENU
Gui, Show, , Test
WinSet, Transparent, 100, Test |
_________________ Mein Motto: Hilfe zur Selbsthilfe!
Teildeutsche Hilfe (CHM)!! und Deutsche Online-Hilfe |
|
| Nach oben |
|
 |
IMPACT
Anmeldedatum: 17.05.2006 Beiträge: 54
|
Verfasst am: Do Mai 18, 2006 8:34 pm Titel: |
|
|
Vielen Dank Thalon du bist der AhK-Master schlecht hin  |
|
| Nach oben |
|
 |
IMPACT
Anmeldedatum: 17.05.2006 Beiträge: 54
|
Verfasst am: Do Mai 18, 2006 8:47 pm Titel: |
|
|
Ok das wäre es was ich gemeint und jetz brauch ich nur noch das eine hier das ich das programm dann so auschaut:
| Code: | Gui, -caption
Gui, Add, Button, x186 y160 w100 h30, Button
Gui, Add, Edit, x185 y199 w100 h30, test1
Gui, Add, Tab, x-4 y0 w480 h160, Tab1|Tab2|Tab3|Tab4
Gui, Show, x350 y170 h379 w479, Testprog
Gui, color, 666666
Return
GuiClose:
ExitApp |
so.. nur ein problem ich will den rahmen wie bei -smenu nicht sehen aber das programm trotzdem noch bewegen können.
Ich weiß das ich nerfig bin aber von irgendwehm muss ichs ja lernen *grins* |
|
| Nach oben |
|
 |
Thalon
Anmeldedatum: 25.10.2005 Beiträge: 1867 Wohnort: Österreich
|
|
| Nach oben |
|
 |
IMPACT
Anmeldedatum: 17.05.2006 Beiträge: 54
|
Verfasst am: Fr Mai 19, 2006 11:42 am Titel: |
|
|
Cool danke hat mir echt geholfen wenn ich mal was für dich tun kann dann sags soweits mir dann möglich is werd ich dir helfen @ Thalon
Aber ich hab noch n problem:
| Code: | gui, -caption +alwaysontop -sysmenu
Gui, Show, , Test
WinGet, GuiID, ID, A
WinSet, AlwaysOnTop, On
Gui, Add, Button, x177 y130 w120 h40, anklicken und maus bewegen
Gui, Add, Edit, x122 y200 w300 h30, Dieser text lässt sich hier nicht per maus rauskopieren!
Gui, Show, x334 y110 h377 w477, test
Return
~LButton::
CoordMode, Mouse
MouseGetPos, MouseStartX, MouseStartY, MouseWin
if MouseWin <> %GuiID%
return
; Otherwise, track the mouse as the user drags it:
SetTimer, WatchMouse, 10
return
WatchMouse:
GetKeyState, LButtonState, LButton, P
if LButtonState = U ; Button has been released, so drag is complete.
{
SetTimer, WatchMouse, off
return
}
; Otherwise, reposition the window to match the change in mouse coordinates
; caused by the user having dragged the mouse:
CoordMode, Mouse
MouseGetPos, MouseX, MouseY
DeltaX = %MouseX%
DeltaX -= %MouseStartX%
DeltaY = %MouseY%
DeltaY -= %MouseStartY%
MouseStartX = %MouseX% ; Update for the next timer call to this subroutine.
MouseStartY = %MouseY%
WinGetPos, GuiX, GuiY,,, ahk_id %GuiID%
GuiX += %DeltaX%
GuiY += %DeltaY%
SetWinDelay, -1 ; Makes the below move faster/smoother.
WinMove, ahk_id %GuiID%,, %GuiX%, %GuiY%
return
GuiClose:
ExitApp |
Undzwar kann ich jetz zwar das fenster per dragwindow ohne leiste verschieben aber sobald ich etwas aus dem editfeld kopieren will oder den button gedrückt halten verschiebt sich automatisch das fenster. Bitte helft mir ThX IMPACT  |
|
| Nach oben |
|
 |
Thalon
Anmeldedatum: 25.10.2005 Beiträge: 1867 Wohnort: Österreich
|
Verfasst am: Fr Mai 19, 2006 4:24 pm Titel: |
|
|
Beinahe ein Einzeiler
| Zitat: | gui, -caption +alwaysontop -sysmenu
Gui, Show, , Test
WinGet, GuiID, ID, A
WinSet, AlwaysOnTop, On
Gui, Add, Button, x177 y130 w120 h40, anklicken und maus bewegen
Gui, Add, Edit, x122 y200 w300 h30, Dieser text lässt sich hier nicht per maus rauskopieren!
Gui, Show, x334 y110 h377 w477, test
Return
~LButton::
CoordMode, Mouse
MouseGetPos, MouseStartX, MouseStartY, MouseWin, MouseControl
if MouseWin <> %GuiID%
return
; Otherwise, track the mouse as the user drags it:
if MouseControl =
SetTimer, WatchMouse, 10
return
WatchMouse:
GetKeyState, LButtonState, LButton, P
if LButtonState = U ; Button has been released, so drag is complete.
{
SetTimer, WatchMouse, off
return
}
; Otherwise, reposition the window to match the change in mouse coordinates
; caused by the user having dragged the mouse:
CoordMode, Mouse
MouseGetPos, MouseX, MouseY
DeltaX = %MouseX%
DeltaX -= %MouseStartX%
DeltaY = %MouseY%
DeltaY -= %MouseStartY%
MouseStartX = %MouseX% ; Update for the next timer call to this subroutine.
MouseStartY = %MouseY%
WinGetPos, GuiX, GuiY,,, ahk_id %GuiID%
GuiX += %DeltaX%
GuiY += %DeltaY%
SetWinDelay, -1 ; Makes the below move faster/smoother.
WinMove, ahk_id %GuiID%,, %GuiX%, %GuiY%
return
GuiClose:
ExitApp | Thalon _________________ Mein Motto: Hilfe zur Selbsthilfe!
Teildeutsche Hilfe (CHM)!! und Deutsche Online-Hilfe |
|
| Nach oben |
|
 |
IMPACT
Anmeldedatum: 17.05.2006 Beiträge: 54
|
Verfasst am: So Mai 21, 2006 4:02 pm Titel: |
|
|
Ohh entschuldigung ich vergas eine kleinichkeit! der code sieht in wirklichkeit so aus:
| Code: | gui, -caption +alwaysontop -sysmenu
Gui, Show, , Test
WinGet, GuiID, ID, A
WinSet, AlwaysOnTop, On
Gui, Add, Picture, x-4 y0 w477 h300, %a_windir%\Präriewind.bmp
Gui, Add, Button, x177 y130 w120 h40, anklicken und maus bewegen
Gui, Add, Edit, x122 y200 w300 h30, Dieser text lässt sich hier nicht per maus rauskopieren!
Gui, Show, x334 y110 h300 w477, test
Return
~LButton::
CoordMode, Mouse
MouseGetPos, MouseStartX, MouseStartY, MouseWin
if MouseWin <> %GuiID%
return
; Otherwise, track the mouse as the user drags it:
SetTimer, WatchMouse, 10
return
WatchMouse:
GetKeyState, LButtonState, LButton, P
if LButtonState = U ; Button has been released, so drag is complete.
{
SetTimer, WatchMouse, off
return
}
; Otherwise, reposition the window to match the change in mouse coordinates
; caused by the user having dragged the mouse:
CoordMode, Mouse
MouseGetPos, MouseX, MouseY
DeltaX = %MouseX%
DeltaX -= %MouseStartX%
DeltaY = %MouseY%
DeltaY -= %MouseStartY%
MouseStartX = %MouseX% ; Update for the next timer call to this subroutine.
MouseStartY = %MouseY%
WinGetPos, GuiX, GuiY,,, ahk_id %GuiID%
GuiX += %DeltaX%
GuiY += %DeltaY%
SetWinDelay, -1 ; Makes the below move faster/smoother.
WinMove, ahk_id %GuiID%,, %GuiX%, %GuiY%
return
GuiClose:
ExitApp |
Aber wenn ich ihn so abändere wie ihr mir gesagt habt und das bild das dort drin ist den ganzen hintergrund belegt dann geht nix mehr mit bewegn.Also dann siehts so aus:
| Code: | gui, -caption +alwaysontop -sysmenu
Gui, Show, , Test
WinGet, GuiID, ID, A
WinSet, AlwaysOnTop, On
Gui, Add, Picture, x-4 y0 w477 h300, %a_windir%\Präriewind.bmp
Gui, Add, Button, x177 y130 w120 h40, anklicken und maus bewegen
Gui, Add, Edit, x122 y200 w300 h30, Dieser text lässt sich hier nicht per maus rauskopieren!
Gui, Show, x334 y110 h300 w477, test
Return
~LButton::
CoordMode, Mouse
MouseGetPos, MouseStartX, MouseStartY, MouseWin, MouseControl
if MouseWin <> %GuiID%
return
; Otherwise, track the mouse as the user drags it:
if mousecontrol
SetTimer, WatchMouse, 10
return
WatchMouse:
GetKeyState, LButtonState, LButton, P
if LButtonState = U ; Button has been released, so drag is complete.
{
SetTimer, WatchMouse, off
return
}
; Otherwise, reposition the window to match the change in mouse coordinates
; caused by the user having dragged the mouse:
CoordMode, Mouse
MouseGetPos, MouseX, MouseY
DeltaX = %MouseX%
DeltaX -= %MouseStartX%
DeltaY = %MouseY%
DeltaY -= %MouseStartY%
MouseStartX = %MouseX% ; Update for the next timer call to this subroutine.
MouseStartY = %MouseY%
WinGetPos, GuiX, GuiY,,, ahk_id %GuiID%
GuiX += %DeltaX%
GuiY += %DeltaY%
SetWinDelay, -1 ; Makes the below move faster/smoother.
WinMove, ahk_id %GuiID%,, %GuiX%, %GuiY%
return
GuiClose:
ExitApp |
Wie kann ich des jetz ändern?? |
|
| Nach oben |
|
 |
Thalon
Anmeldedatum: 25.10.2005 Beiträge: 1867 Wohnort: Österreich
|
Verfasst am: So Mai 21, 2006 5:05 pm Titel: |
|
|
Ach komm, du konntest ja noch nicht mal richtig ABSCHREIBEN!
Dein Code hat mit meiner Änderung leider nicht viel zu tun! (fehlt etwas sehr entscheidendes!)
Außerdem müsstest du nur bei "if MouseControl =" eine weitere Bedingung hinzufügen, die das entsprechende Picture-Control ausnimmt -.-
Wie du das machst findest du in der Hilfe zur "if (expression)".
Thalon _________________ Mein Motto: Hilfe zur Selbsthilfe!
Teildeutsche Hilfe (CHM)!! und Deutsche Online-Hilfe |
|
| Nach oben |
|
 |
IMPACT☺ Gast
|
Verfasst am: So Mai 21, 2006 7:04 pm Titel: |
|
|
Man ich kapeir des nicht und beschimpf mich nicht als einzeller es kennt sich vielleicht nicht jeder so gut aus wie du!!
Und du könntest mir ruhig helfen weil ich des einfach nicht kapier.Und zu blöd zum Help file lesen bin ich auch nicht aber einfach zu blöd zum kapieren.dir hat bestimmt auch jemand am anfang geholfen also sei ned so Klugscheissermäßig!!!! |
|
| Nach oben |
|
 |
AGU Gast
|
Verfasst am: So Mai 21, 2006 7:44 pm Titel: |
|
|
| Zitat: | | Man ich kapeir des nicht und beschimpf mich nicht als einzeller es kennt sich vielleicht nicht jeder so gut aus wie du!! | Da hast du dich ganz klassisch selbst ausgeknockt. Thalon hat dich keineswegs als Einzeller bezeichnet. Wie kommst du nur auf sowas? Das einzige was Thalon geschrieben hat ist | Zitat: | Beinahe ein Einzeiler  | und damit ist lediglich die Länge der Codeänderung gemeint, die sich fast auf eine einzige Zeile beschränkt. Also komm bitte mal wieder runter.
Überhaupt muss du Thalon dankbar sein, das er so eine Engelsgeduld mit dir hatte. Hast ihn ja selbst vorher über den grünen Klee gelobt, bevor du dich jetzt im Ton vergreifst. Ich hätte schon viel früher das Handtuch geworfen.
Ich hab irgendwie geahnt, dass das so ein Ende nehmen wird.
(Lass mich raten, du bist so ca. 14 - 18 Jahre alt?)
________________________
AGU |
|
| Nach oben |
|
 |
IMPACT☺ Gast
|
Verfasst am: So Mai 21, 2006 8:38 pm Titel: |
|
|
| 16 um genau zu sein aber beurteile mihc nciht nach meinem Alter. Ich sage ja auch nicht das Thalon nicht nett ist und mir nicht helfen würde aber ich fand es ungerecht.Er hätte im letzten Beitrag einfach schreiben könne was ich falsch gemacht als sich drüber aufzuregen das hätte ihm und mir eine menge Zeit ersparrt. Außerdem ist mein code keineswegs unbrauchbar er ist nur ein beispiel oder denkst du das ich einfach so jedes "programm" bzw jedes script was ich schreibe hier poste?? |
|
| Nach oben |
|
 |
IMPACT☺ Gast
|
Verfasst am: So Mai 21, 2006 9:42 pm Titel: |
|
|
| Bitte helft mir mit diesem Problem!! es ist voll wichtig weil ich verzweifel grad an diesem be*@%&!nen Helpfile des hilft mir kein Stück weiter!!! |
|
| Nach oben |
|
 |
|
|
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten.
|
Powered by phpBB © 2001, 2005 phpBB Group Deutsche Übersetzung von phpBB.de
|