Search found 9501 matches
- 19 Oct 2013, 02:36
- Forum: Ich brauche Hilfe
- Topic: Besserer Aufbau einer Funktion mit DllCalls
- Replies: 28
- Views: 11228
Re: Besserer Aufbau einer Funktion mit DllCalls
Statische wie lokale Variablen existieren nur innerhalb der umgebenden Funktion. Du kannst deshalb dieselben Namen in unterschiedlichen Funktionen wiederverwenden und brauchst Dir auch keine Gedanken darüber zu machen, ob der Name im "globalen" Teil des Skripts (d.h. außerhalb von Funktionen) verwen...
- 19 Oct 2013, 01:23
- Forum: Ask for Help (v1)
- Topic: Any way to make a button do the g-label on click not release
- Replies: 5
- Views: 2891
Re: Any way to make a button do the g-label on click not rel
OnMessage(WM_LBUTTONDOWN, "OnLButtonDown")?
- 19 Oct 2013, 01:18
- Forum: Ask for Help (v1)
- Topic: Please help with gui button toggle
- Replies: 7
- Views: 6256
Re: Please help with gui button toggle
#NoEnv #SingleInstance Force Gui, Add, Button, w90 h30 Default gButton vButton, Start Gui, Show Return GuiClose: ExitApp Button: GuiControlGet, Action, , %A_GuiControl% GuiControl, , %A_GuiControl%, % (Action = "Start" ? "Stop" : "Start") If (Action = "Start") SetTimer, MainLoop, -1 Return MainLoop...
- 18 Oct 2013, 14:57
- Forum: Ich brauche Hilfe
- Topic: Besserer Aufbau einer Funktion mit DllCalls
- Replies: 28
- Views: 11228
Re: Besserer Aufbau einer Funktion mit DllCalls
Klassen machen manchmal durchaus Sinn, aber nicht immer!
v2 forum?
I still would like to have a v2 forum as well as the current AutoHotkey forum here. Are there any plans on this? The forums could be titled "AutoHotkey/AHKScript 1.1" and "AutoHotkey/AHKScript v2".
- 18 Oct 2013, 10:36
- Forum: Announcements
- Topic: Permanent Domain
- Replies: 183
- Views: 158017
Re: Permanent Domain
"Automation. Hotkeys. Scripting." is standing for Chris' original idea to enable non-programmers to automate their processes. But over the years AHK has become a powerful all-purpose scripting language. Isn't it time to change the logo to "Scripting. Automation. Hotkeys."?
- 18 Oct 2013, 07:23
- Forum: Ich brauche Hilfe
- Topic: Besserer Aufbau einer Funktion mit DllCalls
- Replies: 28
- Views: 11228
Re: Besserer Aufbau einer Funktion mit DllCalls
Hallo,
außerdem können die wiederholten Aufrufe dazu führen, dass die einzeln abgeholten Werte nicht einem Zustand zu einem bestimmten Zeitpunkt entsprechen, d.h. nicht zusammengehörig sind.
außerdem können die wiederholten Aufrufe dazu führen, dass die einzeln abgeholten Werte nicht einem Zustand zu einem bestimmten Zeitpunkt entsprechen, d.h. nicht zusammengehörig sind.
- 18 Oct 2013, 00:04
- Forum: Ask for Help (v1)
- Topic: ahk v1.1+ ChangeDisplaySetting function for all OS and res
- Replies: 10
- Views: 5551
Re: ahk v1.1+ ChangeDisplaySetting function for all OS and r
Hi, to reset to the default settings (stored in the registry), just pass empty values ("") for all parameters. You might call the function like this in an OnExit label, to make sure that changes will be resetted. I never used the CDS_FULLSCREEN mode, so I don't know how it works. For more informatio...
- 17 Oct 2013, 14:39
- Forum: Wish List
- Topic: Guest posting
- Replies: 13
- Views: 6219
Re: Guest posting
Did it?
- 17 Oct 2013, 14:34
- Forum: Ask for Help (v1)
- Topic: ahk v1.1+ ChangeDisplaySetting function for all OS and res
- Replies: 10
- Views: 5551
- 17 Oct 2013, 10:58
- Forum: Ask for Help (v1)
- Topic: ahk v1.1+ ChangeDisplaySetting function for all OS and res
- Replies: 10
- Views: 5551
Re: ahk v1.1+ ChangeDisplaySetting function for all OS and r
ChangeDisplaySettings(cD, sW, sH, rR) { Static DM := {BITSPERPEL: 0x040000, PELSWIDTH: 0x080000, PELSHEIGHT: 0x100000, DISPLAYFREQUENCY: 0x400000} ;Calculate offset of DEVMODE fields: Static size := A_IsUnicode ? 220 : 156 Static dmSize := A_IsUnicode ? 68 : 36 ; <<< has to be dmSize, not smSize St...
- 17 Oct 2013, 03:47
- Forum: Ich brauche Hilfe
- Topic: dynamische Parameter im Funktionsaufruf
- Replies: 6
- Views: 3170
Re: dynamische Parameter im Funktionsaufruf
Hallo,
die OnMessage-Funktionen haben bis zu 4 Parameter: MyMessageMonitor(wParam, lParam, msg, hwnd).
Die Nachrichtennummer (allerdings dezimal) findest Du im dritten Parameter, bei einer "variadischen" Funktion also in parameter.3.
die OnMessage-Funktionen haben bis zu 4 Parameter: MyMessageMonitor(wParam, lParam, msg, hwnd).
Die Nachrichtennummer (allerdings dezimal) findest Du im dritten Parameter, bei einer "variadischen" Funktion also in parameter.3.
- 17 Oct 2013, 00:26
- Forum: Ich brauche Hilfe
- Topic: Frage zum DateTime Control
- Replies: 14
- Views: 6618
Re: Frage zum DateTime Control
Na ja, das "Tutorial" steht ja schon im MSDN. Einfach eine mit den gewünschten Eigenschaften vorbelegte neue Controlklasse registrieren, einen eigenen Messagehandler schreiben und schon kannst Du mit CreateWindow/Ex() Dein eigenes Control erzeugen. ;) Spaß beiseite! Ich finde es ja immer wieder inte...
- 17 Oct 2013, 00:09
- Forum: Ich brauche Hilfe
- Topic: dynamische Parameter im Funktionsaufruf
- Replies: 6
- Views: 3170
Re: dynamische Parameter im Funktionsaufruf
Na ja, es kommt darauf an, was Du später damit machen willst!Holle wrote:...und zudem habe ich noch gelernt, daß ein Komma am Anfang des Strings gar nicht entfernt werden muss.
- 16 Oct 2013, 14:54
- Forum: Ich brauche Hilfe
- Topic: Frage zum DateTime Control
- Replies: 14
- Views: 6618
Re: Frage zum DateTime Control
Hi fump, ich bin jedesmal aufs Neue verwundert, wenn jemand ein "Common Control" verwenden will, dann aber sagt, ich möchte aber, dass es anders als "Common" reagiert. Genau das ist immer mit einigem Aufwand verbunden, und in diesem Fall würde ich denken, dass Alibabas Lösung genau so gut oder schle...
- 16 Oct 2013, 09:52
- Forum: Ich brauche Hilfe
- Topic: Frage zum DateTime Control
- Replies: 14
- Views: 6618
Re: Frage zum DateTime Control
Alternativlösung, nur unter XP getestet: #NoEnv WM_KEYDOWN := 0x0100 WM_KEYUP := 0x0101 Global HDT Global DT_ProcessChange := True Gui, Add, DateTime, gDateTimeChanged hwndHDT, dd.MM.yyyy HH:mm Gui, Show, , DateTime OnMessage(WM_KEYDOWN, "On_KeyDown") OnMessage(WM_KEYUP, "On_KeyUp") Return ; =======...
- 16 Oct 2013, 08:59
- Forum: Ich brauche Hilfe
- Topic: Progress Fenster an GUI binden
- Replies: 4
- Views: 2805
Re: Progress Fenster an GUI binden
Warum baust Du Dir dann kein Gui als "Progress Fenster"?
- 16 Oct 2013, 08:49
- Forum: Ich brauche Hilfe
- Topic: dynamische Parameter im Funktionsaufruf
- Replies: 6
- Views: 3170
Re: dynamische Parameter im Funktionsaufruf
Stadt(Metropole,Grossstadt,Kleinstadt,Ort) hat vier Pflichtparameter. %func%(params) übergibt aber nur einen Parameter, den String params . Das führt dazu, dass das Funktionsobjekt ohne Fehlermeldung einfach nicht aufgerufen wird. func := Func("Stadt") test("München","Nürnberg","Ansbach","Lichtenau...
- 16 Oct 2013, 06:59
- Forum: Scripts and Functions (v1)
- Topic: Class TransparentListBox
- Replies: 36
- Views: 26387
Re: Class TransparentListBox
It should be feasible, but not with this class. You have to set the the LBS_OWNERDRAWVARIABLE style and to processs the WM_MEASUREITEM and WM_DRAWITEM messages.
- 16 Oct 2013, 00:35
- Forum: Bug Reports
- Topic: Gui, z-order and static control
- Replies: 11
- Views: 9142
Re: Gui, z-order and static control
WS_CLIPSIBLING S : Clips child windows relative to each other; that is, when a particular child window receives a WM_PAINT message, the WS_CLIPSIBLINGS style clips all other overlapping child windows out of the region of the child window to be updated. If WS_CLIPSIBLINGS is not specified and child ...