Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- able to insert multiple preferred inputs in the INI, so it starts with the one at the top inserted in the dialog
- using down arrow key, it'll replace the inserted input with the next preferred input,
- if it doesn't exist it will just send the down arrow key instead to use the native input history list
- and it keeps count of how many times you went down in the native input history list, so that whenever you're at the top there,
- using up arrow key it will then instead insert the input at the bottom of the preferred inputs,
- using up arrow key at any preferred input to another input higher in the preferred inputs list is also possible.
- using up arrow key at the input at the top of the preferred inputs, could send the up arrow key but it won't change anything (custom nor native)
- It saves the latest used preferred input to the registry, by having a LButton hotkey with HotIf (MouseIsOverRunDialogAcceptBtn) and Enter hotkey with HotIf (WinActive(RunDialog)), both hotkeys can be dynamically created and removed, and they will compare the text detected within the edit control with each preferred input to see if there's a match that needs to be saved to the registry before it sends either LButton or Enter, and inserts that preferred input next time the run dialog opens, so you won't have to constantly use the arrow keys. Make sure that the comparisation isn't case-sensitive (capitalization)
- If that MouseOverControl isn't possible, then just use the same HotIf as the Enter hotkey on the LButton hotkey (as a side-effect this will make it change the latest used preferred input even when the run dialog didn't actually use it, which sucks but it's better than not having the LButton hotkey, even when you make an arrow hotkey to keep track, it would still suck b/c the user might have forgotten about the arrow key and just typed the other preferred input, which then won't be detected)
- Might wanna change the info in the configuration GUI that I made (double-press Win+R). After I have improved smart run. And I might need to change the multi-line comment at the top of Time Saver, the bit about configuring the preferred input. Since it will have to "add" preferred input instead (gotta change that too I guess), because there can be multiple preferrred inputs when smart run has been improved. However if you're gonna make the GUI become way more fancy with a list containing all the saved/unsaved preferred inputs, then you could still call it "configure preferred input(s)". But this is overkill, the user can just change the embedded INI
- [PreferredSmartRunInput]
- %LocalAppData%
- %AppData%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement