Search found 1460 matches

by TLM
17 Dec 2019, 14:08
Forum: Ask for Help (v1)
Topic: ,
Replies: 7
Views: 664

Re: My script crashing, what would it be?

Make sure you have a return after your hotkey: e:: { Send 4,3,,,,,,,,,,,,,,,,,,,4,3,,,,,,,,,,,,,,,,,,,4,3,,,,,,,,,,,,,,,,,,,4,3,,,,,,,,,,,,,,,,,,,4,3,,,,,,,,,,,,,,,,,,, sleep 10 } return Also for the repeating keys you can use a loop: e:: Loop 5 ; < how many times to send the same set of keystrokes ...
by TLM
17 Dec 2019, 09:34
Forum: Ask for Help (v1)
Topic: How to format file name with space
Replies: 3
Views: 427

Re: How to format file name with space

That's odd as a_space or " " work for me..
Perhaps try:

Code: Select all

FormatTime, DateStamp,, yyyy-MM-dd hh-mm-ss
FileName := "C:\Videos\" . DateStamp . ".mp4"
by TLM
17 Dec 2019, 06:45
Forum: Ask for Help (v1)
Topic: Trim multiple regions of an audio file at once
Replies: 9
Views: 1149

Re: Trim multiple regions of an audio file at once

I use to do something similar with SoX & AutoHotkey. It's a command line tool that can accurately multi trim, remove silent sections, split, merge etc. trim {position(+)} Cuts portions out of the audio. Any number of positions may be given ; audio is not sent to the output until the first position i...
by TLM
16 Dec 2019, 01:43
Forum: Ask for Help (v1)
Topic: Stuck with simple script to read excel rows and columns
Replies: 2
Views: 683

Re: Stuck with simple script to read excel rows and columns

there's also this object approach: wbk := ComObjActive("Excel.Application") a:: for each in wbk.ActiveSheet.UsedRange.Rows { for col in each.columns { if ( col.value ) { MsgBox % "Cell: " col.address( 0, 0 ) "`nValue: " col.value } } } return it's cleaner but can be slower if you have very long rows.
by TLM
15 Dec 2019, 21:43
Forum: Ask for Help (v1)
Topic: Stuck with simple script to read excel rows and columns
Replies: 2
Views: 683

Re: Stuck with simple script to read excel rows and columns

