Search found 2683 matches

by jeeswg
Yesterday, 20:51
Forum: Ask For Help
Topic: Is this possible?
Replies: 3
Views: 35

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
Yesterday, 20:17
Forum: Ask For Help
Topic: GUI: control types and maximum string lengths Topic is solved
Replies: 1
Views: 45

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
Yesterday, 19:32
Forum: About This Community
Topic: Rule Poll
Replies: 40
Views: 1000

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
Yesterday, 18:18
Forum: Scripts and Functions
Topic: one-loop sorting of strings by their length
Replies: 22
Views: 568

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
Yesterday, 17:00
Forum: Ask For Help
Topic: Identify and hide (less common) border elements from a window
Replies: 1
Views: 23

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
Yesterday, 15:59
Forum: Ask For Help
Topic: Internet Explorer: check if element is visible
Replies: 0
Views: 14

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
Yesterday, 10:54
Forum: Ask For Help
Topic: Convert string in clipboard from Unicode to specific codepage
Replies: 19
Views: 235

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...
by jeeswg
Yesterday, 10:41
Forum: Scripts and Functions
Topic: Convert A_TickCount
Replies: 25
Views: 989

Re: Convert A_TickCount

- @Lateralus138: You're welcome to make a function from it, to change as little/as much as you want. - @iPhilip: Cheers. I remember a long time ago dealing with Excel and the regular use of Mod and Floor divide when dealing with time. - @noname: Nice, interesting Winapi function. - Although this was...
by jeeswg
Yesterday, 05:40
Forum: Ask For Help
Topic: Convert string in clipboard from Unicode to specific codepage
Replies: 19
Views: 235

Re: Convert string in clipboard from Unicode to specific codepage

Does this script work? The getting and/or the setting.

Code: [Select all] [Expand]GeSHi © Codebox Plus

by jeeswg
Yesterday, 04:57
Forum: Ask For Help
Topic: Convert string in clipboard from Unicode to specific codepage
Replies: 19
Views: 235

Re: Convert string in clipboard from Unicode to specific codepage

Does this work? q:: vText := "АаБбВвГг" ;vText := Clipboard vText := StrReplace(vText, "`r`n", "`n") SendInput, % "{Raw}" vText return - So: typing normally works, ctrl+c in Notepad and ctrl+v in the program doesn't work. - If you do ctrl+c in the program and ...
by jeeswg
22 Nov 2017, 20:31
Forum: Scripts and Functions
Topic: Convert A_TickCount
Replies: 25
Views: 989

Re: Convert A_TickCount

Here's an example script: E.g. for days: you count the number of days (24-hour blocks). E.g. for hours: you remove the days (any blocks of 24 hours), and count the number of hours. E.g. for minutes: you remove the hours (any blocks of 60 minutes), and count the number of minutes. E.g. for seconds: y...
by jeeswg
22 Nov 2017, 19:44
Forum: Ask For Help
Topic: Convert string in clipboard from Unicode to specific codepage
Replies: 19
Views: 235

Re: Convert string in clipboard from Unicode to specific codepage

@Helgef: What do you think is wrong with the w hotkey subroutine? The text displayed by the MsgBox was as expected, and the e hotkey subroutine confirms that it can be reversed.
by jeeswg
22 Nov 2017, 15:08
Forum: Ask For Help
Topic: Convert string in clipboard from Unicode to specific codepage
Replies: 19
Views: 235

Re: Convert string in clipboard from Unicode to specific codepage

So this program, you can type Cyrillic characters into it just fine. But you if you type Cyrillic characters into Notepad, copy those characters and paste into the program, the Cyrillic characters become question marks? Here's a script to try that uses WM_CHAR: q:: ;test send characters WinGet, hWnd...
by jeeswg
21 Nov 2017, 22:58
Forum: Ask For Help
Topic: RegDelete
Replies: 3
Views: 36

Re: RegDelete

You may need to run the script as Admin to modify certain parts of the registry. This code will reopen a non-admin script as admin. if !A_IsAdmin Run, % "*RunAs " (A_IsCompiled ? "" : A_AhkPath " ") Chr(34) A_ScriptFullPath Chr(34) Do report back with the error code. Ch...
by jeeswg
21 Nov 2017, 19:04
Forum: Ask For Help
Topic: MsgBox: big windows Topic is solved
Replies: 0
Views: 30

MsgBox: big windows Topic is solved

- I have a script that takes printscreens, and it took a printscreen of the active window, a MsgBox, and there were a lot of black pixels at the bottom. - It turns out that when you create a MsgBox with a lot of text, it creates a very large window. - I might either make a mod of the MsgBox function...
by jeeswg
21 Nov 2017, 10:55
Forum: Ask For Help
Topic: Maths puzzle Topic is solved
Replies: 7
Views: 146

Re: Maths puzzle Topic is solved

- The thing I find useful with this kind of question is this: - Imagine a horizontal line, underneath the diagonal line, and for each pixel of that horizontal line, get a vertical coordinate in the diagonal line. - Alternatively, imagine a vertical line, left of the diagonal line, and for each pixel...
by jeeswg
21 Nov 2017, 09:31
Forum: Ask For Help
Topic: RegEx to Match Expression With Quotation Marks
Replies: 12
Views: 154

Re: RegEx to Match Expression With Quotation Marks

- That text looks like JSON format. - If you end up doing more with JSON text from the YouTube API, you will find it a lot easier to use a JSON library to convert the string into an object, and refer to object keys. Something like var := obj.videoID . - It might sound complicated, but it actually ma...
by jeeswg
21 Nov 2017, 02:42
Forum: Ask For Help
Topic: GUI: identify control type
Replies: 0
Views: 29

GUI: identify control type

- Based on this link here: How to account for changing ClassNN info - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=40120 - Some AutoHotkey commands designed for controls that usually have the class 'ComboBox', also work for controls that have the class 'WindowsForms10.C...
by jeeswg
21 Nov 2017, 01:21
Forum: AutoHotkey v2 Development
Topic: scrap commands?
Replies: 7
Views: 271

Re: scrap commands?

Some of my concerns about keeping both notations are as follows: - Everything is doubled up in the documentation. What's the default notation, do we use the with/without parentheses version for this particular function. - Horrible scripts that interchange randomly between the 2 styles. - You write i...
by jeeswg
20 Nov 2017, 23:18
Forum: Ask For Help
Topic: StrPut: put in full or truncate Topic is solved
Replies: 0
Views: 37

StrPut: put in full or truncate Topic is solved

- I wanted to use StrPut to put a string into a variable of a certain size, if the string was too long, I wanted it to be truncated. I believe I've since found the right way to do this, which is explained lower down. - I found the way that StrPut works slightly surprising, if you do this: StrPut(...

Go to advanced search