Search found 236 matches

by KilliK
01 Mar 2019, 10:55
Forum: Ask For Help
Topic: How to check if a simple array is empty. Topic is solved
Replies: 10
Views: 2775

Re: How to check if a simple array is empty. Topic is solved

how do you do that, with the HasKey function?
by KilliK
01 Mar 2019, 08:02
Forum: Ask For Help
Topic: How to check if a simple array is empty. Topic is solved
Replies: 10
Views: 2775

Re: How to check if a simple array is empty. Topic is solved

Thank you for the help, all the suggestions work fine.
But there is one particular case that they dont work. When the array does have values but they are all empty.
For example if I have this Array:=["","",""], how do I check that all its values are empty?
by KilliK
28 Feb 2019, 14:08
Forum: Ask For Help
Topic: How to check if a simple array is empty. Topic is solved
Replies: 10
Views: 2775

How to check if a simple array is empty. Topic is solved

Sorry for my ignorant question, but do I check if a simple array (Array:=[]) is completely empty? So far I have found only how to do it for associative arrays.
by KilliK
26 Feb 2019, 03:10
Forum: Ask For Help
Topic: How to interrupt a subroutine?
Replies: 6
Views: 1548

Re: How to interrupt a subroutine?

thank you all for your help, you gave some good suggestions. For now, I decided to break the subroutine into several groups containing the same repetitive steps and have an if statement in each one with the same condition which is toggled by another hotkey. so far it works well. thanks again for the...
by KilliK
25 Feb 2019, 09:52
Forum: Ask For Help
Topic: How to interrupt a subroutine?
Replies: 6
Views: 1548

Re: Abruptly stop a long series of sequential events. How?

I tried your suggestion, but it doesnt work. the subroutine will continue to its end, even if I change the toggle.
by KilliK
25 Feb 2019, 08:21
Forum: Ask For Help
Topic: How to interrupt a subroutine?
Replies: 6
Views: 1548

How to interrupt a subroutine?

Hello. I have created a long process of multiple steps which is triggered by a hotkey. It has this form: Send F2 Sleep 700 do stuff A Sleep 700 Send F2 Sleep 700 Send F2 Sleep 700 do stuff B Sleep 700 Send F2 etc etc etc This pattern repeats 20 times. it is not a loop, it is a long subroutine which ...
by KilliK
09 Feb 2019, 04:19
Forum: Ask For Help
Topic: Better syntax for this if-statement? Topic is solved
Replies: 3
Views: 664

Re: Better syntax for this if-statement? Topic is solved

@Masonjar12 that worked very well, thank you very much.
by KilliK
08 Feb 2019, 23:45
Forum: Ask For Help
Topic: Better syntax for this if-statement? Topic is solved
Replies: 3
Views: 664

Better syntax for this if-statement? Topic is solved

