Search found 190 matches

by KilliK
09 Feb 2019, 04:19
Forum: Ask For Help
Topic: Better syntax for this if-statement? Topic is solved
Replies: 3
Views: 102

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: 102

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: 156

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: 156

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: 2
Views: 103

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: 2
Views: 103

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: 59

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: 110

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: 82

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: 89

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: 127

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: 127

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: 85

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: 103

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?
by KilliK
24 Dec 2018, 14:17
Forum: Ask For Help
Topic: Method to check if file changed?
Replies: 1
Views: 158

Method to check if file changed?

Hello. I have created some registry tweaks in Windows 10 for the Chrome browser. Unfortunately, whenever the browser updates those registry tweaks get lost and I need to re-add them. I was thinking of having AHK to automatically re-apply them after Chrome updates. My question is if there is some met...
by KilliK
13 Nov 2018, 10:21
Forum: Ask For Help
Topic: Remapped keys don't work
Replies: 4
Views: 227

Re: Remapped keys don't work

hm, looks like it is intended behavior:
https://autohotkey.com/board/topic/9485 ... -problems/
by KilliK
13 Nov 2018, 09:41
Forum: Ask For Help
Topic: Remapped keys don't work
Replies: 4
Views: 227

Re: Remapped keys don't work

Hello.
I tried your suggestions but they didnt work.
F3 is still sent normally instead of triggering the event, if winactive is set. Without it, F3 triggers the msgbox as it is supposed to do.
is this intended behavior, a bug, or the code is missing something?
by KilliK
08 Nov 2018, 05:55
Forum: Ask For Help
Topic: Remapped keys don't work
Replies: 4
Views: 227

Remapped keys don't work

Hello. I am trying to remap two keys with the Hotkey command while Chrome is active, so that one key will trigger the other which will trigger an event. But I encountered a peculiar problem. This works: Hotkey, F1, test1, on Hotkey, F3, test2, on Return test1: Send {F3} Return test2: msgbox Hello Re...
by KilliK
26 Oct 2018, 19:04
Forum: Ask For Help
Topic: Problem with parsing internal cmd parameter to Comspec
Replies: 5
Views: 210

Re: Problem with parsing internal cmd parameter to Comspec

Hello. After two days of googling and testing, I finally managed to make it work. Here is the final code which, so far at least, works with no problems: Runwait, % ComSpec " /c ""C:\Program Files (x86)\Youtube-dl\youtube-dl.exe"" --get-filename -f bestvideo[height^<=720][fps^<=30]+bestaudio/best -o ...
by KilliK
25 Oct 2018, 19:59
Forum: Ask For Help
Topic: Problem with parsing internal cmd parameter to Comspec
Replies: 5
Views: 210

Re: Problem with parsing internal cmd parameter to Comspec

thank you for the help, but now the Runwait doesnt run at all, only a window opens and closes immediately even without |clip.

Go to advanced search