Search found 260 matches

by hoppfrosch
26 Apr 2017, 07:44
Forum: AutoHotkey v2 Development
Topic: Proposed New GUI API for AutoHotkey v2
Replies: 224
Views: 24159

Re: Proposed New GUI API for AutoHotkey v2

:thumbup: Thanks @Ragnar - much more Details in the V2 docs on github ...
by hoppfrosch
26 Apr 2017, 02:23
Forum: AutoHotkey v2 Development
Topic: Proposed New GUI API for AutoHotkey v2
Replies: 224
Views: 24159

Re: Proposed New GUI API for AutoHotkey v2

Thanks, @just me - I have read the OP, but it seems I missed the wood for the trees ...
by hoppfrosch
26 Apr 2017, 01:18
Forum: AutoHotkey v2 Development
Topic: Proposed New GUI API for AutoHotkey v2
Replies: 224
Views: 24159

Re: Proposed New GUI API for AutoHotkey v2

Playing around with the new interface, I don't know how to translate Gui, Add, StatusBar, vTest -Theme BackgroundGreen Gui, +Resize +MinSize320x200 Gui, Font, s8, Arial into the new interface ... C := MyGui.AddStatusBar("vTest -Theme BackgroundGreen") ; this works ... ; ??????????????? Wha...
by hoppfrosch
24 Apr 2017, 23:35
Forum: Ich brauche Hilfe
Topic: Liniendiagramm
Replies: 5
Views: 130

Re: Liniendiagramm

Meine Allzweckwaffe für schnelle Diagramme: Ploticus:
  • Mit der Scriptsprache der Wahl ein Ploticus-Skript erstellen
  • Mit Ploticus den eigentlichen Graphen im gewünschten Format erzeugen
  • Graph in GUI einbinden
by hoppfrosch
21 Apr 2017, 00:03
Forum: Scripts and Functions
Topic: [Script] WinHole
Replies: 14
Views: 666

Re: [Script] WinHole

Just remembering the good ole times: Shimanov once build a donut shaped window .... tasty!
by hoppfrosch
13 Apr 2017, 00:18
Forum: AutoHotkey v2 Development
Topic: Parameter order
Replies: 23
Views: 371

Re: Parameter order

I would also prefer ordering the command arguments according to natural language:

Code: [Select all]GeSHi © Codebox Plus

"Give   | a banana          | to the monkey (except to hoppfrosch - as he's an frog!)"
WinSet, | x,y,width,height, | WinTitle, WinText, ExcludeTitle, ExcludeText


:-)
by hoppfrosch
05 Apr 2017, 08:30
Forum: Ask For Help
Topic: Problem with WinSet, Style with previously determined style Topic is solved
Replies: 19
Views: 193

Re: Problem with WinSet, Style with previously determined style Topic is solved

Thanks - I will add this to my function!

Now I have at least a working solution to be integrated into my library (restoring window properties on reopening a window) - unless I would have preferred an easy "Use simply the output of WinGet, Style ... as input for WinSet, Style ..." ;-)
by hoppfrosch
05 Apr 2017, 05:22
Forum: Ask For Help
Topic: Problem with WinSet, Style with previously determined style Topic is solved
Replies: 19
Views: 193

Re: Problem with WinSet, Style with previously determined style Topic is solved

@helgef - Thanks! I'll give it a try. I came up with the following solution (needs to be polished): ; Create a test window, modify the style - this is the original style to be reconstructed Run notepad.exe,,, oPID WinWait ahk_pid %oPID% hWnd := WinExist("ahk_pid" oPID) WinSet, Style, -0x20...
by hoppfrosch
05 Apr 2017, 03:58
Forum: Ask For Help
Topic: Problem with WinSet, Style with previously determined style Topic is solved
Replies: 19
Views: 193

Re: Problem with WinSet, Style with previously determined style Topic is solved

Maybe use the + option for the style to apply it, eg, WinSet,Style, +SOME_STYLE, ... . Without the + you would set the style to be just SOME_STYLE . Yes this helps in the example above. Thanks. But my problem isn't solved yet completly: What if I removed a style in the original Window? Modification...
by hoppfrosch
05 Apr 2017, 03:23
Forum: Ask For Help
Topic: Problem with WinSet, Style with previously determined style Topic is solved
Replies: 19
Views: 193

Re: Problem with WinSet, Style with previously determined style Topic is solved

Helgef wrote:Finally, @hoppfrosch, make sure you use the latest version of ahk, to avoid further inconvenience, since there was recently a bug fix for winset.


I usually update AutoHotkey as soon as possible - currently I'm using AutoHotkey : v1.1.25.01 Unicode 32-bit
by hoppfrosch
05 Apr 2017, 03:20
Forum: Ask For Help
Topic: Problem with WinSet, Style with previously determined style Topic is solved
Replies: 19
Views: 193

Re: Problem with WinSet, Style with previously determined style Topic is solved