Hello. I am using this if-statement which works fine: name:="filename with no ext" if (FileExist("C:\" name ".*.part")) { Msgbox File wasn't downloaded Do A } else if not (FileExist("C:\" name ".*")) { Msgbox File wasn't downloaded Do A } I wrote it like this, because the first statement is also par...
by KilliK
05 Feb 2019, 05:33
Forum: Ask For Help
Topic: WinActive and RegEx problem
Replies: 6
Views: 1093

Re: WinActive and RegEx problem

nope, it doesnt work.
I dont get it, I saw some other related topics from the old forum, and the syntax from what I can tell is correct. I dont understand why it is not working.
by KilliK
04 Feb 2019, 23:49
Forum: Ask For Help
Topic: WinActive and RegEx problem
Replies: 6
Views: 1093

WinActive and RegEx problem

Hello. I am using this code for the GIMP window. SetTitleMatchMode, 2 if WinActive("ahk_class gdkWindowToplevel ahk_exe gimp-2.8.exe") But whenever the GIMP app gets updated, the exe filename changes to 2.9, 2.10, etc So I need to rewrite the same code but with regular expression: SetTitleMatchMode,...
by KilliK
01 Feb 2019, 19:40
Forum: Ask For Help
Topic: Kaspersky window doesn't move
Replies: 4
Views: 1298

Re: Kaspersky window doesn't move

I am already running it.
by KilliK
01 Feb 2019, 03:58
Forum: Ask For Help
Topic: Kaspersky window doesn't move
Replies: 4
Views: 1298

Kaspersky window doesn't move

I am using the WinMove command to move the Kaspersky Internet Security 2019 window, but the window doesnt move at all:

Code: Select all

SetTitleMatchMode, 2
WinMove, Kaspersky Internet Security ahk_exe avpui.exe,, 500, 500
I gather KIS prevents any app to tamper its window.
Is there some way to force it to move?
by KilliK
28 Jan 2019, 03:18
Forum: Ask For Help
Topic: Method to refresh stuck systray icons?
Replies: 0
Views: 376

Method to refresh stuck systray icons?

Hello. There are some apps which load as minimized systray icons. The problem is that sometimes, some of them tend to remain visible in the system tray, despite the fact that I have already set them to stay hidden in the Windows 10 notification area settings. I dont know what causes this and if it i...
by KilliK
16 Jan 2019, 21:15
Forum: Ask For Help
Topic: Problem with switching between identical windows.
Replies: 1
Views: 450

Problem with switching between identical windows.

Hello. I am using this excellent WinTrigger script from the user MasterFocus, so that a code is executed whenever a specific window becomes active. https://autohotkey.com/board/topic/59059-wintrigger-watch-deactivationunexistance-of-windows/ ProgWinTitle1 = WinTitle WinTrigger1 = Active CheckPeriod ...
by KilliK
06 Jan 2019, 20:35
Forum: Ask For Help
Topic: Strange problem with Discord
Replies: 0
Views: 383

Strange problem with Discord

Hello. I have set the Control as the push-to-talk button for the voice chat in Discord. And I want to use the Alt+Shift in an ahk script, for whenever I change the keyboard language. But I came across this strange problem. This syntax triggers the push-to-talk in Discord. LAlt & LShift:: Return This...
by KilliK
03 Jan 2019, 19:02
Forum: Ask For Help
Topic: Problem with clipboard and copied file
Replies: 2
Views: 552

Problem with clipboard and copied file

Hello Let's say I copy a file using right click context menu in Windows file explorer. After that, the context menu shows properly the paste command to paste the copied file. But if I run this ahk code after I copy the file, then the paste command doesnt show up in the context menu, although the cli...
by KilliK
30 Dec 2018, 08:57
Forum: Ask For Help
Topic: Problem with WinMaximize and fullscreen games
Replies: 2
Views: 590

Re: Problem with WinMaximize and fullscreen games

yeah, I have tried that. It works the first time, but if I press alt-tab again without having minimized the windows first, they get resized again.
I think I ll just create a windows group and have them restored/maximized whenever I press alt+tab.
by KilliK
29 Dec 2018, 21:47
Forum: Ask For Help
Topic: Problem with WinMaximize and fullscreen games
Replies: 2
Views: 590

Problem with WinMaximize and fullscreen games

Hello. There is a common problem in Windows when running fullscreen games in lower resolution to that of the system's native resolution. The already opened windows get resized and re-positioned. I have several games which cause this problem whenever I exit them or use alt+tab to switch from the game...
by KilliK
29 Dec 2018, 12:19
Forum: Ask For Help
Topic: Compare a variable to a group of WinIDs?
Replies: 1
Views: 333

Compare a variable to a group of WinIDs?

Hello. Let's say I have this code: var1:="WinID1" var2:="WinID2" var3:="WinID3" GroupAdd, WINIDS, %var1% GroupAdd, WINIDS, %var2% GroupAdd, WINIDS, %var3% and a new variable varnew:="WinIDnew" which I want to compare to the other variables. Is there a way to do the comparison directly to the WINIDS ...
by KilliK
27 Dec 2018, 18:44
Forum: Ask For Help
Topic: Problem with adding numbers to variables
Replies: 2
Views: 472

Problem with adding numbers to variables

Hello.

How can I add numbers to the coordinates of the Click command?
For example, the Click here doesnt work if I try to add the number 15:

Code: Select all

ImageSearch, FoundX, FoundY, 1000, 70, 1500, 110, *5 button.jpg
Click, Left, %FoundX%+15, %FoundY%+15, 1
What am I doing wrong?

Go to advanced search