Search found 2696 matches

by jeeswg
55 minutes ago
Forum: AutoHotkey v2 Development
Topic: conversion logic, v1 = -> v1 := -> v2, two-way compatibility
Replies: 108
Views: 18963

Re: conversion logic, v1 = -> v1 := -> v2, two-way compatibility

- Re. loops, you can use Explorer to list the files in a folder. 259-char path limit workarounds - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=26170&p=184682#p184682 - So now we have Loop, LoopParse, LoopRead (via FileRead and LoopParse) and LoopFiles all with two-...
by jeeswg
Yesterday, 23:17
Forum: Ask For Help
Topic: 259-char path limit workarounds
Replies: 8
Views: 643

Re: 259-char path limit workarounds

Here's another approach using objects: q:: ;list files in folder vDir1 := A_ScriptDir oShell := ComObjCreate("Shell.Application") vCount := oShell.Namespace(vDir1).Items.Count VarSetCapacity(vOutput, vCount*261 << A_IsUnicode) for oItem in oShell.Namespace(vDir1).Items ;if !oItem.IsFolder ...
by jeeswg
Yesterday, 22:24
Forum: Ask For Help
Topic: RegEx: change case of matching part to match needle list
Replies: 0
Views: 11

RegEx: change case of matching part to match needle list

I have a working solution for this, but I was curious if there was a better way. E.g. I would like to do this: send, abc sendinput, abc sleep, 100 ;to Send, abc SendInput, abc Sleep, 100 Here's an example script. There is a one-liner to convert to title case, and a four-liner (with two-liner variant...
by jeeswg
Yesterday, 21:38
Forum: Ask For Help
Topic: parsing AutoHotkey scripts
Replies: 0
Views: 14

parsing AutoHotkey scripts

I'm working on scripts to parse AutoHotkey scripts. DllCall converter/cleaner (e.g. x32 to x64/x32 two-way compatible) - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=6&t=31365 - Clean DllCall lines. - Clean NumGet/NumPut lines - Separate parameters in command/function lines...
by jeeswg
Yesterday, 21:15
Forum: Ask For Help
Topic: I need help with Controlsend
Replies: 1
Views: 28

Re: I need help with Controlsend

Some possibilities:
- Run AHK in admin mode.
-

Code: [Select all]GeSHi © Codebox Plus

ControlSend, ahk_parent, {Space}, ahk_id %swbpid%

-

Code: [Select all]GeSHi © Codebox Plus

ControlGetFocus, vCtlClassNN, ahk_id %swbpid%
ControlFocus, % vCtlClassNN, ahk_id %swbpid% ;this probably won't change the active window
ControlSend, % vCtlClassNN, {Space}, ahk_id %swbpid%
by jeeswg
Yesterday, 21:08
Forum: Ask For Help
Topic: ControlSend not sending keys correctly
Replies: 2
Views: 28

Re: ControlSend not sending keys correctly

- I tried your script, and I tried a variant with ControlSendRaw, and had the same issues, e.g.: 1vouch 1VOuch !vouch 1Vouch !VOuch !VOUch. - ControlSend/ControlSendRaw seems to have a problem with sending shift. - I use the WM_CHAR workaround in such a situation. Cheers. Unreliable Capitalization? ...
by jeeswg
Yesterday, 19:01
Forum: Ask For Help
Topic: Store the script folder into a variable. only folder and not full path!
Replies: 1
Views: 18

Re: Store the script folder into a variable. only folder and not full path!

AHK paths and dirs. Cheers. q:: SplitPath, A_WorkingDir, vWorkingDirName SplitPath, A_ScriptDir, vScriptDirName SplitPath, A_AhkPath,, vAhkExeDir SplitPath, vAhkExeDir, vAhkExeDirName MsgBox, % A_WorkingDir "`r`n" vWorkingDirName "`r`n`r`n" A_ScriptFullPath "`r`n" vScri...
by jeeswg
Yesterday, 16:10
Forum: Ask For Help
Topic: Always navigate to 3rd Tab (Details) in Photo Viewer
Replies: 4
Views: 57

Re: Always navigate to 3rd Tab (Details) in Photo Viewer

Does AHK have to be run as admin?
by jeeswg
Yesterday, 15:55
Forum: Ask For Help
Topic: SetTitleMatchMode, Regex
Replies: 3
Views: 49

Re: SetTitleMatchMode, Regex

Maybe you need the window criteria to be a little more specific: Privat ITP file (2015)1 - Excel Privat ITP file (2015)2 - Excel Both of your original window criteria, match both of those window titles, because the number 2015 contains both 1 and 2. Perhaps this will work: SetTitleMatchMode, RegEx I...
by jeeswg
Yesterday, 13:15
Forum: Ask For Help
Topic: how to click the first item in a listview?
Replies: 1
Views: 24

Re: how to click the first item in a listview?

