Search found 453 matches

by Osprey
25 Apr 2019, 19:53
Forum: Ask For Help
Topic: Help with a GUI script and an error I don't understand
Replies: 9
Views: 235

Re: Help with a GUI script and an error I don't understand

At the end of the script, you're going back to the beginning, which goes to the middle, which defines the GUI all over again with the same control name. Try defining the GUI at the top of the script, before the beginning, and then only show and update it later in the script, like so (untested): Gui,...
by Osprey
25 Apr 2019, 19:44
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 ?

Use WinSetTitle, like so:

WinSetTitle, ahk_exe NVEncC64.exe,, This is the new title

Make sure that the script is running as admin if NVEncC64.exe is running as admin.
by Osprey
25 Apr 2019, 19:15
Forum: Ask For Help
Topic: Press AND hold button
Replies: 1
Views: 62

Re: Press AND hold button

I think that this is all that you need: ~LButton:: ; The ~ allows regular clicking Sleep, 400 ; Wait so that quick single clicks don't process the While loop While(GetKeyState("LButton", "P")) { Send, {LButton} SoundPlay, *48 Sleep, 700 } Return I added the SoundPlay line simply to show you a handy ...
by Osprey
25 Apr 2019, 18:48
Forum: Ask For Help
Topic: script have priority over any program
Replies: 3
Views: 99

Re: script have priority over any program

You can elevate the script's process priority with Process, Priority,, High. I'm not sure if it's going to solve your problem, though.
by Osprey
25 Apr 2019, 03:46
Forum: Ask For Help
Topic: Rebinding a laptop´s specific key
Replies: 1
Views: 70

Re: Rebinding a laptop´s specific key

