Search found 1277 matches

by Scr1pter
04 Dec 2017, 19:15
Forum: Ask for Help (v1)
Topic: Issue with #if WinActive Topic is solved
Replies: 12
Views: 2002

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 (v1)
Topic: Unable to work with special keys Topic is solved
Replies: 7
Views: 1760

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 (v1)
Topic: Unable to work with special keys Topic is solved
Replies: 7
Views: 1760

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 (v1)
Topic: Unable to work with special keys Topic is solved
Replies: 7
Views: 1760

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 (v1)
Topic: Unable to work with special keys Topic is solved
Replies: 7
Views: 1760

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 (v1)
Topic: GetMousePos: Multiply and Round up? Topic is solved
Replies: 2
Views: 691

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 (v1)
Topic: GetMousePos: Multiply and Round up? Topic is solved
Replies: 2
Views: 691

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 (v1)
Topic: Using one key combination for several commands? Topic is solved
Replies: 3
Views: 876

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 (v1)
Topic: Using one key combination for several commands? Topic is solved
Replies: 3
Views: 876

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 (v1)
Topic: Controlling another computer (Remote)
Replies: 5
Views: 3365

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 (v1)
Topic: Controlling another computer (Remote)
Replies: 5
Views: 3365

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 (v1)
Topic: Fix double left click?
Replies: 0
Views: 575

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 (v1)
Topic: Controlling another computer (Remote)
Replies: 5
Views: 3365

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 (v1)
Topic: Controlling another computer (Remote)
Replies: 5
Views: 3365

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 (v1)
Topic: Playing a WAV file with a keystroke combination
Replies: 2
Views: 874

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 (v1)
Topic: Playing a WAV file with a keystroke combination
Replies: 2
Views: 874

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