Search found 52 matches

by ilhom
28 Aug 2019, 08:04
Forum: Ask For Help
Topic: How To Send This Text?
Replies: 2
Views: 265

Re: How To Send This Text?

Using the {text} command everything afterwards will be sent as plain text. If you need to make tabs or a new line, refer to this: https://www.autohotkey.com/docs/commands/_EscapeChar.htm F2:: SendInput {text}if (soundDEFINE) {{enter} @pause for 0{enter} sound{enter} @pause for 0{enter} } else {{ente...
by ilhom
26 Aug 2019, 16:24
Forum: Ask For Help
Topic: Indenting 'Send' output
Replies: 2
Views: 343

Re: Indenting 'Send' output

Each of the `t below is considered a tab. Try removing `t on each one. If you want the first tab to happen, leave the first one there. If you want a `t each time, then try putting a `b after the `n (except the first one) so you can backspace the previous tabbing that was done. `n`tAuthor: test `n`tB...
by ilhom
24 Aug 2019, 20:06
Forum: Ask For Help
Topic: Tapping W repeatedly while holding down both Q and W
Replies: 5
Views: 751

Re: Tapping W repeatedly while holding down both Q and W

If you want to spam q while holding it down, create an else if condition for its key state. $q:: Loop { keywait, q, T0.2 if (Errorlevel = 1) { GetKeyState, qstate, q GetKeyState, wstate, w if (qstate = "D" and wstate = "D") SendInput w else break } else { SendInput q break } }
by ilhom
24 Aug 2019, 17:09
Forum: Ask For Help
Topic: Help with hotkeys for button press and release Topic is solved
Replies: 2
Views: 357

Re: Help with hotkeys for button press and release Topic is solved

You would need to involve GetKeyState to see if the button is down or up. {q down}:: and {q up}:: are not valid hotkeys. For mouseclick, you need to specify which button to click with. If you're only wanting mouse clicks and want to ignore sending q when holding the button down, then it would look l...
by ilhom
24 Aug 2019, 00:58
Forum: Ask For Help
Topic: Help getting started.
Replies: 1
Views: 261

Re: Help getting started.

Can you perhaps provide a specific example of what you are looking for?
by ilhom
21 Aug 2019, 23:36
Forum: Ask For Help
Topic: How to manage intermittent 404 and 500 errors?
Replies: 2
Views: 340

Re: How to manage intermittent 404 and 500 errors?

If the errors are changing the title of your window you could try using WinWait for the window title that you need, and if it times out ErrorLevel would be set to 1. You could use that as your expression in your if statement. Edit: Here's an example of what I'm talking about, including a loop to det...
by ilhom
21 Aug 2019, 23:19
Forum: Ask For Help
Topic: Round off variables to whole integers
Replies: 4
Views: 546

Re: Round off variables to whole integers

Another alternative to Round is using SetFormat https://www.autohotkey.com/docs/commands/SetFormat.htm This can allow you to create a format that subsequent variable changes will adhere to. Here's an example: test := 944.122445 msgbox %test% variable is defined ;output 944.122445 SetFormat, float, 0...
by ilhom
21 Aug 2019, 19:41
Forum: Ask For Help
Topic: Script freaks out when it runs
Replies: 4
Views: 626

Re: Script freaks out when it runs

https://www.autohotkey.com/docs/commands/Click.htm Since click does not support expressions, variables should be enclosed in percent signs. https://www.autohotkey.com/docs/Variables.htm#Expressions an expression takes one or more values as input, performs one or more operations, and produces a value...
by ilhom
21 Aug 2019, 09:13
Forum: Ask For Help
Topic: Binds conflicts Topic is solved
Replies: 1
Views: 325

Re: Binds conflicts Topic is solved

Both the XButtons are sending an input of a number which is why the hotkey for that corresponding number is triggering. With the code you linked, XButton1:: will trigger 1:: because XButton1:: is sending an input of 1. Try sending the line as a text like so: XButton2:: SendInput {text}t/pmt 0 SendIn...
by ilhom
20 Aug 2019, 13:11
Forum: Ask For Help
Topic: I need help with my script
Replies: 2
Views: 267

Re: I need help with my script

You need to put the if statement inside parenthesis like so: if (s <= 0 && m >= 1) However this will continue to make the tooltip go into negative seconds. If you are looking to avoid this, you can add another if condition. Here is my final code: s = 5 m = 0 Numpad1:: loop { Sleep, 1000 s-- if (s <=...
by ilhom
20 Aug 2019, 11:16
Forum: Ask For Help
Topic: Shortcuts for launching programs
Replies: 6
Views: 561

Re: Shortcuts for launching programs

You can do windowsbutton+R, type in excel/winword/powerpnt and press enter.
Edit: Shouldn't need to specify the path either if you know the name of the .exe and use Run
https://www.autohotkey.com/docs/commands/Run.htm
by ilhom
20 Aug 2019, 09:18
Forum: Ask For Help
Topic: Can AHK do this?
Replies: 3
Views: 492

Re: Can AHK do this?

What you're describing is definitely possible. Hotkeys can help with how you should define the hotkey with your macro button. https://www.autohotkey.com/docs/Hotkeys.htm GuiControls can help you with the popup box to type in 'scn' https://www.autohotkey.com/docs/commands/GuiControls.htm FileRead and...

Go to advanced search