Search found 2876 matches

by Exaskryz
15 Feb 2018, 01:17
Forum: Ask For Help
Topic: Excel COM Insert (and Delete) Methods
Replies: 4
Views: 566

Excel COM Insert (and Delete) Methods

--------------------------- &Test Script.ahk --------------------------- Error: 0x800A03EC - Source: Microsoft Excel Description: Unable to get the Insert property of the Range class HelpFile: xlmain11.chm HelpContext: 0 Specifically: Insert Line# 316: Return 320: Loop,250 321: SendInput,{Del}{Back...
by Exaskryz
14 Feb 2018, 18:31
Forum: Ask For Help
Topic: AutoHotkey constantly needs restarting.
Replies: 17
Views: 775

Re: AutoHotkey constantly needs restarting.

The way I seem to be crashing my system is using 3 browsers simultaneously and doing memory intensive tasks like video watching while viewing maps in one browser, leaving up a chat application (Discord) in another browser, and doing general internet surfing in yet another browser. This is on top of ...
by Exaskryz
14 Feb 2018, 10:55
Forum: Ask For Help
Topic: AutoHotkey constantly needs restarting.
Replies: 17
Views: 775

Re: AutoHotkey constantly needs restarting.

Interesting, thanks lexikos. I will test out doing a quick Suspend/Unsuspend for these instances and see if it resolves, the next time my system has a crisis. If it does, then it likely means the problem is the hooks being unhooked and not something else. If it doesn't, then it could be that case wh...
by Exaskryz
13 Feb 2018, 23:35
Forum: Ask For Help
Topic: a question with clipboard autohotkey Topic is solved
Replies: 2
Views: 221

Re: a question with clipboard autohotkey Topic is solved

Continuation this is wen." appears to AHK as being on its own line. The "this" command doesn't exist here. But you may use a period at the start of the line to signal that it should be appended. Clipboard = "hi! . this is wen." However, I don't think this will work for you perfectly -- because the ...
by Exaskryz
13 Feb 2018, 22:16
Forum: Ask For Help
Topic: AutoHotkey constantly needs restarting.
Replies: 17
Views: 775

Re: AutoHotkey constantly needs restarting.

That's a good question. I've only experienced this with AHK needing a reboot personally. I have noticed this only with hotkey commands not executing. So it could be keyboard hooks get uninstalled and not reinstalled, if the process is actually being reactivated? However, I do have a persistent GUI t...
by Exaskryz
13 Feb 2018, 20:54
Forum: Ask For Help
Topic: AutoHotkey constantly needs restarting.
Replies: 17
Views: 775

Re: AutoHotkey constantly needs restarting.

I have experienced AHK crashing when my system resources are depleted -- if a web browser freezes and demands from Windows more resources, it usually results in AHK getting frozen and requiring I restart the scripts individually. I made a post about it in the past, and the suggestion given was to ru...
by Exaskryz
13 Feb 2018, 13:44
Forum: Ask For Help
Topic: How to map two keys on same button
Replies: 1
Views: 95

Re: How to map two keys on same button

There are many ways. But consider a hotstring. :*:oo::ok This will actually produce backspace, backspace, o, k which may not be compatible with your target program. But I can't imagine a use case where it wouldn't be.
by Exaskryz
13 Feb 2018, 05:06
Forum: Ask For Help
Topic: Random "bugs" in Autohotkey? Topic is solved
Replies: 44
Views: 3063

Re: Random "bugs" in Autohotkey? Topic is solved

Then I am back at not understanding how {Blind} could help with hotkeys like ^d::^c (or ^c::^c , for that matter, which I also use). I may have not followed the thread decently, only skimming ove rit. But wanted to try to clarify this point, at least how I understand it. Doing ^d::Send ^c results i...
by Exaskryz
11 Feb 2018, 23:54
Forum: Ask For Help
Topic: Need help with IF else function Topic is solved
Replies: 6
Views: 287

Re: Need help with IF else function Topic is solved

value:= Trim (value) Turns out, I linked to the wrong page in the documentation. That should be a better link. The fact that you're getting a "1" only tells me th.. That you're now assigning the value to F2 ? In that case, use MsgBox % F2 "`n`n" StrLen(F2) . If you change the variable name in one pl...
by Exaskryz
11 Feb 2018, 19:21
Forum: Ask For Help
Topic: Need help with IF else function Topic is solved
Replies: 6
Views: 287

Re: Need help with IF else function Topic is solved

Yeah, what I meant when you didn't define a value for M was without the "" around M, it was read as a variable. Because you accidentally wrote it as a variable instead of the literal letter M, that caused problems. For now, you have fixed that issue. Double check the value of value by using MsgBox %...
by Exaskryz
11 Feb 2018, 01:02
Forum: Ask For Help
Topic: How to run four programs, and always reload them when they exit?
Replies: 5
Views: 297

