Search found 24 matches

by padanges
29 Aug 2020, 17:17
Forum: Ask for Help (v1)
Topic: +Parent auto-activates even when NoActivate Topic is solved
Replies: 5
Views: 763

Re: +Parent auto-activates even when NoActivate Topic is solved

Thank you for pointing out the SWP_NOZORDER flag. I was able to solve my problem by changing the z-order of the child window with the "WinSet Top" - so there's no need to use that "repeated +PARENT call" trick! So I can only assume that adding extra +PARENT option for a WS_CHILD window (a window wit...
by padanges
27 Aug 2020, 04:25
Forum: Ask for Help (v1)
Topic: +Parent auto-activates even when NoActivate Topic is solved
Replies: 5
Views: 763

Re: +Parent auto-activates even when NoActivate Topic is solved

Thank you, it solves the problem of "stolen focus". But there's one more related issue. It took me quite some time to figure out where's the problem. My goal is to create a red window border using "WinSet Region" and +PARENT option. The initial problem was that I was able to see the border but the w...
by padanges
22 Aug 2020, 18:20
Forum: Scripts and Functions (v1)
Topic: graphics: create bmp files from scratch
Replies: 5
Views: 5824

Re: graphics: create bmp files from scratch

This forum rocks :thumbup: even for a 3 year old post it's possible to get a reply :D
Thank you - this illustrates the question well.
by padanges
22 Aug 2020, 17:01
Forum: Ask for Help (v1)
Topic: +Parent auto-activates even when NoActivate Topic is solved
Replies: 5
Views: 763

+Parent auto-activates even when NoActivate Topic is solved

Hi there, Gui option +Parent for a child window automatically activates parent window even if the parent and the child windows were launched as NoActivate . Is there a way for a child window not to activate a parent window automatically? The problem is that as I have a parent window in a background ...
by padanges
12 Aug 2020, 10:18
Forum: Ask for Help (v1)
Topic: Strange situation: "++" VS "+1" Topic is solved
Replies: 9
Views: 2678

Re: Strange situation: "++" VS "+1" Topic is solved

It surely would be nice to round up everything by having someone to agree/disagree on my last comments. I'm just trying to figure out what's happening under the AHK hood.
Anyways, thanks for every reply.
by padanges
10 Aug 2020, 15:55
Forum: Scripts and Functions (v1)
Topic: graphics: create bmp files from scratch
Replies: 5
Views: 5824

Re: graphics: create bmp files from scratch

Hi there, it's an old topic, and it's very well explained and documented, but while rewriting it myself I found out that the least clear line is: VarSetCapacity(vData, 54+vSize+1, 0) To be specific, that "+1", which, as I understand is explained by the lines: ;the +1 below is there because we insert...
by padanges
10 Aug 2020, 15:51
Forum: Ask for Help (v1)
Topic: Strange situation: "++" VS "+1" Topic is solved
Replies: 9
Views: 2678

Re: Strange situation: "++" VS "+1" Topic is solved

First of all, thank you for your comments swagfag ! With these dynamic variable references " everyday we stray further from God's light " :D for sure. Your explanation is complex, but very well expressed. Please, correct me if I'm wrong,- I'll try to put it into a couple sentences - in other words: ...
by padanges
07 Aug 2020, 17:33
Forum: Ask for Help (v1)
Topic: Strange situation: "++" VS "+1" Topic is solved
Replies: 9
Views: 2678

Re: Strange situation: "++" VS "+1" Topic is solved

Thank you very much, swagfag , I'm reevaluating my variable scopes now, following your recommendations. But when I change " If (actWndId == hGuiImg%A_Index%) " to " If (actWndId == hGuiImg1 ) " then the script works as expected. After reading your guides I understand that no matter how I name the va...
by padanges
07 Aug 2020, 13:49
Forum: Ask for Help (v1)
Topic: Strange situation: "++" VS "+1" Topic is solved
Replies: 9
Views: 2678

Re: Strange situation: "++" VS "+1" Topic is solved

Thank you for your comments. I guess you are right - there should be parentheses for IF statement in my code, and "++" provides correct result only because of it's backward compatibility property. Only now I understand that I have failed to capture the problem properly... I have tried to minimize an...
by padanges
07 Aug 2020, 12:19
Forum: Ask for Help (v1)
Topic: Strange situation: "++" VS "+1" Topic is solved
Replies: 9
Views: 2678

Strange situation: "++" VS "+1" Topic is solved

Hi there, I would like to ask someone to share some guidelines for differentiating dynamic variable definitions and pseudo-arrays . After many hours of debugging my script I've removed most of the code just to find out a strange situation: depending on variable operation the script either fails or s...
by padanges
07 Aug 2020, 12:03
Forum: Ask for Help (v1)
Topic: Window drag issues using: WM_LBUTTONDOWN & KeyWait Topic is solved
Replies: 11
Views: 5906