Run this TooltipKeypress script: CoordMode, ToolTip, Screen SetFormat, IntegerFast, H CleanTimer := -3000 ; Must be a negative number (the timer will run only once) Loop, 5000 { Hotkey, % "~*" GetKeyName(Format("vk{:x}", a_index - 1)), GetText Hotkey, % "~*" GetKeyName(Format("sc{:x}", a_index - 1))...
by Osprey
24 Apr 2019, 19:47
Forum: Ask For Help
Topic: How can I use the + keystroke in a hotkey?
Replies: 1
Views: 69

Re: How can I use the + keystroke in a hotkey?

I'm not entirely certain of what you're doing, but I imagine that using the VK code of the key would solve your problem. The VK code for the + key is vkBB. You can make a hotkey for it by doing vkBB:: or, if you're reading input, you may need to use the GetKeyVK() function to know when it's encounte...
by Osprey
24 Apr 2019, 17:21
Forum: Ask For Help
Topic: Script only runs once
Replies: 2
Views: 88

Re: Script only runs once

It stays running for me. I had to comment out the AnimatedGifControl() function call, though, because you didn't provide that. That could mean that that function is exiting the script, either deliberately or by crashing.
by Osprey
24 Apr 2019, 17:15
Forum: Ask For Help
Topic: Menu with more then 1 submenu's
Replies: 9
Views: 242

Re: Menu with more then 1 submenu's

Ataricx wrote:
24 Apr 2019, 04:56
Just 1 question, is it possible to add an icon in front of or after a line?

see example:
Yes. Look up "Menu Icon" in the help file's Index.
by Osprey
24 Apr 2019, 17:12
Forum: Ask For Help
Topic: Mouse movement while holding down a key
Replies: 1
Views: 74

Re: Mouse movement while holding down a key

Your code looks okay, except that your Macro1 subroutine has no end Return , your F7 hotkey has no end Return and your Loop has no end } , which may all have just been a copy-paste slip-up. As for interrupting the loop, try something like: F7:: Abort := 0 Loop { Send {E Down} Click, 1283, 719, 0 Cli...
by Osprey
23 Apr 2019, 21:39
Forum: Ask For Help
Topic: Menu with more then 1 submenu's
Replies: 9
Views: 242

Re: Menu with more then 1 submenu's

Duplicate one of the first two lines, duplicate one of the "prog#" subroutines and change all of the numbers to 3.
by Osprey
23 Apr 2019, 03:48
Forum: Scripts and Functions
Topic: Using Google Translate to automate text translation
Replies: 11
Views: 810

Re: Using Google Translate to automate text translation

Isn't Google going to block the app if one uses it often? It's a very nice script and idea, but I'm worried that it will get blocked. Yes, I've already had this happen. That's why, in my version above, I added a simple condition to detect when the script was getting blocked and, in those cases, ret...
by Osprey
23 Apr 2019, 03:31
Forum: Scripts and Functions
Topic: Custom text wrapping script
Replies: 5
Views: 851

Re: Custom text wrapping script

Many thanks to kkwillmert for updating the script. I wanted it in function form, so I went ahead and converted it. Having it as a function makes it a lot easier to include and call, IMO. ; TextWrapper.ahk ; Original Author: Gehn WillowGlade <[email protected].com> ; ; Script Description: ; Wraps tex...
by Osprey
23 Apr 2019, 02:21
Forum: Ask For Help
Topic: Storing String for Array in a .ini file Topic is solved
Replies: 5
Views: 161

Re: Storing String for Array in a .ini file Topic is solved

This is what I had in mind: #NoEnv #SingleInstance Force #Persistent SetWorkingDir %A_ScriptDir% SendMode, Input IniRead, tempVar,save.ini,Values,ItemList MyArray := StrSplit(tempVar,"|") q:: Gui, Destroy Gui, -ToolWindow -SysMenu -Caption AlwaysOnTop Gui, Add, Combobox, y20 vVar, % tempVar Gui, Sho...
by Osprey
23 Apr 2019, 01:30
Forum: Ask For Help
Topic: Storing String for Array in a .ini file Topic is solved
Replies: 5
Views: 161

Re: Storing String for Array in a .ini file Topic is solved

You're reading the values from tempVar into an array, which is good, but then you're not really operating on the array and, when you write to the INI, you're writing with tempVar. I think that you should use array functions like MyArray.Push() to MyArray.Pop() to add and remove elements from the arr...
by Osprey
21 Apr 2019, 01:12
Forum: Ask For Help
Topic: Error after compiling to exe
Replies: 1
Views: 93

Re: Error after compiling to exe

It could be because you're running the script with one version of AutoHotkey and compiling it with another. Go to the Compiler folder, delete AutoHotkeySC.bin, make a copy of the .bin that corresponds to the AutoHotkey executable that you're using (i.e. ANSI 32-bit.bin if using AutoHotkeyA32.exe, Un...
by Osprey
20 Apr 2019, 19:53
Forum: Ask For Help
Topic: Google Translate code slow and erroneous
Replies: 19
Views: 1915

Re: Google Translate code slow and erroneous

Very good, teadrinker. I've reposted my reply there. Thanks for the offer and thanks again for the awesome script. I've already implemented it into a project that I'm working on. It's pretty wild how simple it is. In fact, it's so simple that using it a little too much triggers Google's servers to r...
by Osprey
20 Apr 2019, 19:39
Forum: Scripts and Functions
Topic: Using Google Translate to automate text translation
Replies: 11
Views: 810

Re: Using Google Translate to automate text translation

Many thanks to teadrinker for his script. I've slightly modified it in a few ways to suit my purposes, but also make it more adaptable for others: 1. It'll now automatically translate to the user's system language. In other words, if you don't supply any parameters to the GoogleTranslate function ot...
by Osprey
20 Apr 2019, 05:30
Forum: Ask For Help
Topic: Keep script running after closing a window
Replies: 2
Views: 84

Re: Keep script running after closing a window

It's because you have:

Code: Select all

GuiClose:
GuiEscape:
	ExitApp
Return
That tells the script to exit when you close the GUI.

It sounds like you want to close the GUI without exiting the script, in which case you probably want:

Code: Select all

GuiClose:
GuiEscape:
	Gui, Hide
Return
by Osprey
20 Apr 2019, 05:19
Forum: Ask For Help
Topic: How to Loop For Specific Time
Replies: 4
Views: 174

Re: How to Loop For Specific Time

swagfag wrote:
20 Apr 2019, 03:57
this have a very low chance of breaking out of the loop, u want to use >
You're right. I was in too much of a rush. I've edited it. Thanks.
by Osprey
20 Apr 2019, 02:56
Forum: Ask For Help
Topic: Use value directly from an array
Replies: 2
Views: 94

Re: Use value directly from an array

You want to do Menu, Something, Add, % Sample[1], MenuHandler. A % sign followed by a space allows you to insert expressions.

Go to advanced search