Search found 41 matches

by SunAndSuch
24 Mar 2019, 08:53
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 786
Views: 346578

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
Topic: SetFormat deprecated, but not using it causes loss of precision?
Replies: 0
Views: 308

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
Topic: Loop .ini file and separate values?
Replies: 3
Views: 447

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
Topic: Clipboard formats
Replies: 1
Views: 355

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
Topic: How replace clipboard content "Z:\!CLOUD\OneDrive\File.pdf" TO "%OneDrive%\File.pdf"
Replies: 6
Views: 691

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
Topic: How replace clipboard content "Z:\!CLOUD\OneDrive\File.pdf" TO "%OneDrive%\File.pdf"
Replies: 6
Views: 691

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
Topic: Clipboard formats
Replies: 1
Views: 355

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: 1086

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: 1086

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
Topic: jeeswg's characters tutorial
Replies: 11
Views: 8381

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: 1086

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
Topic: Continuation section and expression assignment Topic is solved
Replies: 5
Views: 543

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
Topic: Continuation section and expression assignment Topic is solved
Replies: 5
Views: 543

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
Topic: How can I get the text of the column header of a SysListView32? Topic is solved
Replies: 30
Views: 2935

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.
by SunAndSuch
05 Aug 2018, 09:01
Forum: Ask For Help
Topic: How can I get the text of the column header of a SysListView32? Topic is solved
Replies: 30
Views: 2935

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

Here are some tests I have done. The result of: Loop,% (oRes:=JEE_LVGetColOrder(hCtl)).Length() vRes.=oRes[A_Index] "`t" ...is in the tooltip above each header. I have reordered (manually, dragging by mouse) the columns and then run the code again. Sometimes, the result didn't match the new column o...
by SunAndSuch
02 Aug 2018, 16:50
Forum: Ask For Help
Topic: How can I get the text of the column header of a SysListView32? Topic is solved
Replies: 30
Views: 2935

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

Are you able to determine which column was clicked? No, that's what I am trying to do with the RECT thing and functions from jeeswg. Try this: I don't know how to use your code for the external window. How do I use a hotkey instead of WM_LBUTTONDOWN? I bet it's not like this? #SingleInstance Force ...
by SunAndSuch
02 Aug 2018, 00:34
Forum: Ask For Help
Topic: How can I get the text of the column header of a SysListView32? Topic is solved
Replies: 30
Views: 2935

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

Are you using x32 or x64? x64. Does it have 18 columns? Yes. Does it work on any other listview controls? Here with "Task Manager": SHhwnd:="0x10678" ;SysHeader321 LVhwnd:="0x30674" ;SysListView321 res.="""JEE_LVHGetText:""`r`n"JEE_LVHGetText(SHhwnd) "`r`n`r`n""JEE_LVGetColOrder:""`r`n" oColOrd:=JE...
by SunAndSuch
01 Aug 2018, 15:32
Forum: Ask For Help
Topic: How can I get the text of the column header of a SysListView32? Topic is solved
Replies: 30
Views: 2935

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

Now that makes sense. But

Code: Select all

oColOrd:=JEE_LVGetColOrder(LVhwnd)
Loop,18
	res.=oColOrd[A_Index] ","
gives res = "1,11,3,4,8,5,6,1,1,1,7864321,3145780,3145777,1,7864321,53,3670017,1,"

Go to advanced search