Search found 1200 matches

by Scr1pter
06 Dec 2017, 18:25
Forum: Ask For Help
Topic: Issue with #if WinActive Topic is solved
Replies: 12
Views: 1796

Re: Issue with #if WinActive Topic is solved

By the way, I tried your code and not even this one works - strange.
Even if IrfanView is on foreground.

I use IrfanView 4.50 64 Bit.
by Scr1pter
06 Dec 2017, 17:37
Forum: Ask For Help
Topic: Issue with #if WinActive Topic is solved
Replies: 12
Views: 1796

Re: Issue with #if WinActive Topic is solved

Thanks, but any idea how it would/could work if it's not in foreground?
I use two monitors and IrfanView is maximazed on monitor 2.

Thanks.
by Scr1pter
05 Dec 2017, 17:39
Forum: Ask For Help
Topic: Issue with #if WinActive Topic is solved
Replies: 12
Views: 1796

Re: Issue with #if WinActive Topic is solved

Thank you for your support, guys. It worked! May I ask another question? I tried to send this hotkey to IrfanView when the program is not in foreground. I made a test with Notepad and it worked: ^+!F11:: ControlSend, Edit1, {Home}, Unbenannt - Editor (In English it would be Untitled - Notepad) Even ...
by Scr1pter
04 Dec 2017, 19:15
Forum: Ask For Help
Topic: Issue with #if WinActive Topic is solved
Replies: 12
Views: 1796

Issue with #if WinActive Topic is solved

Hi, I used #if WinActive in a code and everything worked perfectly. This one works perfectly: #if WinActive("ahk_class Valve001") <::Alt return The < key gets converted to Alt, only if the specific application is running + in foreground. I created another code (almost the same logic), but it doesn't...
by Scr1pter
16 Sep 2017, 16:38
Forum: Ask For Help
Topic: Unable to work with special keys Topic is solved
Replies: 7
Views: 1273

Re: Unable to work with special keys Topic is solved

Thanks again for your help, guys. May I ask something else? I'm trying to make the script be active only in Notepad++. I read in the tutorials and used the function GetClass to find out Notepad++'s class. ^+F1:: WinGetClass, class, A MsgBox, Class of current window is "%class%". The compiled script ...
by Scr1pter
16 Sep 2017, 12:37
Forum: Ask For Help
Topic: Unable to work with special keys Topic is solved
Replies: 7
Views: 1273

Re: Unable to work with special keys Topic is solved

Nevermind, problem solved!

The reason was that Notepad++ was set to UTF, when saving the AHK codes.
After changing it to ANSI, it worked.

Is it generally better to have ANSI selected?
I also create lua scripts which get used by the Logitech Gaming Software.

Best regards - Viele Grüße ;)
by Scr1pter
16 Sep 2017, 12:24
Forum: Ask For Help
Topic: Unable to work with special keys Topic is solved
Replies: 7
Views: 1273

Re: Unable to work with special keys Topic is solved

Hello, Is this your whole code? Do you have anything addionally installed? Because when I try this, I receive the following error when running the exe (the compiled ahk script): http://fs5.directupload.net/images/170916/5n6q35xg.png I also tried choosing a different bin file type (standard, ansi, un...
by Scr1pter
16 Sep 2017, 08:02
Forum: Ask For Help
Topic: Unable to work with special keys Topic is solved
Replies: 7
Views: 1273

Unable to work with special keys Topic is solved

Hi guys, I'm writing a script which copies the text of a pressed key in the clipboard and pastes it in a Notepad (e.g. Notepad++). I was able to do this with this code (2 example keys): ^+F1:: Clipboard = Strg+Shift+F1 Send ^v Send {Down} return Esc:: Clipboard = Esc Send ^v Send {Down} return I was...
by Scr1pter
14 Sep 2017, 10:09
Forum: Ask For Help
Topic: GetMousePos: Multiply and Round up? Topic is solved
Replies: 2
Views: 565

Re: GetMousePos: Multiply and Round up? Topic is solved

Oh, I think I've already found the mistake.
Since I'm German, I use comma instead of dot.
After changing

Code: Select all

lx := (xx * 34,15)
to

Code: Select all

lx := (xx * 34.15)
it works.

Sorry.
by Scr1pter
14 Sep 2017, 10:03
Forum: Ask For Help
Topic: GetMousePos: Multiply and Round up? Topic is solved
Replies: 2
Views: 565

