Search found 2213 matches

by jeeswg
Today, 21:11
Forum: Ask For Help
Topic: numbers in X.Xk back to numberical numbers
Replies: 3
Views: 26

Re: numbers in X.Xk back to numberical numbers

I've had a go at some RegEx for this, although to write '130.332k' would seem very unusual, in case you have a link or a copy of some original text. Perhaps it's the European style of writing numbers, where '.' means ','? But then you have '10.1k' example which would contradict this. Anyhow, I would...
by jeeswg
Today, 21:01
Forum: Ask For Help
Topic: Detect volume changes (commercials) in streaming audio/video?
Replies: 5
Views: 54

Re: Detect volume changes (commercials) in streaming audio/video?

I use this to check if the system is outputting audio. q:: ;check if current audio output is silent or not vAudioMeter := VA_GetAudioMeter() VA_IAudioMeterInformation_GetPeakValue(vAudioMeter, vPeakValue) MsgBox, % vPeakValue return Links: Vista Audio Control Functions - Scripts and Functions - Auto...
by jeeswg
Today, 20:49
Forum: Ask For Help
Topic: Check if any app is running as administrator Topic is solved
Replies: 4
Views: 192

Re: Check if any app is running as administrator Topic is solved

- This function is great, however, if AHK is not admin, and the window is admin, it throws an exception. - For this reason I've created a modified version of the function that returns blanks on failure, which suggests, but doesn't guarantee, that the window is admin. - Are there any other approaches...
by jeeswg
Today, 20:24
Forum: Ask For Help
Topic: Make Alt Gr key on UK keyboard function as second Alt key?
Replies: 3
Views: 29

Re: Make Alt Gr key on UK keyboard function as second Alt key?

My key says 'AltGr' and when I press it, AutoHotkey's key history records LControl and RAlt. I've been able to use hotkeys such as <^>!a and RAlt & a. That's the extent of my AltGr knowledge pretty much.

by jeeswg
Today, 20:14
Forum: Ask For Help
Topic: external process: get working directory (current directory)
Replies: 4
Views: 65

Re: external process: get working directory (current directory)

Haha you're here to practise your English, classic. Hmm, the comment about system processes, reminded me, I wanted a way to get the user name for a process. I've started a new thread here: process: get user name (like Task Manager) - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f...
by jeeswg
Today, 20:13
Forum: Ask For Help
Topic: process: get user name (like Task Manager)
Replies: 0
Views: 10

process: get user name (like Task Manager)

This works but only gets the user name if it's me, it doesn't get LOCAL SERVICE/NETWORK SERVICE/SYSTEM like Task Manager does. Note: to see more items in Task Manager, click 'Show processes from all users' at the bottom-left of the Processes tab. [EDIT:] It did show those strings if I ran the script...
by jeeswg
Today, 19:47
Forum: Ask For Help
Topic: external process: get working directory (current directory)
Replies: 4
Views: 65

Re: external process: get working directory (current directory)

This is really great, many thanks, and it doesn't need a machine code function.

You've been posting a lot of good stuff the last few months.
by jeeswg
Today, 16:09
Forum: Ask For Help
Topic: Make Alt Gr key on UK keyboard function as second Alt key?
Replies: 3
Views: 29

Re: Make Alt Gr key on UK keyboard function as second Alt key?

Does RAlt::Alt work for you? It seems to work for Alt+F4, but not for menu keys. Anyway, I do individual RAlt keys where needed rather than a general one e.g.: RAlt & F4:: SendInput, {RAlt Up}!{F4} return RAlt & Left:: ;internet explorer - tab back/forward SendInput, {RAlt Up}!{Left} return ...
by jeeswg
Today, 15:32
Forum: Ask For Help
Topic: Zeros at end of string being cut off when sending
Replies: 7
Views: 69

Re: Zeros at end of string being cut off when sending

Did you try SharpKeys, I think that's the utility I had in mind. By the way I would be cautious about using it. It's the only thing I can think of that I might not have already mentioned, or at least, you could investigate the registry keys it alters, without actually changing them. Another idea is ...
by jeeswg
Today, 15:17
Forum: Wish List
Topic: Simplified Format() Command
Replies: 2
Views: 39

Re: Simplified Format() Command

The options are: {} {Index} {:Format} {Index:Format} From experience, I think it might have been better to make it: {} {Index:} {Format} {Index:Format} It's far more common to specify a format than an index. At least for me personally, I've used Format hundreds of times, and haven't needed or wanted...
by jeeswg
Today, 14:21
Forum: Ask For Help
Topic: RichEdit controls: get/set text
Replies: 8
Views: 151

