topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday March 19, 2024, 4:24 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - highend01 [ switch to compact view ]

Pages: [1] 2 3 4 5 6 ... 8next
1
Post New Requests Here / Re: Help tweak an AHK script
« on: May 04, 2022, 01:38 AM »
myURLs =
(
d
e
z
)

WinActivate, ahk_exe chrome.exe
Sleep, 3000 ;Time to move focus to Chrome
Send, +!,

Loop, Parse, myURLs, `n
{
    SendInput, ^l
    Sleep, 750
    SendInput, % A_LoopField
    Sleep, 1000
    SendInput, {ENTER}
    Sleep, 2000
    SendInput, {ENTER}
    Sleep, 3000
    SendInput, {ENTER}
    Sleep, 2000
}

2
I'd recommend Clibor: https://chigusa-web.com/en/

3
Developer's Corner / Re: Code signing certificate?
« on: January 19, 2022, 03:05 AM »
I've ordered a new 3 year Comodo code signing certificate via https://codesigncert.com/ on the black friday deal for 149 $. Ordering was easy but the process to get the certificate issued later on (done by sectigo.com) was a real nightmare. Had to open a ticket and on each new mail (waiting time: 2-3 up to 7 days) I had to deal with a different support person who (ofc) didn't read the previous conversation, ignoring the documents I had attached, ...). In the end they issued the certificate but not with the data that I had provided in the first place. Company name was wrong, department entry was missing, city was misspelled. I had luck that the technical support sent me a mail where I was able to correct the bad entries and I finally got the certificate that I wanted. Took 6 weeks overall.

Always remember: You get what you've paid for :down:

4
Post New Requests Here / Re: Request - file path collector program
« on: January 18, 2022, 12:37 PM »
I assume it's a Phyton script, with no compiled exe.

? It's a program written in Pascal and it obviously has a downloadable .exe (https://github.com/H...thCollector/releases)^^

5
General Software Discussion / Re: BitTorrent Sync 2.0 Sucks!
« on: October 24, 2021, 08:34 AM »
Thanks!

6
General Software Discussion / Re: BitTorrent Sync 2.0 Sucks!
« on: October 22, 2021, 02:43 AM »
@Deozaan

http://syncapp.bittorrent.com/1.4.110/

doesn't work (anymore?), do you still have a copy of BTSync 1.4.110 lying around, that you could share?

7
I've tested a few now and settled with "FolderChangesView"
It works absolutely fine and creates files like:
D:\dst\NobelB_BT_21.50.1.1.exe
which is the bluetooth driver...

https://www.nirsoft....er_changes_view.html

If anyone is wondering: This is the necessary setup:
1.png

Notes:
FastCopy is not installed but portable
The destination (/to=<path>) doesn't need to exist, FolderChangesView will create it automatically

8
Hi,

I've got a new notebook, a Huawei MateBook D14.

Not all drivers are available for download at Huawei's site :-/

To get and install all of them you can use their software "PC Manager" (which I seriously don't want to use, at least, not twice!).

The problem is: When the software downloads the drivers it doesn't keep them so you can copy them over manually.

So: Has anybody used a software that is able to watch a folder (including subfolders) for new files and once they exist (fully) copy them over to a target folder automatically?

C:\ProgramData\Comms\PCManager\DriverUpgrade\Update\Downloaded\
This folder is used for storing the downloaded drivers temporarily

I need to watch (only) this one (and all created subfolders) for new .exe files.

And once a new file is stored there it is e.g. copied to
D:\dst\<new file.<ext>>

It needs to do the copying immediately so no "scan a folder every 5 seconds"...

Any suggestions (something that you've used personally and worked fine for such a usecase)?

Freeware + portable preferred but I'm willing to install it (once) and would even pay something for it...

9
Coding Snacks / Re: [Solved] Adjust Subtitle (SRT) Timestamps
« on: December 21, 2020, 01:54 AM »
It didn't like the linebreaks in your j.srt file, hence the output
The timestamp you're using on the command line doesn't exist in the file so I've changed the logic to:
It begins to shift times beginning with the first timestamp that is larger (or equal to) than the one you're giving on the command line.
Before it was: Once the given timestamp matches one in the file, begin to shift from there...

So with "00:34:09,263" it will turn this (from j.srt):
304
00:33:21,776 --> 00:33:25,361
No! I have lice.

305
00:35:17,846 --> 00:35:20,847
We'll sing again together,
just like before.

into this (clipboard):
304
00:33:21,776 --> 00:33:25,361
No! I have lice.

305 -> These (and all following) timestamps will be shifted by -95 seconds
00:33:42,846 --> 00:33:45,847
We'll sing again together,
just like before.

10
Coding Snacks / Re: [Solved] Adjust Subtitle (SRT) Timestamps
« on: December 20, 2020, 12:32 PM »
Show me the exact command line you've used and a link to the .srt file to download it, please.

11
Coding Snacks / Re: Adjust Subtitle (SRT) Timestamps
« on: December 20, 2020, 08:00 AM »
Something like this should work...

It needs to be invoked via command line parameters:
"Adjust .srt times.exe" "D:\1.srt" "00:00:04,049" 200

Arg 1: The .srt file to parse
Arg 2: The first (from) timestamp where the time shifting should begin
Arg 3: The amount of time in milliseconds (either positive or negative) to shift
          If you need a shifting of multiple seconds, e.g -2.3 -> -2300 ms, use "-2300"

This is the content of a test .srt file:
1
00:00:00,230 --> 00:00:02,939
hi this is Roger in Finland and today

2
00:00:02,939 --> 00:00:04,049
we're gonna take a look at how to add

3
00:00:04,049 --> 00:00:05,730
subtitles to your videos either for

10
00:00:15,990 --> 00:00:18,660
[Music]
not playing loud
zzzZZZzzz

11
00:00:18,660 --> 00:00:21,180
solution is to go through generate an

12
00:00:21,180 --> 00:00:23,160
srt subtitles file it can be done



and this is what gets copied to the clipboard:
1
00:00:00,230 --> 00:00:02,939
hi this is Roger in Finland and today

2
00:00:02,939 --> 00:00:04,049
we're gonna take a look at how to add

3
00:00:04,249 --> 00:00:05,930
subtitles to your videos either for

4
00:00:16,190 --> 00:00:18,860
[Music]
not playing loud
zzzZZZzzz

5
00:00:18,860 --> 00:00:21,380
solution is to go through generate an

6
00:00:21,380 --> 00:00:23,360
srt subtitles file it can be done


12
@oblivion

Do you think you could recommend a Wacom Intuos Art S for desktop usage only (no drawing or any kind of digital art, only navigation, file selection, left and right clicking in browsers, file manager, etc.)?
I would use the pen if necessary but the Art reacts to finger movement as well which would be a big plus for me, although I don't know how easy it would be to e.g. hit a close button of a window with the fingertip when not using the pen...

Thanks!

To all others using a (Logitech) mouse/trackball:
I use a M570 since about 6 years. It's my second one after the first fell apart completely after 4 years. I had the same problem that the left and right micro switches began to fail after a short time (not even a year). I've ordered replacement switches: Omron D2F-01F - 0662RAE

When my first M570 died (the Omron switches were already in since 3 years) I thought: Ok, I still have 6 micro switches left (bought 8 in the first place) and I could just use two of them for the new device but what I finally did was: Solder my first two off of the old device and resolder them back into the new one. The new one was _brand new_ (I had just received it) but before I began to use these M570 trackballs I've had lost a lot of Logitech mices because of the micro switch issues) so I knew it would only be a question of time before the new one would fail as well.
Overall I'm using my first Omron pair since 5 years now and I'm using my trackball about 10-14 hours daily. One can still buy quality parts so I'd say: Go for Omron switches :Thmbsup:

13
You Kokomite link leads to Kododea (a screen magnifier tool)...

14
Post New Requests Here / Re: [REQ] VPN Gate OVPN Configs Downloader
« on: January 23, 2020, 11:53 AM »
You have the sourcecode^^

Use a progress bar instead and move the buttons...

15
Use AHK and create a simple GUI for what you need...

16
The .png files you've attached to your previous post are working fine as well.

AHK v1.1.32.00

17
pngs gives error so attached ico files
The three .png files I'm using here are working perfectly fine...

18

#NoEnv
#SingleInstance force
#Persistent

Gosub, Check
SetTimer, Check, 5000
return


Check:
result := Runret("cmd /c netsh wlan show interfaces")
RegExMatch(result, "im)channel\s+:\s*(?P<Channel>\d{1,3})", match)

If (matchChannel >= 1 && matchChannel <= 14)
Menu, Tray, Icon, %A_ScriptDir%\_green.png
Else If (matchChannel >= 34)
Menu, Tray, Icon, %A_ScriptDir%\_red.png
Else
Menu, Tray, Icon, %A_ScriptDir%\_grey.png

return


; http://www.autohotkey.com/board/topic/15455-stdouttovar/page-7
Runret(cmd, params="") {
; Assemble command + parameters
cmd := (params) ? cmd . " " . params : cmd

DllCall("CreatePipe", "Ptr*", hStdInRd , "Ptr*", hStdInWr , "Uint", 0, "Uint", 0)
DllCall("CreatePipe", "Ptr*", hStdOutRd, "Ptr*", hStdOutWr, "Uint", 0, "Uint", 0)
DllCall("SetHandleInformation", "Ptr", hStdInRd , "Uint", 1, "Uint", 1)
DllCall("SetHandleInformation", "Ptr", hStdOutWr, "Uint", 1, "Uint", 1)

; Fill a StartupInfo structure
if A_PtrSize = 4 ; We're on a 32-bit system
{
VarSetCapacity(pi, 16, 0)
sisize := VarSetCapacity(si, 68, 0)
NumPut(sisize,    si,  0, "UInt")
NumPut(0x100,     si, 44, "UInt")
NumPut(hStdInRd , si, 56, "Ptr") ; stdin
NumPut(hStdOutWr, si, 60, "Ptr") ; stdout
NumPut(hStdOutWr, si, 64, "Ptr") ; stderr
}
else if A_PtrSize = 8 ; We're on a 64-bit system
{
VarSetCapacity(pi, 24, 0)
sisize := VarSetCapacity(si, 96, 0)
NumPut(sisize,    si,  0, "UInt")
NumPut(0x100,     si, 60, "UInt")
NumPut(hStdInRd , si, 80, "Ptr") ; stdin
NumPut(hStdOutWr, si, 88, "Ptr") ; stdout
NumPut(hStdOutWr, si, 96, "Ptr") ; stderr
}

DllCall("CreateProcess" , "Uint", 0 ; Application Name
, "Ptr", &cmd ; Command Line
, "Uint", 0 ; Process Attributes
, "Uint", 0 ; Thread Attributes
, "Int", True ; Inherit Handles
, "Uint", 0x08000000 ; Creation Flags (0x08000000 = Suppress console window)
, "Uint", 0 ; Environment
, "Uint", 0 ; Current Directory
, "Ptr", &si ; Startup Info
, "Ptr", &pi) ; Process Information

DllCall("CloseHandle", "Ptr", NumGet(pi, 0))
DllCall("CloseHandle", "Ptr", NumGet(pi, A_PtrSize))
DllCall("CloseHandle", "Ptr", hStdOutWr)
DllCall("CloseHandle", "Ptr", hStdInRd)
DllCall("CloseHandle", "Ptr", hStdInWr)

VarSetCapacity(temp, 4095)
size := 0
Loop
{
result := DllCall("Kernel32.dll\ReadFile", "Uint", hStdOutRd, "Ptr", &temp, "Uint", 4095, "UintP", size, "Uint", 0)
if (result = "0")
break
else
output := output . StrGet(&temp, size, "CP850")
}
DllCall("CloseHandle", "Ptr", hStdOutRd)
return output
}

19
Write a simple .ahk script which executes
netsh wlan show interfaces
and parses the content afterwards.

Regarding capturing the cmd output, e.g.: https://autohotkey.c...5-stdouttovar/page-7

If Channel is 1-14 you're on 2,4 GHz and if it's 36+ (both values depend on country, look at e.g. https://en.wikipedia...(802.11a/h/j/n/ac/ax)
you're on 5 GHz.

~15 lines of code, 3 16x16 px .png / .ico files (e.g. grey = no wifi connection, green = 2.4 GHz, red = 5 GHz, or whatever you'd prefer)...

Works at least on Win 10...

20
General Software Discussion / Re: looking for cheap email hoster
« on: January 13, 2020, 01:24 AM »
www.SneakEmail.com: Sorry, account creation is currently disabled

Are there any other recommendable services like this?

21
set /p snum="Enter Job Number: "
>%snum%.txt echo Job Number is %snum%
start "" notepad %snum%.txt
>>%snum%.txt echo Next line
>>%snum%.txt echo Last line


22
Post New Requests Here / Re: [REQ] VPN Gate OVPN Configs Downloader
« on: December 05, 2019, 04:05 AM »
With a download progress bar...

2019-12-05_110557.png

23
Post New Requests Here / Re: [REQ] VPN Gate OVPN Configs Downloader
« on: December 03, 2019, 06:21 AM »
Not heavily tested but the basics are working...

You're free to modify it, but reference to my user account name here if you do this...

After you've downloaded the servers (via the belonging button), select one or more (via holding shift or ctrl) in the listview and click on the "Save config(s)" button.
You may want to choose a different path via the "Choose" button first, because the C:\ root may not be writable without appropriate permissions...

24
You can't send "keystrokes" over a network, you need to send "messages" (to a program that listens to them on each client pc).
E.g. with https://autohotkey.c...on-of-winsock-tcpip/
If that still works...

25
#NoEnv
#SingleInstance force
SetWorkingDir %A_ScriptDir%
FileEncoding UTF-8
SetBatchLines, -1

drive := "C:\"
file  := "Dummy.txt"
path  := drive . file
text  := "Dummy"


if FileExist(drive) {
    Loop {
        EmptyFile(path)
        FileAppend, % text, % path
    }
}

EmptyFile(file) {
    hFile := DllCall("CreateFile", Str, file, UInt, 0x40000000, UInt, 3, UInt, 0, UInt, 5, UInt, 0, UInt, 0)
    DllCall("CloseHandle", UInt, hFile)
    return hFile > 0 ? 1 : hFile
}

But ofc this empties the file before it gets overwritten...

OpenFile() would impose too many problems (no unicode, no > 128 file path length...)

Pages: [1] 2 3 4 5 6 ... 8next