Search found 334 matches

by MIRKOSOFT
26 Nov 2019, 20:08
Forum: Ask for Help (v1)
Topic: How to swap two windows? Not resize, only position
Replies: 6
Views: 686

Re: How to swap two windows? Not resize, only position

Problem is that I tested both, but works not.

Miro
by MIRKOSOFT
24 Nov 2019, 21:02
Forum: Ask for Help (v1)
Topic: How to swap two windows? Not resize, only position
Replies: 6
Views: 686

How to swap two windows? Not resize, only position

Hi!

I need to simply swap two windows of single program without any resizing, only swap and that's all.
Can anybody help me?

Thank you all for each word.
Miro
by MIRKOSOFT
29 Oct 2019, 08:10
Forum: Ask for Help (v1)
Topic: How to detect second or third window creation of running application?
Replies: 0
Views: 811

How to detect second or third window creation of running application?

Hi! I started topic how to detect window creation and make action at once https://www.autohotkey.com/boards/viewtopic.php?f=76&t=68768 It works - but until is application started, later if any window is created of the same application detection is not possible. I used this code (from mentioned threa...
by MIRKOSOFT
27 Oct 2019, 05:22
Forum: Ask for Help (v1)
Topic: How to perform action only once after window found?
Replies: 9
Views: 1366

Re: How to perform action only once after window found?

Ok, I modified script. It detects start and shows message, but yet at window creation - title match is not correct. But second window is created longer time after and it is same EXE and CLASS. How to detect creation of 2nd window when process is running? I used this code: Gui +LastFound hWnd := WinE...
by MIRKOSOFT
26 Oct 2019, 12:24
Forum: Ask for Help (v1)
Topic: How to perform action only once after window found?
Replies: 9
Views: 1366

Re: How to perform action only once after window found?

