Search found 2745 matches

by Exaskryz
58 minutes ago
Forum: Ask For Help
Topic: mouse/touch click??
Replies: 5
Views: 64

Re: mouse/touch click??

You might be interested in Window Spy which can be accessed by right-clicking the tray icon (by the system clock) of a running script. The only way that I imagine the mouse moving, if you're doing only Click commands in AHK, is if the window itself is moving as a result of being clicked. Would be od...
by Exaskryz
Today, 04:25
Forum: Ask For Help
Topic: Text highlighter using Gdip
Replies: 5
Views: 65

Re: Text highlighter using Gdip

If you restrict scrolling input to be one input method, it could work. You could figure out the calibration dynamically in the script, or hard code it depending on the program you're using. Dynamic would be better because you could be working at different zoom levels. I don't have any example code u...
by Exaskryz
Yesterday, 23:52
Forum: Ask For Help
Topic: Text highlighter using Gdip
Replies: 5
Views: 65

Re: Text highlighter using Gdip

is it possible to move the highlighted parts together with mouse scrolling? That's going to get problematic, but not impossible. I don't think AHK is going to be the right tool for you. What is your program? There is a firefox addon called Wired Marker that I use to highlight text in webpages. But ...
by Exaskryz
Yesterday, 03:30
Forum: Ask For Help
Topic: #Include scripts breaks
Replies: 8
Views: 143

Re: #Include scripts breaks

Does the OnExit routine actually do anything? Imagine how the script is exited without a hotkey dedicated to it. The user would be interacting to either open task manager and likely navigate it with mouse or right click the tray icon to exit. I expect a user is not going to be doing that within 250 ...
by Exaskryz
20 Jan 2018, 20:03
Forum: Ask For Help
Topic: mouse/touch click??
Replies: 5
Views: 64

Re: mouse/touch click??

Is this program run with administrator privileges? Your script would also need to be run with admin permissions. (Right click the script, select "Run as Administrator".)
by Exaskryz
20 Jan 2018, 12:38
Forum: Gaming
Topic: Send keys (functions) to specific window
Replies: 6
Views: 80

Re: Send keys (functions) to specific window

Change the ControlSend, ahk_id to ControlSend, ahk_ parent or leave it blank. I wouldn't expect ahk_id to be a value that works for a Control parameter. But beyond those two choices, I don't know what you'd need. You'd probably have to find what other people have used in trying to use ControlSend (o...
by Exaskryz
20 Jan 2018, 10:38
Forum: Gaming
Topic: Send keys (functions) to specific window
Replies: 6
Views: 80

Re: Send keys (functions) to specific window

Each of your Send/Input lines should be replaced with ControlSend . ControlSend [, Control, Keys, WinTitle, WinText, ExcludeTitle, ExcludeText] The base line syntax for you would be: ControlSend, ????, % obj[r], World of Warcraft Of course change % obj[r] to {Enter} and w in their respective lines. ...
by Exaskryz
18 Jan 2018, 19:29
Forum: Ask For Help
Topic: sending a period
Replies: 2
Views: 34

Re: sending a period

You need a space or command between your command and the first parameter. Send. is nonsensical to AHK; Send . works just fine. I just tested and even Send,. works too. If you want to send to Chrome as an inactive window, you'd need to look at ControlSend . But you shouldn't need ControlSend if Chrom...
by Exaskryz
16 Jan 2018, 19:26
Forum: Gaming
Topic: holding down f1 key
Replies: 1
Views: 36

Re: holding down f1 key

See (Note: The first link is from the old forums, the second link is on these forums) http://www.autohotkey.com/board/topic/64576-the-definitive-autofire-thread/ or https://autohotkey.com/boards/viewtopic.php?f=7&t=11952 See also ControlSend to target a window in the background. It's not terribl...
by Exaskryz
16 Jan 2018, 00:11
Forum: Ask For Help
Topic: Disable a key after long press
Replies: 2
Views: 48

Re: Disable a key after long press

You would need a label, in this case, Label: that does only the return command. And yes, you want the hotkey on . An on hotkey will "hijack" the native function, and in this case, AHK will make it do nothing. key1:="f" ; you should be able to use your function, but this is standa...
by Exaskryz
15 Jan 2018, 17:01
Forum: Ask For Help
Topic: [Solved]Need some help with a simple loop
Replies: 3
Views: 60

Re: Need some help with a simple loop

Welcome GuiControl will update the number for you; introduce gui variables: Gui, Events However, is there a reason for your maths? Shouldn't you use op:=op+1 to get op if it is cyclic as 1, 2, 3, 1, 2, 3, 1, 2, 3 ... ? Also, that can be shorted as just op++ where the ++ operator means add one to the...
by Exaskryz
13 Jan 2018, 19:55
Forum: Gaming
Topic: AHK Multiple Timers, but asynchronous Topic is solved
Replies: 14
Views: 147

Re: AHK Multiple Timers, but asynchronous Topic is solved

I get the feeling you need the Critical command, but because I don't use it often, I'm not confident. t0: Turned on gun1 t600: Turned on gun2 t1200: gun1 executes t1800: gun2 executes, interrupting gun1 (400 seconds remain on the Sleep in gun1) t2800: gun2 ends, resume gun1 t3000: gun2 executes agai...
by Exaskryz
12 Jan 2018, 20:41
Forum: Ask For Help
Topic: Hotkey that works on press only, not when typing
Replies: 2
Views: 53

Re: Hotkey that works on press only, not when typing

Two solutions I can think of: 1) Use the variable A_ TimeIdle or A_ TimeIdlePhysical . (Coming up in a future version, two other variables will be introduced which may help you: A_TimeIdleMouse and A_TimeIdleKeyboard.) You can combine this with the A_ TimeSinceThisHotkey variable after a short sleep...
by Exaskryz
10 Jan 2018, 22:48
Forum: Ask For Help
Topic: End an Input on Key Up
Replies: 5
Views: 77

