Search found 453 matches

by Osprey
03 May 2019, 19:04
Forum: Ask For Help
Topic: Help using WinWaitActive.
Replies: 6
Views: 184

Re: Help using WinWaitActive.

vsub, what he's using in the screenshot is what I originally posted, since I assumed that he had the syntax right and just copied the line that he had. When I noticed the mistake a couple of hours ago, I edited my post to correct it (just in case he were to refer back to it or someone else were to t...
by Osprey
03 May 2019, 16:52
Forum: Ask For Help
Topic: MouseHook causes severe input issues for hotkeys which do not use it
Replies: 9
Views: 260

Re: MouseHook causes severe input issues for hotkeys which do not use it

I recently had an issue with the mouse hook and hotkeys when SendMode was set to Input (or when I used SendInput instead of Send). I would try adding SendMode Event to the top of the script, especially in place of any other SendMode command, or changing your Sends to SendEvent. It may well do nothin...
by Osprey
03 May 2019, 16:41
Forum: Ask For Help
Topic: Help using WinWaitActive.
Replies: 6
Views: 184

Re: Help using WinWaitActive.

Try: Loop { WinWaitActive, ahk_class Intermediate D3D Window WinMaximize WinWaitNotActive } If that works, then try this modification of the other script, to make it maximize only on launch: #SingleInstance Force ProcessArray := [] Loop { WinWaitActive, ahk_class Intermediate D3D Window ; Wait for t...
by Osprey
02 May 2019, 23:04
Forum: Ask For Help
Topic: Help using WinWaitActive.
Replies: 6
Views: 184

Re: Help using WinWaitActive.

You can do it by using WinWaitActive inside of a loop, like so: Loop { WinWaitActive, Web Student Management WinMaximize WinWaitNotActive } If you don't want to maximize it, then replace that line with a WinMove command. If you want it to happen only once, when the application is first launched, see...
by Osprey
02 May 2019, 23:00
Forum: Ask For Help
Topic: [Automatic Hotkey] Auto-run an existing hotkey when an app starts?
Replies: 3
Views: 118

Re: [Automatic Hotkey] Auto-run an existing hotkey when an app starts?

Thanks for the response! They keystroke was (alt + m) so I switched '^m' to '!m'. That kind of works but some of the applications are .Ink files... Sorry about that. I misremembered you as wanting Ctrl+M. As for .lnk files, those are just shortcuts to other files. You need to right-click on them, c...
by Osprey
02 May 2019, 00:25
Forum: Ask For Help
Topic: [Automatic Hotkey] Auto-run an existing hotkey when an app starts?
Replies: 3
Views: 118

Re: [Automatic Hotkey] Auto-run an existing hotkey when an app starts?

Try this: #SingleInstance Force SetTitleMatchMode, RegEx ProcessArray := [] Loop { WinWaitActive, ahk_exe i)\\notepad|winword|wordpad\.exe$ ; Wait for one of the applications to open WinGet, ProcessID, PID ; Get the process ID (PID) of the application's window If(!ProcessArray[ProcessID]) ; If the w...
by Osprey
01 May 2019, 14:12
Forum: Ask For Help
Topic: Is it a good idea to upgrade to AutoHotkey v2 now? Topic is solved
Replies: 20
Views: 697

Re: Is it a good idea to upgrade to AutoHotkey v2 now? Topic is solved

I would stick with v1, but read over the major changes in v2 and try to avoid commands and syntaxes that will be gone in v2, so that you'll be able to transition and update your scripts more smoothly when the time comes. Particularly, try to use expression syntax as much as possible, meaning ":=" in...
by Osprey
30 Apr 2019, 21:58
Forum: Ask For Help
Topic: showing a ToolTip when Mouse cursor over on items of ListView Topic is solved
Replies: 14
Views: 545

Re: showing a ToolTip when Mouse cursor over on items of ListView Topic is solved

how i can add extra different text in the tooltip for each lv_add instead just show the name of each lv_add ? This is how I did it: #NoEnv SetBatchLines, -1 blah1 = This is blah1 blah2 = This is blah2 blah3 = This is blah3 Gui, Add, ListView, vLV1, Test LV_Add("", "blah1") LV_Add("", "blah2") LV_Ad...
by Osprey
30 Apr 2019, 21:51
Forum: Ask For Help
Topic: read value from webpage and store it
Replies: 1
Views: 73

Re: read value from webpage and store it