I modified it this way and works not (I know there's EXE Java and it is not only one process) - it has to detect 2 windows: Gui +LastFound hWnd := WinExist() DllCall( "RegisterShellHookWindow", UInt,hWnd ) MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" ) OnMessage( MsgNum, "ShellMessage...
by MIRKOSOFT
26 Oct 2019, 08:24
Forum: Ask for Help (v1)
Topic: How to perform action only once after window found?
Replies: 9
Views: 1366

Re: How to perform action only once after window found?

Q remains in this: Title is not static - application shows percentage of speed, so exact title is not possible to get. Even application statup title. How to mod it to check "title must contain" part and all other is not important? Also - is possible to get AHK_EXE by any way like WinGetTitle? Thank ...
by MIRKOSOFT
25 Oct 2019, 13:51
Forum: Ask for Help (v1)
Topic: How to perform action only once after window found?
Replies: 9
Views: 1366

Re: How to perform action only once after window found?

Yes, works perfectly. Last Q is simple, but don't know if possible to do: Is possible to identify window or get ahk_exe or wintitle instead class? I'm using application which has single class and uses 2 windows with different titles only. And other application uses class used in many programs. Thank...
by MIRKOSOFT
20 Oct 2019, 12:33
Forum: Ask for Help (v1)
Topic: How to perform action only once after window found?
Replies: 9
Views: 1366

Re: How to perform action only once after window found?

Ok, how to start this action when window is created?
I cannot use #IfWinActive - or can?

Miro
by MIRKOSOFT
15 Oct 2019, 07:10
Forum: Ask for Help (v1)
Topic: How to add action to RButton+MButton with leaving programmed MButton action? Topic is solved
Replies: 1
Views: 412

How to add action to RButton+MButton with leaving programmed MButton action? Topic is solved

Hi! I have programmed mouse by AHK and help of members of this forum. Actions I'm using (LB=left/RB=right/MB=middle/H=hold/dbl=double click): LB default MB close RB default Ldbl default Rdbl save as LRB select all LMB print screen RMB properties - works not HRB auto size now! (performing auto-sizing...
by MIRKOSOFT
10 Oct 2019, 19:49
Forum: Ask for Help (v1)
Topic: How to perform action only once after window found?
Replies: 9
Views: 1366

How to perform action only once after window found?

Hi! I'm lost in performing action single time when is window created. Example: 1. I push button and it starts Notepad 2. Window is visible, so now and only this time I want to perform window resize 3. moving/resizing or any window handling including activation does this action not again, only if is ...
by MIRKOSOFT
22 Sep 2019, 17:28
Forum: Ask for Help (v1)
Topic: How to identify Notepads?
Replies: 13
Views: 1577

Re: How to identify Notepads?

Yes - that works!

Thank you.
BTW: I saw not that quotes are different - I got it automatic and also copied only, so it is my mistake.

Thank you again.
Miro
by MIRKOSOFT
22 Sep 2019, 15:50
Forum: Ask for Help (v1)
Topic: How to identify Notepads?
Replies: 13
Views: 1577

Re: How to identify Notepads?

Window title on window shows filename, but Window Spy of AHK says that what I posted. I can to check it by Window Inspector if it helps. Problem in identification that in window title is not program name like it has Windows default Notepad.

Miro
by MIRKOSOFT
22 Sep 2019, 02:47
Forum: Ask for Help (v1)
Topic: How to identify Notepads?
Replies: 13
Views: 1577

Re: How to identify Notepads?

Here is: #If WinActive("ahk_exe Notepad3.exe") or WinActive(“Notepads - Beta ahk_class ApplicationFrameWindow ahk_exe ApplicationFrameHost.exe”) F9:: ; test Msgbox ("Notepads works") return SC058:: ; F12 = Search Send, {Ctrl Down}{f 1}{Ctrl Up} return SC057:: ; F11 = toggle default/2nd scheme +XButt...
by MIRKOSOFT
21 Sep 2019, 17:51
Forum: Ask for Help (v1)
Topic: How to identify Notepads?
Replies: 13
Views: 1577

Re: How to identify Notepads?

Bit confused - keystrokes working not.

Miro
by MIRKOSOFT
21 Sep 2019, 11:34
Forum: Ask for Help (v1)
Topic: How to identify Notepads?
Replies: 13
Views: 1577

Re: How to identify Notepads?

I started Window Spy again to check wintitle when is any file opened. Window Title, Class and Process contains: Notepads - Beta ahk_class ApplicationFrameWindow ahk_exe ApplicationFrameHost.exe No matter of opened file. So I tried this: #If WinActive("ahk_exe Notepad3.exe") or #if WinActive, Notepad...
by MIRKOSOFT
20 Sep 2019, 21:08
Forum: Ask for Help (v1)
Topic: How to identify Notepads?
Replies: 13
Views: 1577

Re: How to identify Notepads?

Now I found problem - there's filename only when I open any. And even it has tabs.
I'm so sorry.
Miro
by MIRKOSOFT
20 Sep 2019, 20:53
Forum: Ask for Help (v1)
Topic: How to identify Notepads?
Replies: 13
Views: 1577

How to identify Notepads?

Hi! I'm using new application in Windows 10 with name Notepads. Please don't exchange two applications - Notepad with Notepads. I'm writing about Notepads. I want to add Notepads specific keystrokes, but Window Spy helped not... Window Spy contains these items to identify: TITLE Notepads - Beta CLAS...
by MIRKOSOFT
15 Sep 2019, 17:50
Forum: Ask for Help (v1)
Topic: How to correct command in program argument in Run
Replies: 9
Views: 2433

Re: How to correct command in program argument in Run

Finally I got it work generally.
It needs not only type of drive selection by

Code: Select all

--drive8-type
but for disk selection it needs separate

Code: Select all

--drive8-file
So, new command is:

Code: Select all

Run, "D:\Emulation\Commodore\Kernal64\kernal64ahk.bat " --drive8-type %argument% --drive8-file "%this_path%"
Miro
by MIRKOSOFT
06 Sep 2019, 18:12
Forum: Ask for Help (v1)
Topic: How to correct command in program argument in Run
Replies: 9
Views: 2433

Re: How to correct command in program argument in Run

I got it work, but problem still remains - file is not opened, only empty disk used.

What I did: I modified called BAT file by embedding all parameters into.
Now I'm using only this:

Code: Select all

Run, "D:\Emulation\Commodore\Kernal64\kernal64ahk.bat " --drive8-type %argument% "%this_path%"
Miro
by MIRKOSOFT
04 Sep 2019, 18:51
Forum: Ask for Help (v1)
Topic: How to correct command in program argument in Run
Replies: 9
Views: 2433

Re: How to correct command in program argument in Run

Hm, again program hangs.

All parameters are req'd for using this combination - program has not yet any config option or file - it is after first release in development.

Miro

Go to advanced search