Search found 847 matches

by Scr1pter
Yesterday, 16:55
Forum: Scripts and Functions
Topic: [Class] WinHook
Replies: 30
Views: 2122

Re: [Class] WinHook

@FG: Thanks for your engagement! WinHook.Shell.Add("Activated", , , "excel.exe") ; Excel Window Activated (Fullscreen) this does not do what you think. Leaving out the event does not default to all events. It defaults to 1 which is Created. I thought it defaulted to 4, because I changed it to 4? cla...
by Scr1pter
17 Feb 2019, 17:40
Forum: Ask For Help
Topic: Using OnMessage() to perform an action at application start? Topic is solved
Replies: 14
Views: 457

Re: Using OnMessage() to perform an action at application start? Topic is solved

Okay guys, everything is solved! A_AhkUser helped me out with my last problem. It was because Windows sends either 4 (windowed) or 32772 (fullscreen). So I need either an if-statement or I call the functions twice, like: WinHook.Shell.Add("Activated", , , "excel.exe", 4) ; Excel Window Activated (Wi...
by Scr1pter
17 Feb 2019, 17:35
Forum: Scripts and Functions
Topic: [Class] WinHook
Replies: 30
Views: 2122

Re: [Class] WinHook

Thanks, that definitely solved my problem! It didn't work with the if statement, though. The "amateurish" version works perfectly #include WinHook.ahk ; Include FanaticGuru's WinHook Class WinHook.Shell.Add("Activated", , , "excel.exe", 4) ; Excel Window Activated (Windowed) WinHook.Shell.Add("Activ...
by Scr1pter
17 Feb 2019, 15:13
Forum: Scripts and Functions
Topic: [Class] WinHook
Replies: 30
Views: 2122

Re: [Class] WinHook

Hello, Thanks for that class! I recognized the following problem: When I run an application in fullscreen mode (e.g. Firefox, VLC Media Player, a game), the WinHook functionality doesn't work anymore. I have three monitors and when I have a fullscreen application running on monitor 3 and switch appl...
by Scr1pter
14 Feb 2019, 17:31
Forum: Ask For Help
Topic: Using OnMessage() to perform an action at application start? Topic is solved
Replies: 14
Views: 457

Re: Using OnMessage() to perform an action at application start? Topic is solved

Thanks for your support! Ok it works pretty well, but unfortunately there is one issue. As soon I run any fullscreen application, the script doesn't work anymore. (It doesn't matter on which monitor) For example: YouTube videos, Online Television, VLC Media Player, any game. If I don't activate full...
by Scr1pter
14 Feb 2019, 14:00
Forum: Ask For Help
Topic: Nested #IfWinActive Topic is solved
Replies: 3
Views: 53

Re: Nested #IfWinActive Topic is solved

I think because you cannot have 2 active windows at once.

Cheers!
by Scr1pter
13 Feb 2019, 09:45
Forum: Ask For Help
Topic: Using OnMessage() to perform an action at application start? Topic is solved
Replies: 14
Views: 457

Re: Using OnMessage() to perform an action at application start? Topic is solved

Zhanks for your suggestion. I tried it but it never showed me excel or notepad as picture name, only standard. #include WinHook.ahk ; Include FanaticGuru's WinHook Class WinHook.Shell.Add("Activated", , , "excel.exe", 4) ; Excel Window Activated WinHook.Shell.Add("Activated", , , "notepad++.exe", 4)...
by Scr1pter
12 Feb 2019, 19:21
Forum: Ask For Help
Topic: Using OnMessage() to perform an action at application start? Topic is solved
Replies: 14
Views: 457

Re: Using OnMessage() to perform an action at application start? Topic is solved

Hey guys, It's been a while. I finally had time to try it out on my PC. When I create shell-Functions for Excel and Notepad++, it works perfectly when switching to these applications. I'm just looking for a way to have a "default" profile, if neither Excel nor Notepad++ are active. I tried different...
by Scr1pter
11 Feb 2019, 14:00
Forum: Ask For Help
Topic: ControlClick at image
Replies: 10
Views: 146

Re: ControlClick at image

Try this
ControlSend, ahk_parent, d, ahk_class MSPaintApp

Cheers!
by Scr1pter
11 Feb 2019, 12:16
Forum: Ask For Help
Topic: ControlClick at image
Replies: 10
Views: 146

Re: ControlClick at image

What exactly does not work?
Also, post the updated script.

Additionally, you can add MsgBox inside of your
ErrorLevel 0 statement to see if the image was really found.

Cheers!
by Scr1pter
11 Feb 2019, 09:49
Forum: Ask For Help
Topic: ControlClick at image
Replies: 10
Views: 146

Re: ControlClick at image

Normally, it should not affect your real mouse cursor.
(Neither in moving nor in clicking)
That's the big advantage of ControlClick.

Cheers!
by Scr1pter
11 Feb 2019, 09:00
Forum: Ask For Help
Topic: ControlClick at image
Replies: 10
Views: 146

Re: ControlClick at image

Doesn't look bad. Two things: 1. ControlSend, n 2. it's probably safer to write ahk_exe before paint.exe Edit ControlSend, n, ahk_exe paint.exe Sleep, 100 ControlClick, %foundXX%, %foundYY%, ahk_exe paint.exe If ControlClick does not work, try it with: ControlClick, x%foundXX%, y%foundYY%, ahk_exe p...
by Scr1pter
11 Feb 2019, 08:05
Forum: Ask For Help
Topic: ControlClick at image
Replies: 10
Views: 146

Re: ControlClick at image

Hi, From what I understood you're speaking about two images. The second image depends on the first one. Meaning: If the first image wasn't found, the script should not proceed. If you really want to ControlClick on the second image, I think you will have to retrieve the AHK class of the target progr...
by Scr1pter
10 Feb 2019, 18:04
Forum: Ask For Help
Topic: Send key combination (modifier and a key) to an inactive window (ControlSend)
Replies: 4
Views: 122

Re: Send key combination (modifier and a key) to an inactive window (ControlSend)

Hi, You can try it with a Send {LAlt up} before you fire the ControlSend. I think the problem is that you're holding the Alt key pressed while trying to use it in ControlSend. However, I'm sure I did something similar in Notepad++ (macro recorder), and I never had problems. You can try to activate y...
by Scr1pter
08 Feb 2019, 12:09
Forum: Ask For Help
Topic: Hotkeys not working
Replies: 7
Views: 128

Re: Reload not working

Hi,

Difficult to answer due to little information about your script.
Some questions/ideas:

1)
So this means nothing happens when you press Ctrl+R, right?

