Search found 46 matches

by SunAndSuch
12 Oct 2021, 08:52
Forum: Ask for Help (v1)
Topic: Hotstring, interfering with hotkey
Replies: 9
Views: 636

Re: Hotstring, interfering with hotkey

Right, well, still, the original code was working (for years) until I added the hotstring.
by SunAndSuch
12 Oct 2021, 03:01
Forum: Ask for Help (v1)
Topic: Hotstring, interfering with hotkey
Replies: 9
Views: 636

Re: Hotstring, interfering with hotkey

Oh, of course. I mistook ' for a " under testing. It works as it should when I press the correct key :crazy:. I've experimented a bit more and landed on just adding the dollar sign in front of my original hotkeys (and replacing the +':: with $":: ): $"::SendInput {U+0022} ;" $'::SendInput {U+0027} ;...
by SunAndSuch
11 Oct 2021, 07:50
Forum: Ask for Help (v1)
Topic: Hotstring, interfering with hotkey
Replies: 9
Views: 636

Re: Hotstring, interfering with hotkey

Thanks for the suggestion mikeyww. I have tried it out and it behaves as you are describing it. That means I still have to type something after the ' for it to appear, while I'd like it to act exactly like the regular US keyboard without dead keys. Speaking of which, I guess I could use the regular ...
by SunAndSuch
07 Oct 2021, 07:14
Forum: Ask for Help (v1)
Topic: Hotstring, interfering with hotkey
Replies: 9
Views: 636

Re: Hotstring, interfering with hotkey

I should probably have specified that I am using the "United States-international" keyboard layout (updated my question now), which has "dead keys". So yes, I press one quotation mark, then a space, or some other letter and another quotation mark appears. I am using these remappings to disable this ...
by SunAndSuch
07 Oct 2021, 03:50
Forum: Ask for Help (v1)
Topic: Hotstring, interfering with hotkey
Replies: 9
Views: 636

Hotstring, interfering with hotkey

Hi. I have a script with some keyboard remappings (hotkeys) and 1 hotstring in it. That hotstring is doing what is should, but it breaks some of the remappings - specifically the "dead keys". Other remappings still work fine. My script file looks like this: <^>!`::Send,{U+00F4} ;ô <^>!+`::Send,{U+00...
by SunAndSuch
24 Mar 2019, 08:53
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 835
Views: 616677

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

I am using SciTE in Linux. It's not SciTE4AutoHotkey, obviously, but it is very similar. In SciTE4AutoHotkey Ctrl + Tab cycles through open files in recently displayed order (and Ctrl + Tab + Tab goes to the next most recent and so on), while in SciTE it always switches to the next file to the right...
by SunAndSuch
25 Nov 2018, 13:34
Forum: Ask for Help (v1)
Topic: SetFormat deprecated, but not using it causes loss of precision?
Replies: 0
Views: 611

SetFormat deprecated, but not using it causes loss of precision?

How to avoid loss of precision when performing mathematical operations? As I understood from the documentation , AutoHotkey has internal precision 'about' 15 digits and if I don't use SetFormat,FloatFast, the precision should be maintained throughout the whole script. If I use SetFormat,FloatFast an...
by SunAndSuch
22 Nov 2018, 14:46
Forum: Ask for Help (v1)
Topic: Loop .ini file and separate values?
Replies: 3
Views: 1203

Re: Loop .ini file and separate values?

iniContent:= ( "[Template_Common] Phone=List Members=A B C Error=code [Template_Mail] Send=Email Reply=Email CC=Email [Template_Request] Call=Phone number" ) FileDelete,iniFile.ini FileAppend,% iniContent,iniFile.ini oIni:={} oKeys:={} IniRead,sectNames,iniFile.ini for a,b in oSectNames:=StrSplit(s...
by SunAndSuch
21 Nov 2018, 16:59
Forum: Ask for Help (v1)
Topic: Clipboard formats
Replies: 1
Views: 1109

Re: Clipboard formats

Well, I clearly should've used something like this for the second part, I guess: clip_SetHtmlString(htmlString) { vSize:=StrPut(htmlString,"CP0") VarSetCapacity(vData,vSize,0) StrPut(htmlString,&vData,vSize,"CP0") hBuf:=DllCall("kernel32\GlobalAlloc",UInt,0x42,UPtr,vSize,Ptr) pBuf:=DllCall("kernel32...
by SunAndSuch
21 Nov 2018, 09:26
Forum: Ask for Help (v1)
Topic: How replace clipboard content "Z:\!CLOUD\OneDrive\File.pdf" TO "%OneDrive%\File.pdf"
Replies: 6
Views: 1678

Re: How replace clipboard content "Z:\!CLOUD\OneDrive\File.pdf" TO "%OneDrive%\File.pdf"

Well, if you want it in a loop: ;Let's pretend clip is Clipboard clip:= ( "Z:\!CLOUD\OneDrive\File1.pdf Z:\!CLOUD\OneDrive\File2.pdf Z:\!CLOUD\OneDrive\File3.pdf Z:\!CLOUD\OneDrive\File4.pdf Z:\!CLOUD\OneDrive\File5.pdf" ) Loop,Parse,clip,`n,`r res.=RegExReplace(A_LoopField,"^.*\\OneDrive\\(.*)","%O...
by SunAndSuch
21 Nov 2018, 06:04
Forum: Ask for Help (v1)
Topic: How replace clipboard content "Z:\!CLOUD\OneDrive\File.pdf" TO "%OneDrive%\File.pdf"
Replies: 6
Views: 1678

Re: How replace clipboard content "Z:\!CLOUD\OneDrive\File.pdf" TO "%OneDrive%\File.pdf"

Maybe

Code: Select all

filePath:="Z:\!CLOUD\OneDrive\File.pdf"
MsgBox,% RegExReplace(filePath,"^.*\\OneDrive\\(.*)","%OneDrive%\$1")
by SunAndSuch
20 Nov 2018, 16:21
Forum: Ask for Help (v1)
Topic: Clipboard formats
Replies: 1
Views: 1109

Clipboard formats

Hello. I have the following code, which crashes and I don't know why. #NoEnv #MaxMem,1024 MsgBox,% Clipboard ;Shows plain text, copied from a webpage (as expected). html1:=clip_GetHtmlString() MsgBox,% html1 ;Shows html (as expected). clip_SetHtmlString(html1) MsgBox,% Clipboard ;Shows nothing (as e...
by SunAndSuch
01 Nov 2018, 07:28
Forum: AutoHotkey_H
Topic: How to correctly launch and terminate script using ahktextdll?
Replies: 7
Views: 3617

Re: How to correctly launch and terminate script using ahktextdll?

Did as you suggested, got the same error, clicked "Cancel", another error window popped up: --------------------------- AutoHotkey --------------------------- Error: CONTINUABLE EXCEPTION_ACCESS_VIOLATION Mouse and Keyboard hooks have been disabled. - Press yes to exit thread and continue execution....
by SunAndSuch
01 Nov 2018, 01:49
Forum: AutoHotkey_H
Topic: How to correctly launch and terminate script using ahktextdll?
Replies: 7
Views: 3617

Re: How to correctly launch and terminate script using ahktextdll?

Downloaded just now, but still the same problem. But I am not sure, if I'm terminating the scripts, run by ahktextdll correctly. Should I use "ExitApp", or just "Exit", or perhaps "ahkTerminate" somehow?
by SunAndSuch
31 Oct 2018, 16:23
Forum: Tutorials (v1)
Topic: jeeswg's characters tutorial
Replies: 15
Views: 22890

Re: jeeswg's characters tutorial

jeeswg, what does the if !!SubStr(1,0) ;vIsV1 in "PREPARE TEXT FOR STORING IN A VARIABLE" do? Does it mean, that a function like this: txt2var1(t){ t:=StrReplace(t,"``","````") t:=StrReplace(t,"`r","``r") t:=StrReplace(t,"`n","``n") if !!SubStr(1,0) t:=StrReplace(t,Chr(34),Chr(34) Chr(34)) else t:=S...
by SunAndSuch
31 Oct 2018, 03:21
Forum: AutoHotkey_H
Topic: How to correctly launch and terminate script using ahktextdll?
Replies: 7
Views: 3617

How to correctly launch and terminate script using ahktextdll?

Hi I am trying to use autohotkey.dll from AutoHotkey_H v1. I store the following script in an *.ahk file and run it (using the installed Autohotkey_L): ;---------------- Launcher for Script1 and Script2 ---------------- #SingleInstance,Ignore #Persistent Menu,tray,add,Launch Script1,txtScript1 Menu,...
by SunAndSuch
27 Oct 2018, 13:35
Forum: Ask for Help (v1)
Topic: Continuation section and expression assignment Topic is solved
Replies: 5
Views: 1524

Re: Continuation section and expression assignment Topic is solved

Thanks for your answers. I think I will go with the "PREPARE TEXT FOR STORING IN A VARIABLE" at the "jeeswg's characters tutorial" page. Verbatim string would be good, hope it will happen :).
by SunAndSuch
27 Oct 2018, 10:53
Forum: Ask for Help (v1)
Topic: Continuation section and expression assignment Topic is solved
Replies: 5
Views: 1524

Continuation section and expression assignment Topic is solved

Hi. I am trying to store a chunk of ahk code in a variable. When I use: var= (% ` Multiline text, containing: percent signs, backticks, brackets, braces, double quotes, parentheses etc. ) , it works fine. But can I achieve this using an expression assignment (like var:=, or var.=) and without having...
by SunAndSuch
05 Aug 2018, 13:06
Forum: Ask for Help (v1)
Topic: How can I get the text of the column header of a SysListView32? Topic is solved
Replies: 33
Views: 6479

Re: How can I get the text of the column header of a SysListView32? Topic is solved

jeeswg wrote:Many thanks for your tests.
You're welcome! And thank you for your help :). Now it works fine.

Go to advanced search