Hmmm - my solution above isn't what I hoped for ...even more problems occured, Running the solution the output looks like this: komodo_2017-04-05_09-47-30.png As you can see, my notepad-window does not have an border, no captionbar, no minimizebox, etc. anymore after applying the "new" sty...
by hoppfrosch
05 Apr 2017, 02:36
Forum: Ask For Help
Topic: Problem with WinSet, Style with previously determined style Topic is solved
Replies: 19
Views: 193

Re: Problem with WinSet, Style with previously determined style Topic is solved

Thx for your support - I came up with the following: Run notepad.exe,,, oPID WinWait ahk_pid %oPID% hWnd := WinExist("ahk_pid" oPID) WinGet, origStyle, Style, ahk_id %hwnd% WinKill, ahk_id %hwnd% MsgBox % "Original Style was <" origStyle ">" styles:=[] while origStyle i...
by hoppfrosch
05 Apr 2017, 02:16
Forum: Ask For Help
Topic: Problem with WinSet, Style with previously determined style Topic is solved
Replies: 19
Views: 193

Re: Problem with WinSet, Style with previously determined style Topic is solved

ErrorLevel is set to 1 upon failure and 0 upon success. Failure occurs if the target window is not found or the style is not allowed to be applied . Some styles cannot be 'changed' after the window has been created. I 've already seen this - but how can I separate the styles which can/cannot be app...
by hoppfrosch
04 Apr 2017, 23:42
Forum: Ask For Help
Topic: Problem with WinSet, Style with previously determined style Topic is solved
Replies: 19
Views: 193

Re: Problem with WinSet, Style with previously determined style Topic is solved

Which style are you trying to get? ;) What you get is a combination of all styles. I'm aware of this. I thought my central question was clear - but it wasn't: What's the correct way to set all styles ( WS_XXXX ) of one window exactly to the same styles of another window? This question arose, when I...
by hoppfrosch
04 Apr 2017, 07:45
Forum: Ask For Help
Topic: Problem with WinSet, Style with previously determined style Topic is solved
Replies: 19
Views: 193

Re: Problem with WinSet, Style with previously determined style Topic is solved

Not sure but perhaps 0x14CF0000 is not a valid value for style and it should be "translated" If this is the case, I would consider this as a "bug": the command WinGet should return a value by default, which is a valid input value for WinSet ... What's the correct way to set the ...
by hoppfrosch
04 Apr 2017, 06:26
Forum: Ask For Help
Topic: Problem with WinSet, Style with previously determined style Topic is solved
Replies: 19
Views: 193

Problem with WinSet, Style with previously determined style Topic is solved

I'm trying to get a windows style and later on to apply this style to another window. Here's my simplified example: Run notepad.exe,,, oPID WinWait ahk_pid %oPID% hWnd := WinExist("ahk_pid" oPID) WinGet, origStyle, Style, ahk_id %hwnd% WinKill, ahk_id %hwnd% MsgBox % "Original Style w...
by hoppfrosch
22 Mar 2017, 09:06
Forum: Editors
Topic: Enable Function List in Notepad++ for AHK Scripts (with classes now)
Replies: 52
Views: 10782

Re: Enable Function List in Notepad++ for AHK Scripts (with classes now)

It's not a big thing for me - just wanted to let you know.

I automatically extract documentation from my sourse using NaturalDocs (ND) - I have to check, whether ND can handle preceeding semicoloms. If not, I'll live with the wrongly detected hotstring within the functionlist ...
by hoppfrosch
22 Mar 2017, 04:47
Forum: Editors
Topic: Enable Function List in Notepad++ for AHK Scripts (with classes now)
Replies: 52
Views: 10782

String Authors: within block-comment is detected as hotstring

As promised - here I'm again: Within a blockcomment /* ... */ the String "Authors:" is detected as hotstring and appears in functionlist: class Test { ; *****************************************************************************************************************************************...
by hoppfrosch
22 Mar 2017, 01:20
Forum: Editors
Topic: Enable Function List in Notepad++ for AHK Scripts (with classes now)
Replies: 52
Views: 10782

Re: Enable Function List in Notepad++ for AHK Scripts (with classes now)

Thanks for the fast fix! :dance: Wow pretty embarrassing how long this went without getting caught, it wasn't the constructor that was the problem, I hadn't allowed for negative default values... seeing as how that went unnoticed I'm sure there are others, keep pointing them out to me and I'll add t...
by hoppfrosch
21 Mar 2017, 04:23
Forum: Editors
Topic: Enable Function List in Notepad++ for AHK Scripts (with classes now)
Replies: 52
Views: 10782

Problem: Constructor is not detected

Within a class the constructor (__New()) is not detected:

Code: [Select all]GeSHi © Codebox Plus

class Test{
a() {
}
__New(_hWnd=-1, _debug=0, _test=0) {
return this
}
}


Omitting the method a() within the class, even the class itself is not detected ....

Go to advanced search