Re: How to run four programs, and always reload them when they exit?

You may consider a timeout on the WinWait for the Error Message. In which case, even if there was an Error Message, you could use WinGet's Count subcommand and see how many programs get returned. If it's <4, run another instance.
by Exaskryz
11 Feb 2018, 00:33
Forum: Bug Reports
Topic: Right Mouse Button disables view
Replies: 6
Views: 845

Re: Right Mouse Button disables view

For testing, I would close every software you can through the task manager and then running a simple Click, up, right / Send {RButton up} to see if you can replicate the issue then. AHK may indeed be a factor, but it is likely not the cause but instead a cofactor enabling the root problem. My hope i...
by Exaskryz
10 Feb 2018, 22:27
Forum: Ask For Help
Topic: How to run four programs, and always reload them when they exit?
Replies: 5
Views: 297

Re: How to run four programs, and always reload them when they exit?

I would think that doing Loop, 4 Run "pathtomyprogram.exe" ; not runwait because the -wait makes it wait for the program to exit Loop { WinWait Diskmonitor.exe ; or however you want to specify the ERROR message WinClose Diskmonitor.exe ; close out the ERROR message Run "pathtomyprogram.exe" } Should...
by Exaskryz
09 Feb 2018, 00:33
Forum: Ask For Help
Topic: Need help with IF else function Topic is solved
Replies: 6
Views: 287

Re: Need help with IF else function Topic is solved

The very last bit, you have if sendinput ; I think you want to drop that "if". Also note that your "Break" is at the end of a loop and not part of any if condition, well, except it is technically right now, but I think that if is unintentional. I don't see M defined anywhere; is the Value supposed t...
by Exaskryz
08 Feb 2018, 23:49
Forum: Ask For Help
Topic: alternative ways to showwindow?
Replies: 6
Views: 379

Re: alternative ways to showwindow?

Without any familiarity with Spotify or the images in your ImageSearch, I do wonder if they are strictly necessary though. I also see PixelGetColor strung throughout, so, that would probably need to be on screen unfortunately. I think if images/pixel colors are necessary, you may need to turn to GDI...
by Exaskryz
08 Feb 2018, 19:38
Forum: Ask For Help
Topic: alternative ways to showwindow?
Replies: 6
Views: 379

Re: alternative ways to showwindow?

If ControlClick is working, and it is not activating the window, try just moving the window off screen. I have used WinMove , Title,, 0, 1100, 1000, 1000 (changing the 1000s to whatever size the window natively is; can be obtained with Window Spy or using WinGetPos ) / WinMove, 0, 1100 when it was a...
by Exaskryz
08 Feb 2018, 19:15
Forum: Ask For Help
Topic: Running Two Commands Simultaneously, I can only get the button I press first to work Topic is solved
Replies: 3
Views: 127

Re: Running Two Commands Simultaneously, I can only get the button I press first to work Topic is solved

Due to how threads operate, what you'll be more interested in is a SetTimer to turn on ButtonWalk and ButtonClick to execute every 6000/4000 milliseconds. With the Loops as you have them now, AHK will execute Thread A, then interrupt it to run Thread B. It will not do anything to Thread A until Thre...
by Exaskryz
08 Feb 2018, 07:44
Forum: Gaming
Topic: Could you get banned using AHK script? Topic is solved
Replies: 6
Views: 580

Re: Could you get banned using AHK script? Topic is solved

Yeah, you can be banned. The criteria for banning: 1) It breaks the game's rules. Often for games, the publisher reserves the right to ban anyone for any or no reason at all, so, even if it doesn't break any written rules, it can break an unwritten rule and get you banned. 2) It is noticed by the ad...
by Exaskryz
07 Feb 2018, 21:18
Forum: Ask For Help
Topic: Can you not comment out code?
Replies: 3
Views: 333

Re: Can you not comment out code?

Make sure you are testing in a reliable environment. Test this in Notepad. Note that it may only move the cursor up one line, not keep moving it to the top, because this counts as only one key press. If you've been testing in a game, sometimes scripts need to be run in administrator mode to interact...
by Exaskryz
07 Feb 2018, 20:48
Forum: Ask For Help
Topic: Variable vs. Simulated keystrokes
Replies: 2
Views: 231

Re: Variable vs. Simulated keystrokes

In a one-off instance of send, probably just hardcode it -- {123} would be wrong though. You'd do send, 123 . But if your code was something like: 100 lines of code send, 123 100 lines of code send, 123 50 lines of code send, 123 40 lines of code send, 123 I would consider using the variable. Maybe ...

Go to advanced search