You could use something like the following to retrieve the actual HTML code, so that you're not doing anything visible with the browser window and don't even need to have the browser window open: ComObjError(false) http := ComObjCreate("WinHttp.WinHttpRequest.5.1") ( proxy && http.SetProxy(2, proxy)...
by Osprey
29 Apr 2019, 20:40
Forum: Ask For Help
Topic: ExitApp when the user closes the progress bar
Replies: 8
Views: 274

Re: ExitApp when the user closes the progress bar

You could simply add checks for the progress bar window at various points, like so: Progress, w200 R0-100 M2,,, Progress Bar If(!WinExist("Progress Bar")) ExitApp Sleep, 500 ; Replace this line with one or more operations (ex. file copying) Progress, 25 If(!WinExist("Progress Bar")) ExitApp Sleep, 5...
by Osprey
29 Apr 2019, 19:33
Forum: Ask For Help
Topic: Variable that all scripts refer to
Replies: 2
Views: 132

Re: Variable that all scripts refer to

#Include is probably the most straight forward solution and the best one for you. It simply adds all of the code from another script to the place where it's called. Just create a new script--I would call it Common.ahk, so that you could add other variables later on and not feel that you have to chan...
by Osprey
28 Apr 2019, 03:48
Forum: Ask For Help
Topic: if (Title contains %exact_match%)
Replies: 21
Views: 537

Re: if (Title contains %exact_match%)

I just think that programmers/coding who do this for a living and have been doing it for decades are a very small percentage of the population - and by far, the most intelligent portion of the population - even more so than say, a Doctor or a Lawyer for example. I think you guys are on a much highe...
by Osprey
27 Apr 2019, 18:10
Forum: Ask For Help
Topic: if (Title contains %exact_match%)
Replies: 21
Views: 537

Re: if (Title contains %exact_match%)

If this is in reference to a window title, you can simply make sure at the time that you're assigning the variable that the title has "6.25" in it. That way, you don't even have to check for it later: SetTitleMatchMode, 2 ; Match a string anywhere in the title WinGetTitle, Title, 6.25 ; Get the titl...
by Osprey
27 Apr 2019, 16:29
Forum: Ask For Help
Topic: How to copy the FULL file to clipboard from specific path?
Replies: 4
Views: 148

Re: How to copy the FULL file to clipboard from specific path?

Lexikos' FileToClipboard function at the link that aeiklmr gave works for me. I ran it in a folder with a 1GB movie file, right-clicked on my desktop, clicked Paste and the movie file was copied to my desktop. Is that not what you're after? FileToClipboard("test.mkv") FileToClipboard(PathToCopy) { ;...
by Osprey
27 Apr 2019, 16:01
Forum: Ask For Help
Topic: Start program in full screen
Replies: 1
Views: 69

Re: Start program in full screen

The Run command has an option to launch maximized, if that's what you mean. Ex. Run, test.exe,, Max. If that's not exactly what you mean, then, after doing that, you may try using WinSet to remove the title bar. Ex. WinSet, Style, -0xC00000, A.
by Osprey
27 Apr 2019, 15:58
Forum: Ask For Help
Topic: Is Autohokeys causing unwanted switch to overtype ?
Replies: 13
Views: 344

Re: Is Autohokeys causing unwanted switch to overtype ?

I've had this happen several times while testing my Autohotkey scripts. I don't know why it happens, since I don't usually use the Insert key in my scripts. It could be as simple as me accidentally pressing Insert or maybe it's an example of keyboard ghosting, where pressing a bunch of keys at once ...
by Osprey
26 Apr 2019, 19:47
Forum: Ask For Help
Topic: Place prompt in hotstring text
Replies: 7
Views: 204

Re: Place prompt in hotstring text

I'm not sure that there's a better solution than using {Left}. Instead of doing it manually, though, if you want to make it part of the hotstring, you could do: ::text1:: text1 = ( After ahk has inserted my replacement text, I want to start typing __RIGHT HERE AT THIS POSITION__ and not at the end o...
by Osprey
26 Apr 2019, 18:37
Forum: Ask For Help
Topic: How to set a dos command line windows title ?
Replies: 7
Views: 249

Re: How to set a dos command line windows title ?

I'm sorry. it was not working. Nothing changed on the title It worked for me when I tested with diskpart.exe (I tried with NVEncC64.exe, but it complained that I don't have an Nvidia library installed). As I mentioned, are you running the script with the same credentials as the program (i.e. as adm...
by Osprey
26 Apr 2019, 13:55
Forum: Ask For Help
Topic: Global Variables in Function & Parsing Large File Topic is solved
Replies: 2
Views: 92

Re: Global Variables in Function & Parsing Large File Topic is solved

Your global variables aren't recognized in the While loop because you forgot to put global at the top of the gen_ListStr() function that it's in. As for using FileRead + StrSplit(), try: FileRead, myFile, Dictionary.txt myArray := StrSplit(myFile, "`n", " `t") ; Split at newline characters and omit ...
by Osprey
25 Apr 2019, 19:56
Forum: Ask For Help
Topic: "Men of War" and AutoHotKey Topic is solved
Replies: 2
Views: 95

Re: "Men of War" and AutoHotKey Topic is solved

I find that messing with SendMode (Event mode works more often than any other mode in games) and SetKeyDelay (sometimes, I need to set one or both as high as 50) usually solves my issues in games.

Go to advanced search