Search found 44 matches

by RubbeH
Today, 03:01
Forum: Ask For Help
Topic: Hotstring doesn't work when cursor is at the end of the word
Replies: 1
Views: 32

Re: Hotstring doesn't work when cursor is at the end of the word

It might work if you add ? to your hotstring.

Code: Select all

:*?:"!"::»
Btw, no need for returns in single-line hotstrings.
by RubbeH
20 Oct 2020, 02:02
Forum: Ask For Help
Topic: Multiple Press On 1 Key
Replies: 5
Views: 79

Re: Multiple Press On 1 Key

This works.

Code: Select all

$<::Send, {< 6}
$>::Send, {> 6}
by RubbeH
15 Oct 2020, 02:05
Forum: Ask For Help
Topic: Repeat 4 time a code Topic is solved
Replies: 2
Views: 39

Re: Repeat 4 time a code Topic is solved

You can probably just add Loop in there.

Code: Select all

F8::
{
MsgBox, 4,, Would you like to continue?
IfMsgBox, No
	return  ; If No
Loop, 4
	{
	Sleep, 5000
	click right, down
	sleep, 57500
	click right, up
	}
}
by RubbeH
14 Oct 2020, 02:51
Forum: Ask For Help
Topic: How to handle Clipboard and UTF-8?
Replies: 4
Views: 118

Re: How to handle Clipboard and UTF-8?

Hi! The following works for me, however I'm not sure you can apply this to your script, Perhaps if you put the line FileEncoding UTF-8 at the start of your script it'll work. #Persistent FileEncoding UTF-8 ; This line works if I put it ahead of FileRead. FileRead, text, C:\testptah\test\abcde.txt F1...
by RubbeH
08 Oct 2020, 06:17
Forum: Ask For Help
Topic: How can I fix these auto replace text?
Replies: 4
Views: 48

Re: How can I fix these auto replace text?

Hello! Since the ? triggers the hotstring even when its inside another word the hotstring uab will automatically send the replacement text (ā) for ab since uab contains ab One way to work around it is to add Case sensitivity however its not great. There might be a better way :*C?:AB::ā :*?:uab::ūa
by RubbeH
08 Oct 2020, 03:47
Forum: Ask For Help
Topic: Shutdown command making it sleep instead?
Replies: 4
Views: 93

Re: Shutdown command making it sleep instead?

You could make a script something like this to shutdown your computer through cmd.

Code: Select all

F2::Runwait, cmd.exe /c shutdown /s /t 1
add /f to force shutdown
not tested for obvious reasons.
by RubbeH
05 Oct 2020, 06:08
Forum: Ask For Help
Topic: Making an extended Clipboard
Replies: 3
Views: 92

Re: Making an extended Clipboard

Well, you could do something like this: Indentation and brackets are messed up, sorry about that. Haven't tested it either. #IfWinActive, Your window name F1::test_func() test_func() { Gui, Submit Gui, Destroy Gui, Font, s10 Gui, Add, Text,, ( What text would you like to paste? 1. Test1 2. Test2 3. ...
by RubbeH
24 Sep 2020, 07:57
Forum: Ask For Help
Topic: Hotkey Problems, getting old
Replies: 3
Views: 215

Re: Hotkey Problems, getting old

Just a thought, It'd be better to shorten your post a bit since it's now a wall of text which might discourage people from even reading your question. I think its a greater chance of getting help if you were to shorten your post and only include your code, the issue, what its supposed to do, and wha...
by RubbeH
24 Sep 2020, 05:15
Forum: Ask For Help
Topic: Hotstrings Shift stuck.
Replies: 10
Views: 437

Re: Hotstrings Shift stuck.