@Animare try this: wbk := ComObjActive("Excel.Application") a:: While ( A_Index <= wbk.ActiveSheet.UsedRange.Rows.Count ) { CurRow := A_Index, Cols := wbk.Cells( CurRow, 256 ).End( -4159 ).Column Loop % Cols { if ( wbk.Cells( CurRow, A_Index ).Value != "" ) { CellObj := wbk.Cells( CurRow, A_Index ) ...
by TLM
15 Dec 2019, 17:14
Forum: Ask for Help (v1)
Topic: Hiding the CapsLock Warning Topic is solved
Replies: 6
Views: 937

Re: Hiding the CapsLock Warning Topic is solved

hasantr , here's the ( much more accurate ) subclassing approach I originally was talking about. It targets the specific balloontip and removes it before it's displayed: Gui Add, Edit, x56 y64 w120 h21 +Number +Password +HwndHED SubclassControl( HED, "EditSubclass" ) ; placed here to catch preempti...
by TLM
13 Dec 2019, 11:04
Forum: Ask for Help (v1)
Topic: Base Classname
Replies: 13
Views: 2170

Re: Base Classname

i <3 this entire topic
by TLM
13 Dec 2019, 00:10
Forum: Off-topic Discussion
Topic: « What's on your mind? » Topic is solved
Replies: 4893
Views: 1394217

Re: « What's on your mind? » Topic is solved

gregster wrote:The "walrus operator", I like that :D
same ;)
by TLM
12 Dec 2019, 23:54
Forum: Scripts and Functions (v1)
Topic: Google Calendar API Oauth and Events List
Replies: 17
Views: 6820

Re: Google Calendar API Oauth and Events List

new interface @Tre4shunter? ooo hype :shock:
I use a Refresh Token in my web apps so I don't have to request a new Access Token all the time ;)
and you wouldn't want to exceed Google's 864,000 daily token request limit :lol:
by TLM
12 Dec 2019, 13:49
Forum: Ask for Help (v1)
Topic: AutoHotKey Script for creating a Directory with Date Topic is solved
Replies: 6
Views: 1170

Re: AutoHotKey Script for creating a Directory with Date Topic is solved

Is it possible to place a delay so that the script waits for the software I want to cut to load completely? Add Sleep for delays. Also, How do I use a variable to save the image Because the filename is a string, you have to assign the variable either 1 of 2 ways: ; In quotes, or as an expression Im...
by TLM
11 Dec 2019, 22:29
Forum: Ask for Help (v1)
Topic: Detecting Power Management events in Windows 10 Topic is solved
Replies: 11
Views: 2559

Re: Detecting Power Management events in Windows 10 Topic is solved

Tom Harding wrote:
11 Dec 2019, 22:03
...NumGet(lP+20,0,"UChar") is correct in my situation?
based on the struct definition, yes
by TLM
11 Dec 2019, 20:58
Forum: Ask for Help (v1)
Topic: Detecting Power Management events in Windows 10 Topic is solved
Replies: 11
Views: 2559

Re: Detecting Power Management events in Windows 10 Topic is solved

If I'm reading the struct right, DWORD contains the Data length at position 16, UChar contains the actual data at position 20. Is that correct? DWORD and UChar are data types. See Data Types for more info. The pointer + 20 ( number in lp ), is the offset of the struct member, or where the data valu...
by TLM
11 Dec 2019, 19:53
Forum: Ask for Help (v1)
Topic: Detecting Power Management events in Windows 10 Topic is solved
Replies: 11
Views: 2559

Re: Detecting Power Management events in Windows 10 Topic is solved

You beat me to it, excellent job :thumbup:

The only thing I'd change is the type to NumGet(lP+20,0,"uInt")
as a DWORD is an unsigned integer :)
by TLM
11 Dec 2019, 16:43
Forum: Ask for Help (v1)
Topic: Detecting Power Management events in Windows 10 Topic is solved
Replies: 11
Views: 2559

Re: Detecting Power Management events in Windows 10 Topic is solved

A great way to see if your system will support the event handler script would be to run it as is and change the power settings ( as that's what it was written for ).. If it works you should get a tooltip notification after changing your power settings.. I'll also try to tinker with it to see if I ca...
by TLM
11 Dec 2019, 16:39
Forum: Ask for Help (v1)
Topic: Need to link excel with meditech application
Replies: 1
Views: 299

Re: Need to link excel with meditech application

Rajan wrote:
11 Dec 2019, 13:43
...I tried a lot of other things but none of them worked.
Can you explain what you tried?
Also, it would be good if you could post an example and or images of the workbook/sheet.
Is meditech a web application, run a browser, a desktop application or something else?

Please be specific
by TLM
11 Dec 2019, 16:31
Forum: Ask for Help (v1)
Topic: AutoHotKey Script for creating a Directory with Date Topic is solved
Replies: 6
Views: 1170

Re: AutoHotKey Script for creating a Directory with Date Topic is solved

1st off when you're posting code, always use [cod e][ /code] tags! . ;) 2nd, it's a good idea to start a new topic for an additional question. While you can use AutoHotkey to automate SnippingTool.exe, it can be cumbersome and even unreliable. The good news is that there are existing scripts that ca...
by TLM
11 Dec 2019, 15:25
Forum: Ask for Help (v1)
Topic: Detecting Power Management events in Windows 10 Topic is solved
Replies: 11
Views: 2559

Re: Detecting Power Management events in Windows 10 Topic is solved

Don't quote me on this but... I get the feeling that this power scheme event handler is related to your question as it uses the same windows message. You may have to find the GUID for your power setting notification and add the appropriate GUID to the powerschemes object in the WM_POWERBROADCAST eve...
by TLM
11 Dec 2019, 06:02
Forum: Tutorials
Topic: Subclassing
Replies: 6
Views: 17761

Re: Subclassing

Hello @just me. That works perfectly, thanks as usual :)
I originally tried to detect this using

Code: Select all

NotAllowed(HWND, Msg, wParam, lParam, SubclassID, RefData) {

If Msg = 0x1503 || Msg = 0x1504
   msgbox % msg

;.........
but it didn't catch either message :?

I'll study this further ty

Go to advanced search