GetMousePos: Multiply and Round up? Topic is solved

Hello guys, I start to use AHK's GetMousePos function, but not for a window but for the screen. However, instead of working with pixels I would like to work with other values, because The Logitech Gaming Software doesn't work with pixels. It works with values from 0 to 65535 (both on X and Y axis.) ...
by Scr1pter
12 Sep 2017, 09:16
Forum: Ask For Help
Topic: Using one key combination for several commands? Topic is solved
Replies: 3
Views: 692

Re: Using one key combination for several commands? Topic is solved

Thanks for the fast answer - it works perfectly :thumbup: :thumbup:

Also thank you to you, DyaTactic. ;)

Cheers!
by Scr1pter
12 Sep 2017, 08:58
Forum: Ask For Help
Topic: Using one key combination for several commands? Topic is solved
Replies: 3
Views: 692

Using one key combination for several commands? Topic is solved

Hi, Depending on how many times a key combination was pressed, I would like to execute different commands. I tried it with a test example, but it didn't work: MyNumber := 0 ~^+F11:: MyNumber := MyNumber ++ Sleep 3000 if (MyNumber = 1) Run, Calc.exe if (MyNumber = 2) Run, mspaint.exe If Ctrl+Shift+F1...
by Scr1pter
12 Sep 2017, 08:27
Forum: Ask For Help
Topic: Controlling another computer (Remote)
Replies: 5
Views: 1552

Re: Controlling another computer (Remote)

Hi guys, Okay, I made some further progress. I replaced the existing server and Client scripts by these ones: https://autohotkey.com/board/topic/26354-ahk-remote-tcpip-based-remote-control/ (For the client ahk I needed to choose ANSI 32-Bit, otherwise I received a Winsock error when running the comp...
by Scr1pter
11 Sep 2017, 19:08
Forum: Ask For Help
Topic: Controlling another computer (Remote)
Replies: 5
Views: 1552

Re: Controlling another computer (Remote)

Hello guys, Is anybody here actually using the AHKRemote scripts? If yes, can you give me an example of what you changed in your codes in order to let it work? Maybe I made some mistakes. When I start the AHKServer.exe on my tablet, I can see an HDD shortcut in the taskbar. After I click on it, I se...
by Scr1pter
10 Sep 2017, 16:36
Forum: Ask For Help
Topic: Fix double left click?
Replies: 0
Views: 484

Fix double left click?

Hi, my Logitech G9 seems to have a buggy left mouse button. Sometimes I hold the left mouse button pressed, but it makes a double click. It seems possible to repair it, but somewhere I saw there is an exe-file which seems to fix this behavouir. Does something like this work with AutoHotKey too? (I d...
by Scr1pter
10 Sep 2017, 16:26
Forum: Ask For Help
Topic: Controlling another computer (Remote)
Replies: 5
Views: 1552

Re: Controlling another computer (Remote)

Hi, I made a first test and on my main PC (the Client) I receive the following error when launching the AHKClient.exe: http://fs5.directupload.net/images/170910/wb7oq9wr.jpg Does this error belong to the AHKClient or to AHKsock.ahk? The 26th line of the AHKsock.ahk is 8: The WSAAsyncSelect() call fa...
by Scr1pter
09 Sep 2017, 08:34
Forum: Ask For Help
Topic: Controlling another computer (Remote)
Replies: 5
Views: 1552

Controlling another computer (Remote)

Hi guys, My main PC (which should control the other PC) uses Windows 7 Pro 64 Bit. The other PC (a tablet) uses Windows 8.1 32 Bit. Both PCs are in the same local area network. I would like to execute AHK scripts on the tablet by using keystrokes on my main PC. The first tries were with PsExec and b...
by Scr1pter
06 Aug 2017, 08:47
Forum: Ask For Help
Topic: Playing a WAV file with a keystroke combination
Replies: 2
Views: 511

Re: Playing a WAV file with a keystroke combination

Ok, I will try it!
Thanks for the super fast answer ;)
by Scr1pter
06 Aug 2017, 08:34
Forum: Ask For Help
Topic: Playing a WAV file with a keystroke combination
Replies: 2
Views: 511

Playing a WAV file with a keystroke combination

Hello, I would like to play a specific sound file by pressing a keystroke combination like Ctrl+Shift+F11. Important for me is that the sound file does not get opened, but only played. (The same as a Windows system sound like Starting windows.) Is that possible with the AHK function "SoundPlay"? I h...

Go to advanced search