Hallo, perhaps: stringfile = ( q = Hallo, w = perhaps: test = This is a long ass test-string just for testing purposes, we'll keep this string going for a little while, a little longer.... a little longer.... a little longer.... a little longer.... ) Hotstring := [] stringfile := Trim(stringfile, "...
by RubbeH
24 Sep 2020, 00:22
Forum: Ask For Help
Topic: Hotstrings Shift stuck.
Replies: 10
Views: 437

Re: Hotstrings Shift stuck.

Hallo, your problem does not occur here. But try: :C*X:TEST::SendInput This is a long ass test-string just for testing purposes, we'll keep this string going for a little while, a little longer.... a little longer.... a little longer.... a little longer.... Oh, yea great! Is there a way to incorpor...
by RubbeH
23 Sep 2020, 07:56
Forum: Ask For Help
Topic: Hotstrings Shift stuck.
Replies: 10
Views: 437

Re: Hotstrings Shift stuck.

:C*:TEST:: oldClip := ClipboardAll Clipboard := "" Sleep, 50 Clipboard = This is a long test-string just for testing purposes, we'll keep this string going for a little while, a little longer.... a little longer.... a little longer.... a little longer.... ClipWait, 2 Sleep, 100 Send ^v Clipboard :=...
by RubbeH
23 Sep 2020, 04:34
Forum: Ask For Help
Topic: Hotstrings Shift stuck.
Replies: 10
Views: 437

Hotstrings Shift stuck.

Hello! I found a bug in my hotstrings and Idk what to do about it or if its solveable. :C*:TEST::This is a long ass test-string just for testing purposes, we'll keep this string going for a little while, a little longer.... a little longer.... a little longer.... a little longer.... The problem occu...
by RubbeH
18 Sep 2020, 07:59
Forum: Ask For Help
Topic: change last Word to capital case?
Replies: 5
Views: 151

Re: change last Word to capital case?

but it is not doing what i like :D does someone has an idea and can help me? Try this: ^+q:: { Clipbak := ClipboardAll ; Back up the Clipboard Send, {shift Down}{Ctrl Down}{Left}{shift Up}c{Ctrl Up} ; Copy the last word into the clipboard. LastWord := Clipboard ; Save the last word you typed sleep ...
by RubbeH
15 Sep 2020, 16:24
Forum: Ask For Help
Topic: Create Hotstring from .txt-file. Topic is solved
Replies: 6
Views: 321

Re: Create Hotstring from .txt-file. Topic is solved

That means, you need to know how the next line, after the current A_loopfield , looks like, to decide if it's a multi-liner or not. So, either use a clearer format, or you could do something like this, modifying an existing hotstring (the last one created), if the script discovers that it shouldn't...
by RubbeH
15 Sep 2020, 13:48
Forum: Ask For Help
Topic: Create Hotstring from .txt-file. Topic is solved
Replies: 6
Views: 321

Re: Create Hotstring from .txt-file. Topic is solved

Where is the problem? You just parse your text file and then call Hotstring() with this information. Since you create the hotstrings yourself, you should be able to keep an overview (create a list, array, object or whatever), but you can assume that you created all hotstrings which you parsed from ...
by RubbeH
15 Sep 2020, 09:05
Forum: Ask For Help
Topic: Create Hotstring from .txt-file. Topic is solved
Replies: 6
Views: 321

Re: Create Hotstring from .txt-file. Topic is solved

Use the Hotstring() function to dynamically create hotstrings during runtime, for example from your parsed text file elements (requires AHK v1.1.28+). I'm sorry but I don't understand how its done, the example script works pretty much as intended for creating hotstrings whilst running the script (a...
by RubbeH
15 Sep 2020, 07:59
Forum: Ask For Help
Topic: Create Hotstring from .txt-file. Topic is solved
Replies: 6
Views: 321

Create Hotstring from .txt-file. Topic is solved

Hello! I've been searching for an answer for a long time but I haven't managed to find one.. What I want to do is simply, in my script, I want to be able to write hotstrings in an .txt-file, read this file and create hotstrings from it. txt-file might be: btw = by the way ama = ask me anything woops...
by RubbeH
11 Sep 2020, 06:34
Forum: Ask For Help
Topic: Paste Script
Replies: 1
Views: 53

Re: Paste Script

Roiy wrote:
11 Sep 2020, 06:29
Any way I can make this press enter aswell?

Code: Select all

loop {
Send, ^v
Sleep 50
Send, {Enter}
Sleep, 15 * 60 * 1000
}
Edit: Probably want the Enter key pressed before Sleep..
by RubbeH
08 Sep 2020, 05:50
Forum: Ask For Help
Topic: timeout of a messagebox
Replies: 3
Views: 124

Re: timeout of a messagebox

F1::MsgBox, 0, title, This is the message, 2 Works for me, perhaps old version / need to run as admin? regarding countdown, I found a script here and modified it slightly: F2:: { Secs := 5 SetTimer, CountDown, 1000 MsgBox, 0, Title, This is the text %Secs%, %Secs% SetTimer, CountDown, Off Return Co...
by RubbeH
08 Sep 2020, 04:29
Forum: Ask For Help
Topic: Help with my gui
Replies: 3
Views: 154

Re: Help with my gui

Code: Select all

F3::
Gui, Destroy
Gui, Add, Text, ,Are you sure you want to exit this application?
Gui, Add, Button, g1, Continue
Gui, Show,
Return
I'm not really knowledgeable in ahk gui handling but I'd guess you need to destroy the gui before buliding a new one.

Go to advanced search