Search found 5164 matches

by jeeswg
Today, 02:22
Forum: AutoHotkey v2 Development
Topic: Objects
Replies: 5
Views: 45

Re: Objects

If you have any problems, DM me. (Nothing personal, but I just can't spend any more time debating this today.)
by jeeswg
Today, 00:26
Forum: AutoHotkey v2 Development
Topic: Objects
Replies: 5
Views: 45

Re: Objects

- @nnnik: Please don't post things like this: Maybe it would be better if you post ... in Ask for Help .... That would make explaining these things a little bit easier. - I presented things simply, but you have to look more deeply at what I've said to appreciate it. If you can come up with some cons...
by jeeswg
Yesterday, 22:50
Forum: Ask For Help
Topic: [ListView] How to force "LV_GetText()" function to get text longer than 8191 characters?
Replies: 3
Views: 53

Re: [ListView] How to force "LV_GetText()" function to get text longer than 8191 characters?

Did you try AccViewer?
Or: ControlGet, vText, List,, SysListView321, A
There are also these functions:
GUIs via DllCall: get/set internal/external control text - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=40514
by jeeswg
Yesterday, 22:11
Forum: AutoHotkey v2 Development
Topic: Objects
Replies: 5
Views: 45

Objects

- Thanks again. The material is very complex, and so the responses have been a bit slow. It might help if someone could summarise what new functionality is available, and if any old functionality is affected (breaking old scripts). - Here are my concerns re. the functionality of objects, taking into...
by jeeswg
Yesterday, 18:09
Forum: Ask For Help
Topic: does string look like a hotkey
Replies: 3
Views: 60

Re: does string look like a hotkey

- Very interesting, thanks very much swagfag. - Nice also how you've used the 'assert' function. - Btw did you find some example code in the source code or in an editor perhaps? - Btw you could count the ampersands like this, right? StrReplace(str, "&",, numAmpersands) - One thing I was curious abou...
by jeeswg
Yesterday, 17:21
Forum: Ask For Help
Topic: Replace 2 space characters with one
Replies: 6
Views: 64

Re: Replace 2 space characters with one

* ? and b0 are described here: Hotstrings - Definition & Usage | AutoHotkey https://autohotkey.com/docs/Hotstrings.htm My summary: * and ?: Hotstrings can be triggered without an ending character (*) and inside words (?). b0: Normally with hotstrings, you type the abbreviation manually, and AutoHotk...
by jeeswg
Yesterday, 16:27
Forum: Ask For Help
Topic: Replace 2 space characters with one
Replies: 6
Views: 64

Re: Replace 2 space characters with one

Perhaps this, but there may be some unanticipated drawback (or it might be fine). Cheers.

Code: Select all

:*?b0:  ::{Backspace}
by jeeswg
Yesterday, 10:36
Forum: Ask For Help
Topic: markdown to html anyone?
Replies: 1
Views: 45

markdown to html anyone?

Has anyone written a script to convert markdown to html?
I.e. so I can open md files via AutoHotkey. Thanks.
by jeeswg
Yesterday, 10:10
Forum: Ask For Help
Topic: Same Hotkey differently in Explorer or SaveAs dialogue
Replies: 6
Views: 81

Re: Same Hotkey differently in Explorer or SaveAs dialogue

I would do it like this. Cheers.

Code: Select all

#If WinActive("Save As ahk_class #32770 ahk_exe notepad.exe")
&& A_ComputerName = "asus"
q::
MsgBox, % "notepad save as"
return
#If

#If WinActive("Save As ahk_class #32770 ahk_exe wordpad.exe")
&& A_ComputerName = "asus"
q::
MsgBox, % "wordpad save as"
return
#If
by jeeswg
21 Oct 2018, 17:56
Forum: Ask For Help
Topic: Is there a means of validating a ControlSetText command?
Replies: 7
Views: 130

Re: Is there a means of validating a ControlSetText command?

- I think you need to describe the whole situation from start to finish. Consider mentioning the following: - So you press/click something, and if you do nothing, a popup comes and goes, and another popup comes and goes. - Do you ever have two popups visible at the same time? - Is it possible to do ...
by jeeswg
21 Oct 2018, 11:38
Forum: Ask For Help
Topic: does string look like a hotkey
Replies: 3
Views: 60

does string look like a hotkey

For conversion, I need a function that can report whether something looks like a hotkey. I'm asking in case anyone has any suggestions. E.g. LooksLikeHotkey("+^#!q") E.g. StrIsTypeHotkey("RAlt & Enter") ;before/after: q::MsgBox, % "hello" q::MsgBox("hello") Any little checks that can rule out someth...
by jeeswg
21 Oct 2018, 11:31
Forum: Gaming
Topic: [solved] Underscore becomes dash in console
Replies: 5
Views: 66

Re: Underscore becomes dash in console

You could try Send {Text}.

Code: Select all

SendInput, {Text}abc_def ;note: {Text} requires AHK v1.1.27+
by jeeswg
20 Oct 2018, 21:45
Forum: Ask For Help
Topic: case-insensitive searching in binary buffers
Replies: 0
Views: 47

case-insensitive searching in binary buffers

tl;dr I can do it, but I'm interested in ideas for the algorithm - I've been interested in having a function for case-insensitive searching in binary buffers. E.g. search a binary file for a string. - AFAIK there are no existing Winapi functions for searching for ANSI/UTF-8/UTF-16 strings, which can...
by jeeswg
20 Oct 2018, 20:09
Forum: Ask For Help
Topic: Is there a means of validating a ControlSetText command?
Replies: 7
Views: 130

Re: Is there a means of validating a ControlSetText command?

I've never had any problems with ControlSetText, so I'm wondering if this is really the solution to your problem, however, here's a custom function. q:: ControlGetText, vText, Edit1, A if (vText = "") MsgBox, % MyControlSetText("abc", "Edit1", "A") return MyControlSetText(vText, vControl:="", vWinTi...
by jeeswg
20 Oct 2018, 19:30
Forum: Bug Reports
Topic: escape characters issue
Replies: 1
Views: 55

escape characters issue

Generally it appears that text is read from left to right, and so: ``t is interpreted as `` then t and so appears literally as `t ``, is interpreted as `` then , and so appears literally as `, However semicolon appears to be an exception: ``; appears literally as ; I did not see any mention of this ...
by jeeswg
20 Oct 2018, 13:36
Forum: Ask For Help
Topic: 2nd Clipboard Topic is solved
Replies: 1
Views: 39

Re: 2nd Clipboard Topic is solved

Try this. Ctrl+Win+Num to store text (and restore the clipboard). Ctrl+Num to paste text (and restore the clipboard). Cheers. ^#1:: ;store selected text as variable ^#2:: ^#3:: ^#4:: ^#5:: vNum := SubStr(A_ThisHotkey, StrLen(A_ThisHotkey)) ClipSaved := ClipboardAll Clipboard := "" SendInput, ^c Clip...
by jeeswg
20 Oct 2018, 09:49
Forum: Ask For Help
Topic: Include files using variables
Replies: 2
Views: 44

Re: Include files using variables

Using information from the link above, try this:

Code: Select all

#Include \\10.1.1.111\AutoHotKeyScripts ;change #Include's working dir
#Include someScript.ahk ;include file from #Include's working dir
by jeeswg
20 Oct 2018, 08:49
Forum: Wish List
Topic: [Forum] Public edit history
Replies: 7
Views: 128

Re: [Forum] Public edit history

- One disadvantage is that if you edit a big post 100 times, that post would have to be stored 100 times. - Another disadvantage is that instead of being able to remove things yourself (e.g. accidentally including an email address), you have to ask mods/admins to assist you, and worse still, that ca...
by jeeswg
19 Oct 2018, 22:21
Forum: Ask For Help
Topic: Capture OutputDebugString
Replies: 6
Views: 196

Re: Capture OutputDebugString

Try the script here. Cheers.
retrieve OutputDebug text - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 76&t=58069
by jeeswg
19 Oct 2018, 22:14
Forum: Ask For Help
Topic: retrieve OutputDebug text
Replies: 0
Views: 53

retrieve OutputDebug text

tl;dr help improve my mostly-finished script that receives OutputDebug (OutputDebugString) text - I've been using #Warn in my scripts, and adding 'local' etc, to make my functions as usable as possible for other people. - A MsgBox for each of #Warn's warning is too unwieldy. #Warn's OutputDebug opti...

Go to advanced search