Re: End an Input on Key Up

Input allows you to use a TimeOut parameter (T3 for 3 seconds) which might be of interest to you. You might consider something like this, which I did test to see if it'd work: F1:: Input, code_input, I, {F1}, password If (ErrorLevel="match") MsgBox matched password else MsgBox input termin...
by Exaskryz
10 Jan 2018, 20:35
Forum: Ask For Help
Topic: How can I make this faster?
Replies: 3
Views: 68

Re: How can I make this faster?

Your code looks like it can be reduced using A_Index: Loop, 14 { ImageSearch, OpX, OpY, 0, 0, 1920, 1080, Op%A_Index%.PNG If (Errorlevel = 0){ ImageSearch, RX, RY, 0, 0, 1920, 1080, R%A_Index%.PNG MouseClickDrag, Left, OpX, OpY, RX, RY } However, I will note that you don't have another If statement ...
by Exaskryz
10 Jan 2018, 20:24
Forum: Ask For Help
Topic: End an Input on Key Up
Replies: 5
Views: 77

Re: End an Input on Key Up

Not sure. I don't think input is the right command here because it shouldn't capture non-character keys like LWin to my knowledge, but maybe you could use it. That and I don't think Input can respond to the release of a key but only the presses, but I may be wrong about it. But what I would do is us...
by Exaskryz
10 Jan 2018, 15:31
Forum: Ask For Help
Topic: Disabling key for some ms
Replies: 2
Views: 39

Re: Disabling key for some ms

~Numpad3:: Hotkey, Numpad4, Numpad4_Suppress Sleep 500 Hotkey, Numpad4, Off ; restores normal function of the Numpad4 return Numpad4_Suppress: return ; literally do nothing Try that out, but I haven't tested the code myself. You can't use an If statement to control a hotkey. An alternative is this ...
by Exaskryz
08 Jan 2018, 00:14
Forum: Ask For Help
Topic: How to store UTF-8 characters within string variables and write them to file or MsgBox correctly? Topic is solved
Replies: 3
Views: 61

Re: How to store UTF-8 characters within string variables and write them to file or MsgBox correctly? Topic is solved

Is your AHK version installed as Unicode? MsgBox % A_ IsUnicode can tell you that. Is your text editor saving the file as UTF-8 encoding? I just tested in Notepad++ and while my default encoding is apparently set to "UTF-8 without BOM" I get the same •â as you do, if I change the encoding...
by Exaskryz
07 Jan 2018, 19:22
Forum: Ask For Help
Topic: 1 press & Constant Long Press Topic is solved
Replies: 4
Views: 42

Re: 1 press & Constant Long Press Topic is solved

To me it looks clean. I'm not entirely sure of the purpose of the ReleaseAllModifiers() function, but if you do it immediately after the KeyWait command (which I don't believe will break the If/else statement checking ErrorLevel), that saves you a line. And you may not need it repeating inside the W...
by Exaskryz
07 Jan 2018, 18:37
Forum: Ask For Help
Topic: Script to auto type
Replies: 1
Views: 30

Re: Script to auto type

SetTimer
Send

More difficult: Use ControlSend instead of Send, but the perk is you can target programs that aren't the active/focused window.

Go to advanced search