Why should someone call the same settings Gui multiple times?
Edit: Maybe I understand: ; wait for the 'last found window' (i.e. the Gui) to be destroyed. Do you destroy the Gui anywhere in your script?
Search found 9493 matches
- 24 Oct 2013, 03:11
- Forum: Ask for Help (v1)
- Topic: Problem with WinwaitClose
- Replies: 2
- Views: 2227
- 24 Oct 2013, 02:28
- Forum: Skripte und Funktionen
- Topic: Class_OD_Colors (für Holle)
- Replies: 16
- Views: 13270
Re: Class_OD_Colors (für Holle)
Update am 24.10.2013: Ich hatte gleich das Gefühl, dass es so einfach nicht sein kann. Wenn man größere Fonthöhen nutzt, merkt man schnell, dass man die WM_MEASUREITEM Nachricht doch nicht ignorieren kann. Ich habe deshalb Behandlung der WM_MEASUREITEM Nachricht nachgerüstet. Sie wird beim Start de...
- 24 Oct 2013, 01:04
- Forum: Tutorials
- Topic: Ein Script schreiben, Dokumentation, Teamarbeit Tutorial.
- Replies: 24
- Views: 32761
Re: Ein Script schreiben, Dokumentation, Teamarbeit Tutorial
Tut mir leid. Ich halte Gameengines in AHK bisher eher für Machbarkeitsstudien als für erfolgversprechende Projekte. Außerdem ist das nicht mein Metier. Ich werde mir das aber anschauen und mich melden, falls ich etwas beitragen kann.
- 24 Oct 2013, 00:55
- Forum: Wish List
- Topic: Faster built-in variable
- Replies: 13
- Views: 6965
Re: Faster built-in variable
Looking at the execution time per iteration, I'd say it's fast enough for an interpreted scripting language: #NoEnv SetBatchLines -1 SetFormat, Float, 0.8 iterations := 1000000 msgbox start t0 := a_tickcount loop %iterations% var := a_index t1 := (a_tickcount - t0) / iterations t0 := a_tickcount loo...
- 23 Oct 2013, 06:30
- Forum: Forum Issues
- Topic: Forum Storage Location(s)
- Replies: 34
- Views: 12757
Re: Forum Storage Location(s)
What about attachments?
- 23 Oct 2013, 06:23
- Forum: Ask for Help (v1)
- Topic: [SOLVED] Better way to calc uptime
- Replies: 2
- Views: 2076
Re: Better way to calc uptime
Maybe not better, but different: FormatDuration(NumberOfSeconds, Format := "d'd':hh:mm:ss") { ; http://msdn.microsoft.com/en-us/library/windows/desktop/dd318091(v=vs.85).aspx VarSetCapacity(Out, 128, 0) DllCall("Kernel32.dll\GetDurationFormat", "UInt", 0x400 , "UInt", 0 , "Ptr", 0 , "Int64", NumberO...
- 23 Oct 2013, 02:59
- Forum: Forum Issues
- Topic: Donate Link
- Replies: 10
- Views: 5645
Re: Donate Link
+1 for a permanent donation link, else it is not a foundation... money can be used to buy tools or other comfort or prepare an independant V2 solution... currently we don't call anything, then only small donation will be progressivly done... -1 for vanity, donnation have to stay anonymous, you can ...
- 23 Oct 2013, 02:48
- Forum: Announcements
- Topic: Permanent Domain
- Replies: 183
- Views: 157771
Re: Permanent Domain
And even though AHK has become a "powerful all-purpose scripting language" it still has that original goal of enabling non-programmers to automate their processes. I think it's still one of the goals, but not 'the goal'. Chris' original goal stands for AHK 1.0 (1.0.48.05). And that's the reason he ...
- 20 Oct 2013, 08:54
- Forum: Ask for Help (v1)
- Topic: Gui in function swap image proble
- Replies: 3
- Views: 2196
Re: Gui in function swap image proble
I'd suggest to use the "Gui in a function" thing only for Guis that are kinda modal; i.e. the script may stay within the function because no other processing is needed until this step is completed. This allows included subroutines to access local variabels. So you don't need global Gui v Variables i...
- 20 Oct 2013, 01:43
- 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
What about trying? #NoEnv Gui, Margin, 20, 20 Gui, Add, Button, w300 gClicked vBtn1, I'm Btn1, click me! Gui, Add, StatusBar Gui, Show, , LButtonDown OnMessage(WM_LBUTTONDOWN := 0x0201, "OnLButtonDown") Return GuiClose: ExitApp Clicked: SB_SetTExt(" LButtonUp on " . A_GuiControl) Return OnLButtonDow...
- 19 Oct 2013, 11:23
- Forum: Skripte und Funktionen
- Topic: Class_OD_Colors (für Holle)
- Replies: 16
- Views: 13270
Re: Class_OD_Colors (für Holle)
Danke für den Test!
- 19 Oct 2013, 09:01
- Forum: Skripte und Funktionen
- Topic: Class_OD_Colors (für Holle)
- Replies: 16
- Views: 13270
Class_OD_Colors (für Holle)
:arrow: Update am 24.10.2013 Schon seit längerer Zeit beschäftigt sich Holle (aka Dr_Holle) mit dem Problem, einzelne Einträge in DDLs einzufärben. (Das ist allerdings nur eine Winzigkeit in einem Riesenprojekt, das mich ungläubig staunen lässt.) Ich habe mich nach Abstimmung mit ihm immer mal wiede...
- 19 Oct 2013, 02:36
- Forum: Ich brauche Hilfe
- Topic: Besserer Aufbau einer Funktion mit DllCalls
- Replies: 28
- Views: 11217
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: 6253
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: 11217
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: 157771
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: 11217
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: 5544
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...