To select the first item in a listview:

Code: [Select all]GeSHi © Codebox Plus

q::
ControlSend, SysListView321, {Home}, A
return
by jeeswg
Yesterday, 13:00
Forum: Ask For Help
Topic: Adding a song to a specific playlist in Spotify
Replies: 12
Views: 509

Re: Adding a song to a specific playlist in Spotify

In one thread recently, it was found that using ControlFocus before ControlSend, made ControlSend work when other times it would not work. Also, it appeared that doing ControlFocus in another window did not change the active window, or the focused control in the active window.
by jeeswg
Yesterday, 12:58
Forum: Ask For Help
Topic: Popup Text Menu
Replies: 11
Views: 180

Re: Popup Text Menu

I have various hotkeys for things. But for less common things, I use Win+F to bring up an InputBox for general things (mostly opening things), and Win+T to bring up an InputBox for text functions (that typically operates on the selected text). And I use short strings for each item. It's actually qui...
by jeeswg
Yesterday, 01:14
Forum: About This Community
Topic: Rule Poll
Replies: 50
Views: 1152

Re: Rule Poll

I don't know why exactly, but you've helped me put my finger on it. Sometimes people write pseudocode, and then say something like: 'I ran that, but it didn't work'. Of course it didn't work. I've updated my post: Rule Poll - Page 2 - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?...
by jeeswg
23 Nov 2017, 20:51
Forum: Ask For Help
Topic: Is this possible?
Replies: 8
Views: 115

Re: Is this possible?

- That's a great script, cheers. I've done a little mod, that returns the mouse to where it was. - Btw I believe that the CoordMode for the mouse is constantly reset to the default, so if the default was not screen, then you have to set it to screen in each hotkey subroutine. ~LButton:: CoordMode, M...
by jeeswg
23 Nov 2017, 20:17
Forum: Ask For Help
Topic: GUI: control types and maximum string lengths Topic is solved
Replies: 1
Views: 54

Re: GUI: control types and maximum string lengths Topic is solved

One piece of information: SB_GETTEXT message (Windows) https://msdn.microsoft.com/en-us/library/windows/desktop/bb760749(v=vs.85).aspx This message returns a maximum of 65,535 characters. If the text string is longer than that, it is truncated. I did some tests, the main conclusions were: - You can ...
by jeeswg
23 Nov 2017, 19:32
Forum: About This Community
Topic: Rule Poll
Replies: 50
Views: 1152

Re: Rule Poll

- @derz00: I checked some posts, what appears to happen is that if your post is at the bottom, you can delete the post, otherwise you can't. I.e. you can delete a post if there are no posts below it in the thread. - Similarly, you only see the 'Last edited by' text on a post if there are posts below...
by jeeswg
23 Nov 2017, 18:18
Forum: Scripts and Functions
Topic: one-loop sorting of strings by their length
Replies: 23
Views: 615

Re: one-loop sorting of strings by their length

Yes, the song is very good, it is pretty spectacular. I had it on repeat, it helped me do some coding the other day. How about these 2 (very short) songs? You could start a new thread. - Bottles of beer on the wall... [4 lines or less challenge] - AutoHotkey Community https://autohotkey.com/boards/v...
by jeeswg
23 Nov 2017, 17:00
Forum: Ask For Help
Topic: Identify and hide (less common) border elements from a window
Replies: 2
Views: 38

Re: Identify and hide (less common) border elements from a window

These might work, and can be tested on Notepad if you tick 'View, Status Bar'. q:: ;hide menu + status bar WinGet, hWnd, ID, A if !hMenu%hWnd% hMenu%hWnd% := DllCall("user32\GetMenu", Ptr,hWnd, Ptr) DllCall("user32\SetMenu", Ptr,hWnd, Ptr,0) Control, Hide,, msctls_statusbar321, A...
by jeeswg
23 Nov 2017, 15:59
Forum: Ask For Help
Topic: Internet Explorer: check if element is visible
Replies: 1
Views: 29

Internet Explorer: check if element is visible

I have a script where I'm trying to remove the bar at the top of Google Translate in Internet Explorer, by clicking a certain button. The script works, but it toggles, rather than hides, so I'm looking for a way to determine whether the element is hidden. I saw some ideas here but I'm not sure how t...
by jeeswg
23 Nov 2017, 10:54
Forum: Ask For Help
Topic: Convert string in clipboard from Unicode to specific codepage
Replies: 19
Views: 240

Re: Convert string in clipboard from Unicode to specific codepage

АаБбВвГг ;text that SVN reported АаБбВвГг ;what I get if I convert АаБбВвГг to UTF-8 bytes on my PC So I think we are dealing with UTF-8. - ControlGetText, vText, TRichEdit1, A Did this work? What did it show? - Yes Helgef, I was thinking we could press ctrl+c in Notepad, and inspec...

Go to advanced search