Search found 1083 matches

by Scr1pter
Today, 08:09
Forum: Other Programming Languages
Topic: [JavaScript] Passing string to function
Replies: 0
Views: 23

[JavaScript] Passing string to function

Hello, I need to work with JavaScript to create scripts for some musical program. After some days of researches I've made some good progress. Right now I'm having problems to pass a string to a function as parameter, though. const kPackageID = "My first test script"; // package ID (must be unique) f...
by Scr1pter
Yesterday, 11:14
Forum: Ask For Help
Topic: Execute script when multiple keys are held 0.5 seconds
Replies: 3
Views: 105

Re: Execute script when multiple keys are held 0.5 seconds

Hello,

That's why I specifically wrote
"Replace n by F1"
and not
"Replace n by ^+F1" :)
Or F3, as in your new version:

Code: Select all

KeyWait, F3
You execute the script with Ctrl+Shift+F3,
but keywait only cares for the last key which gets pressed and released.

Cheers!
by Scr1pter
23 Mar 2020, 15:06
Forum: Ask For Help
Topic: Execute script when multiple keys are held 0.5 seconds
Replies: 3
Views: 105

Re: Execute script when multiple keys are held 0.5 seconds

Hi,

(I'm on the phone and cannot test it. )

My guess:
1. Replace n by F1
2. Put a return inside of the else block
3. Place your target code in the if statement.

What should happen if you press it shortly?
Nothing?
Then return should be fine.

Cheers!
by Scr1pter
14 Mar 2020, 18:49
Forum: Ask For Help
Topic: Issue with Label names and hotkeys
Replies: 4
Views: 163

Issue with Label names and hotkeys

Hello, I've noticed that this script will not run because AHK thinks the F1 label exists twice. F1:: MsgBox, Hotkey F1 was pressed. return F1: MsgBox, Label F1 was executed. return F2:: GoSub F1 return However, one is a label, the other is a hotkey. I checked this page and it only suggests not to us...
by Scr1pter
15 Feb 2020, 05:30
Forum: Ask For Help
Topic: Calling function from function with parameter Topic is solved
Replies: 2
Views: 208

Re: Calling function from function with parameter Topic is solved

Great, it works! :thumbup:
Thanks for the fast answer.

Best regards
by Scr1pter
14 Feb 2020, 18:14
Forum: Ask For Help
Topic: Calling function from function with parameter Topic is solved
Replies: 2
Views: 208

Calling function from function with parameter Topic is solved

Hello, The F1 and F2 part works flawlessly: F1:: KeyWait, F1, T0.2 ; Check if the key has been held down for less than 200 ms if ErrorLevel = 1 ; Script 2 - Long press { Function_2() } else ; Script 1 - Short press { Function_1() } return F2:: Short_Long_Function(func("Function_1"), func("Function_2...
by Scr1pter
29 Jan 2020, 17:15
Forum: Ask For Help
Topic: How to make Timer for script
Replies: 4
Views: 178

Re: How to make Timer for script

Have you tried my script?

Cheers!
by Scr1pter
29 Jan 2020, 15:05
Forum: Ask For Help
Topic: How to make Timer for script
Replies: 4
Views: 178

Re: How to make Timer for script

Code: Select all

Numpad1::^f
Numpad2::Enter
Numpad3::Escape
Numpad4::Send {Alt Down}{Tab}{Alt Up}
Numpad5::^w

F1::
Send {Numpad1}
Sleep, 3000
Send {Numpad2}
.
.
.
return
but there are much better ways to do that, however, you would have to write down more details.
What exactly do you want to do?

Cheers!
by Scr1pter
29 Jan 2020, 14:16
Forum: Ask For Help
Topic: Problems with a if condition checking a counter
Replies: 1
Views: 110

Re: Problems with a if condition checking a counter

Why not trying it with
Loop, 30
?

Then you can remove the
if statement
count variable
break

At the moment I can't really see why it runs just 5 times.

Cheers!
by Scr1pter
29 Jan 2020, 07:59
Forum: Ask For Help
Topic: LIST OF GOOD HOTKEYS?
Replies: 3
Views: 226

Re: LIST OF GOOD HOTKEYS?

Hi, Do you type in the combinations directly or do you use some programmable keys? For example: If you have a Logitech keyboard with G keys, you can assign F13 till F24 to them. In your ahk script you use F13 till F24 to run your scripts then. If you press the combinations directly (eg Ctrl+F1), you...
by Scr1pter
29 Jan 2020, 07:16
Forum: Ask For Help
Topic: Problems with MIDI input
Replies: 0
Views: 126

Problems with MIDI input

Hello, I'm trying to use MIDI as input to execute functions. E.g. I play an A1 to have get a MessageBox. I googled around and found two old AHK scripts/libraries: https://github.com/dannywarren/AutoHotkey-Midi https://autohotkey.com/board/topic/28056-midi-input-library/ The problem is that none of t...
by Scr1pter
01 Jan 2020, 18:58
Forum: Ask For Help
Topic: [GUI] Text over ImageButton?
Replies: 3
Views: 339

[GUI] Text over ImageButton?

Hello and a happy new year to all of you! :) I found a function with whose help it's possible to have graphical buttons/ImageButtons in GUIs: https://autohotkey.com/board/topic/3816-graphic-buttons/page-2 It generally works well, but I'm trying to extend the functionality to have text shown over the...
by Scr1pter
18 Dec 2019, 20:23
Forum: Ask For Help
Topic: if statement necessary here? Topic is solved
Replies: 4
Views: 385

Re: if statement necessary here? Topic is solved

Thank you, guys! Xtra's idea is interesting, however, it would require that I'll do it for all 64 fields. For this reason I used the A - H and 1 - 8 way. By combining them, I'll achieve all 64 fields (8x8) guest3456's post makes sense too, however, I chose Hellbent's code. Works perfectly - I'll wri...
by Scr1pter
15 Dec 2019, 19:55
Forum: Ask For Help
Topic: if statement necessary here? Topic is solved
Replies: 4
Views: 385

if statement necessary here? Topic is solved

Hey guys, I'm back after a long AHK pause ;) I guess I lost some skills :think: Anyway, in my script I call a function and depending on the value, it should output values inside of a MessageBox. F1:: A = 212 1 = 966 letter = %A% digit = %1% MsgBox, %letter%, %digit% return F2:: Click_On_Field("A1") ...
by Scr1pter
31 May 2019, 08:36
Forum: Allgemeines
Topic: rezo ja lol ey!: "Die Zerstörung der CDU"
Replies: 10
Views: 3281

Re: rezo ja lol ey!: "Die Zerstörung der CDU"

Hab mir das Video komplett angeschaut. Defintiv sehr informativ, wenngleich traurig. Bezüglich der Sache mit der Kohle-Industrie hatte ich den gleichen Gedanken: Die lieben Politiker werden geschmiert. Zwei weitere Gründe wären noch: - sie decken gezielt Personen (wollen bewusst bestimmte Arbeitsplä...
by Scr1pter
27 May 2019, 08:10
Forum: Forum Issues
Topic: Reminding new members to use code tags
Replies: 71
Views: 13530

Re: Reminding new members to use code tags

Has any image/GIF been added inside of/ during the registration process anyway?
Because I see a lot of such threads:
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=64912

I've never received any feedback for the GIF which I created a while ago.

Cheers!
by Scr1pter
22 May 2019, 14:26
Forum: Ich brauche Hilfe
Topic: Minecraft Chat auslesen
Replies: 14
Views: 2043

Re: Minecraft Chat auslesen

Vielleicht ist die Datei zu groß für eine MessageBox? Du kannst ja erstmal versuchen, die Datei einfach zu öffnen. (Leg vorher fest, dass log-Dateien z.B. mit Notepad geöffnet werden sollen.,) Danach entweder normal über Run oder FileOpen. Vielleicht kannst du sie auch in Word öffnen und bestimmte W...
by Scr1pter
18 May 2019, 18:45
Forum: Gaming
Topic: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)
Replies: 92
Views: 48286

Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)

Hey guys I need your help. I downloaded this script (which leads to this thread): #SingleInstance force ;Mausgeschwindigkeit einstellen ;Call below to accelerate the mouse input. The first two parameters are the integer factors of artificial amplification added on top of the physical input. ;The fir...
by Scr1pter
17 May 2019, 16:22
Forum: Ask For Help
Topic: Zoom to mouse cursor on browsers
Replies: 5
Views: 694

Re: Zoom to mouse cursor on browsers

Are you really speaking about a touchpad (e.g Apple Magic Trackpad) or just the touch possibility of a tablet/ smartphone?

Cheers!
by Scr1pter
17 May 2019, 08:43
Forum: Ask For Help
Topic: mouse wheel keybind
Replies: 8
Views: 880

Re: mouse wheel keybind

Uh, still poorly described. From what I understood: He is speaking about the game world of warcraft and he uses 5 clients (players) at the same time. He wants to add functionalities to wheel up and wheel down, which affect all 5 clients. Even if I understood it correctly, I still don't know what exa...

Go to advanced search