Re: RichEdit controls: get/set text

If anyone can help me with my set stream function that would be most appreciated. ================================================== Well done teadrinker, this is really good. It works on my Windows 7 version of WordPad, and on the Windows XP version that I also have. The example script writes to an...
by jeeswg
Today, 14:02
Forum: Ask For Help
Topic: external process: get working directory (current directory)
Replies: 4
Views: 65

external process: get working directory (current directory)

Can somebody help me get this to work? I.e. if possible so that x64/x32 AHK can get the working directory from x64/x32 external processes. Thanks. I tried it with AHK x32, on Notepad x64/x32, but it didn't work. [SOLVED]get other process's working dir - Page 2 - Ask for Help - AutoHotkey Community h...
by jeeswg
Today, 12:50
Forum: Ask For Help
Topic: Zeros at end of string being cut off when sending
Replies: 7
Views: 69

Re: Zeros at end of string being cut off when sending

I was going to say that it might be your zero key issue (if other methods didn't help). Have you tried any other forums?
by jeeswg
Today, 08:33
Forum: Scripts and Functions
Topic: UTF-8 ini files
Replies: 0
Views: 32

UTF-8 ini files

A workaround to create 'UTF-8 ini files'. Note: ANSI/Unicode ini files cannot handle certain characters, this would also affect 'UTF-8 ini files'. IniRead/IniWrite/IniDelete which are based on: GetPrivateProfileString function (Windows) https://msdn.microsoft.com/en-us/library/windows/desktop/ms7243...
by jeeswg
Today, 07:23
Forum: Bug Reports
Topic: Iniwrite append instead of modify value
Replies: 1
Views: 35

Re: Iniwrite append instead of modify value

It's because your text file has a UTF-8 BOM. Ini files can only handle ANSI or UTF-16. However, if the text is all ASCII, which it appears to be, a simple workaround would be to add a comment at the top of the file: ;my comment [main] Alternative solutions would be to save the file as 'ANSI' (if it ...
by jeeswg
Yesterday, 21:42
Forum: Tutorials
Topic: list of dll functions with parameter types for DllCall
Replies: 23
Views: 2632

Re: list of dll functions with parameter types for DllCall

Thanks very much jNizM and just me. Two queries: - Enum. From what I've heard enum is typically Int or UInt, (and can't be bigger than Int/UInt, but may be smaller?) and if any of the items in the enum are negative, then it must be of a signed type. I also hear that the system(?) decides what type i...
by jeeswg
Yesterday, 19:01
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 260
Views: 49629

Re: Suggestions on documentation improvements

Compared to other things I tried, AutoHotkey had the advantage of being both easy and powerful. - Some things are easy but not powerful, e.g. limited functionality (QBasic) or specific to a particular program (Excel VBA). - Traditional programming languages are often powerful, but not easy. But wors...
by jeeswg
Yesterday, 17:51
Forum: Scripts and Functions
Topic: convert coordinates between Client/Screen/Window modes
Replies: 0
Views: 50

convert coordinates between Client/Screen/Window modes

I have produced 6 functions to convert an (X,Y) pair between different coordinate modes (Client / Screen / Window). Note for XYWH coordinates, X/Y changes but W/H remains the same. Simpler: JEE_ClientToScreen/JEE_ScreenToClient JEE_ScreenToWindow/JEE_WindowToScreen Slightly longer (client to screen ...
by jeeswg
Yesterday, 17:36
Forum: Bug Reports
Topic: CoordMode needs a pause to update
Replies: 3
Views: 60

Re: CoordMode needs a pause to update

Thank you Helgef. But then does that mean that Sleep, 5 , as a workaround, will definitely always work? I found the following information: GetTickCount function (Windows) https://msdn.microsoft.com/en-us/library/windows/desktop/ms724408(v=vs.85).aspx The resolution of the GetTickCount function is li...
by jeeswg
Yesterday, 15:30
Forum: Bug Reports
Topic: CoordMode needs a pause to update
Replies: 3
Views: 60

CoordMode needs a pause to update

I was testing some code relating to CoordMode: client/screen/window, and noticed that A_CaretX and A_CaretY were not updating unless I added a pause after using the CoordMode command. Perhaps this is similar in nature to an issue where DetectHiddenWindows did not update immediately. DetectHiddenWind...

Go to advanced search