2)
If you replace reload by ExitApp, is it still the same?

3)
Do you work with #if blocks?

4)
Is any loop running?

Cheers!
by Scr1pter
08 Feb 2019, 10:22
Forum: Ask For Help
Topic: When increasing the Zero at the start disappear? Topic is solved
Replies: 7
Views: 197

Re: When increasing the Zero at the start disappear? Topic is solved

Hi, If it goes up to 100+, do you still want to use just 1 leading zero? If not, then you can write number = 00%OutputVar% and define in SubStr() that it should only get the 3 last characters. 001, 009, 055, 099, 127 etc Otherwise you will have to work with if statements. if number between 1 and 9 {...
by Scr1pter
08 Feb 2019, 09:25
Forum: Ask For Help
Topic: When increasing the Zero at the start disappear? Topic is solved
Replies: 7
Views: 197

Re: When increasing the Zero at the start disappear? Topic is solved

Hi, You can add a leading 0 to your number. number = 0%OutputVar% After that, you can use the function SubStr() , to get only the last 2 positions. Otherwise the 10 would be 010. For 1 till 9 it would be 01 till 09 because of the leading zero. Check the examples: https://autohotkey.com/docs/commands...
by Scr1pter
07 Feb 2019, 08:53
Forum: Ask For Help
Topic: AHK: Array _Loop
Replies: 2
Views: 57

Re: AHK: Array _Loop

Hi, I believe you could work it out without the Arrays, but I'm on the phone now, so I'll help you with arrays. First, I would rename both arrays. Arr1 := ["1", "5", "10","1", "5", "10","1", "5", "10", "1", "5", "10"..........................] Arr2 := ["0", "0", "0", "1", "1", "1","2", "2", "2","3",...
by Scr1pter
07 Feb 2019, 08:43
Forum: Ask For Help
Topic: Bring App to Front from URL and Run Keys
Replies: 5
Views: 157

Re: Bring App to Front from URL and Run Keys

Hi, Are you using both scripts (the older and the newer one), or only the newer one? It gets activated by lbutton, why not changing it to PgDn? In worst case you could activate some other window and then your target application. Or you try it with 2 times WinActivate in a row. (Even though I don't l...
by Scr1pter
06 Feb 2019, 12:24
Forum: Forum Issues
Topic: Yellow user names
Replies: 10
Views: 329

Yellow user names

Hi, It looks like a pretty new feature. Freshly registered users now have a bold yellow color. To be honest it's pretty confusing (to me) because normally only admins, mods, supporters have special fonts. In my opinion, it was better without the yellow colors. (No offense ;) ) What do the others her...

Go to advanced search