Re: Window drag issues using: WM_LBUTTONDOWN & KeyWait Topic is solved

You're right! :D thank you boiler - the mystery has been solved
by padanges
07 Aug 2020, 05:00
Forum: Ask for Help (v1)
Topic: Window drag issues using: WM_LBUTTONDOWN & KeyWait Topic is solved
Replies: 11
Views: 5906

Re: Window drag issues using: WM_LBUTTONDOWN & KeyWait Topic is solved

I've finally managed to find out how to move a window, without using a " PostMessage, 0xA1, 2 " trick. The answer is simple... here's the final code: #SingleInstance Force Gui newWnd:New Gui newWnd: -ToolWindow -SysMenu -Caption -Theme -Resize +AlwaysOnTop Gui newWnd: Color, FFFFFF rectCoordStr := %...
by padanges
07 Aug 2020, 03:38
Forum: Ask for Help (v1)
Topic: A hotkey redefines and relaunches itself Topic is solved
Replies: 2
Views: 1030

Re: A hotkey redefines and relaunches itself Topic is solved

Danke dir, Rohwedder :) this solves the problem.
by padanges
05 Aug 2020, 01:49
Forum: Ask for Help (v1)
Topic: A hotkey redefines and relaunches itself Topic is solved
Replies: 2
Views: 1030

A hotkey redefines and relaunches itself Topic is solved

Hi there, I have a simple situation, where I have a hotkey which redefines a hotkey itself, and should relaunch the same hotkey immediately after the redefinition. Is this possible? Here's the code: #SingleInstance Force Thread Interrupt, 0 Gui, Add, Text,, Press F1 button for the message Gui, Show,...
by padanges
05 Aug 2020, 01:22
Forum: Ask for Help (v1)
Topic: Key-press for a hotkey of a key-release Topic is solved
Replies: 2
Views: 1078

Re: Key-press for a hotkey of a key-release Topic is solved

Thanks boiler for the questions - you got me thinking in a right direction: I have just realized that Hotkey function turns off not only Hotkey function created hotkeys but hotkey labels as well! It seems I have missed that in documentation. So it's obvious why we would see only one MsgBox after mul...
by padanges
04 Aug 2020, 05:20
Forum: Ask for Help (v1)
Topic: Key-press for a hotkey of a key-release Topic is solved
Replies: 2
Views: 1078

Key-press for a hotkey of a key-release Topic is solved

Hi there, I have a simple code, where I want to create a hotkey on a key-press. The problem is that it works (gives confimation with MsgBox) only once - and I can't figure out why it's so. Maybe someone could share his thoughts? #SingleInstance Force Gui, Add, Text,, Release F1 button for message Gu...
by padanges
04 Aug 2020, 05:13
Forum: Ask for Help (v1)
Topic: Window drag issues using: WM_LBUTTONDOWN & KeyWait Topic is solved
Replies: 11
Views: 5906

Re: Window drag issues using: WM_LBUTTONDOWN & KeyWait Topic is solved

The first answer by boiler is of most help in current situation. So I'm marking this topic as Solved and posting a simplified question as another topic.
by padanges
03 Aug 2020, 05:40
Forum: Ask for Help (v1)
Topic: An issue with Gui:Destroy on WM_RBUTTONDOWN Topic is solved
Replies: 2
Views: 658

Re: An issue with Gui:Destroy on WM_RBUTTONDOWN Topic is solved

Thank you boiler :) this works for WM_RBUTTONDBLCLK as well.
by padanges
03 Aug 2020, 03:49
Forum: Ask for Help (v1)
Topic: An issue with Gui:Destroy on WM_RBUTTONDOWN Topic is solved
Replies: 2
Views: 658

An issue with Gui:Destroy on WM_RBUTTONDOWN Topic is solved

Hi there, I have this very simple situation where I want to close a window with a mouse right-click. Gui, Add, Text,, Right-click me Gui, Show, w200 h150 OnMessage(0x204, "WM_RBUTTONDOWN") Return WM_RBUTTONDOWN() { Gui Destroy } The problem is that the right click gets sent to the window below after...
by padanges
02 Aug 2020, 14:48
Forum: Ask for Help (v1)
Topic: Window drag issues using: WM_LBUTTONDOWN & KeyWait Topic is solved
Replies: 11
Views: 5906

Re: Window drag issues using: WM_LBUTTONDOWN & KeyWait Topic is solved

Thanks boiler for the idea about the hotkey modifiers and input levels. Here's your code updated, where you can trigger the MsgBox by pressing the F1 key. LButton::MsgBox, Hello #InputLevel 1 F1::Send, {LButton} Esc::ExitApp Now regarding my original question - I'm still convinced that it's all abou...

Go to advanced search