Search found 39 matches

by dobbelina
12 Feb 2021, 19:12
Forum: Ask For Help
Topic: Select menu item...How do I specify a Window?
Replies: 6
Views: 139

Re: Select menu item...How do I specify a Window?

Can't you reach it with the Alt key?

Code: Select all

^p::
WinActivate, DaVinci Resolve by Blackmagic Design - 17.0.0
WinWaitActive, DaVinci Resolve by Blackmagic Design - 17.0.0
Send !f
return  
by dobbelina
08 Feb 2021, 18:52
Forum: Ask For Help
Topic: MsgBox AlwaysOnTop Inactive Topic is solved
Replies: 5
Views: 109

Re: MsgBox AlwaysOnTop Inactive Topic is solved

Or like this:

Code: Select all

Sleep, 300000
Progress,B2 fs18 c0 zh0  w200 h30 CWcf9797 cbBlack,You Are Notified
Sleep, 2000
Progress, off
reload

^Esc::ExitApp ; Ctrl+Esc to exit the script
by dobbelina
07 Feb 2021, 15:37
Forum: Ask For Help
Topic: Run script on startup not working
Replies: 11
Views: 198

Re: Run script on startup not working

The file you put in the startup folder should be the shortcut to the script file, not the script file itself.
by dobbelina
07 Feb 2021, 15:23
Forum: Ask For Help
Topic: open the same # browser tab in two different windows
Replies: 1
Views: 60

Re: open the same # browser tab in two different windows

Quick and dirty without polishing: F4:: Send, ^{l} ;Select url bar of active window Sleep, 100 Send, ^{c} ;Copy url Sleep, 100 Send, ^{n} ;Open new window WinWaitActive, Google - Mozilla Firefox ;This you have to change to whatever Chrome equivalent. Send, ^{l} ;Select url bar Sleep, 100 Send, ^{v} ...
by dobbelina
01 Feb 2021, 02:39
Forum: Ask For Help
Topic: Error in Run command Topic is solved
Replies: 24
Views: 2878

Re: Error in Run command Topic is solved

Nice it worked out.
I didn't have a computer to test on so a few hit & misses :mrgreen:
As a finish, try this:

Code: Select all

Run, %A_WinDir%\SysNative\soundrecorder.exe "/file outputfile.wav"
by dobbelina
31 Jan 2021, 20:39
Forum: Ask For Help
Topic: Error in Run command Topic is solved
Replies: 24
Views: 2878

Re: Error in Run command Topic is solved

What do you get if you try this:

Code: Select all

Run, %comspec% /c "%A_WinDir%\system32\soundrecorder.exe"
Or:

Code: Select all

Run, %comspec% /c "%A_WinDir%\system32\soundrecorder.exe /file outputfile.wav"
Or:

Code: Select all

Run, %comspec% /c "%A_WinDir%\SysNative\soundrecorder.exe /file outputfile.wav"
by dobbelina
31 Jan 2021, 19:44
Forum: Ask For Help
Topic: Error in Run command Topic is solved
Replies: 24
Views: 2878

Re: Error in Run command Topic is solved

A last solution is perhaps to use the 64 bit AHK version, or compile the script to 64 bit.
And then only use:

Code: Select all

run, SoundRecorder.exe
Dunno if this works, try to run this in the start/run dialog:
C:\Windows\SysWOW64\soundrecorder.exe /file outputfile.wav (It's directed to the 32 bit version)
by dobbelina
31 Jan 2021, 19:27
Forum: Ask For Help
Topic: Error in Run command Topic is solved
Replies: 24
Views: 2878

Re: Error in Run command Topic is solved

Try this instead: Go to Start,(or run), type soundrecorder /file outputfile.wav in the Start/run Search box, and then press ENTER. From what I understand you have now permanently changed it to the wav filetype. after this, run your original command: run, SoundRecorder.exe, C:\Windows\Sysnative And s...
by dobbelina
31 Jan 2021, 19:14
Forum: Ask For Help
Topic: Error in Run command Topic is solved
Replies: 24
Views: 2878

Re: Error in Run command Topic is solved

Try giving it a path.

Code: Select all

run, soundrecorder /file "C:\some folder\outputfile.wav", C:\Windows\Sysnative
by dobbelina
31 Jan 2021, 17:51
Forum: Ask For Help
Topic: Error in Run command Topic is solved
Replies: 24
Views: 2878

Re: Error in Run command Topic is solved

You can save in .wav format by starting the program with a parameter...

soundrecorder /file outputfile.wav
by dobbelina
31 Jan 2021, 13:46
Forum: Ask For Help
Topic: Remove SDH text between paranthesis in a subtitle file ?
Replies: 4
Views: 283

Re: Remove SDH text between paranthesis in a subtitle file ?

Added a file picker to mikeyww's code. FileSelectFile, file, 3, , Select Srt File, Subtitles (*.srt) if (file = "") { MsgBox, 48, Attention!, The user didn't select anything. return } FileRead, str, %file% FileRecycle, %file% FileAppend, % RegExReplace(str, "\h*\(.*?\)"), %file% Run, %A_WinDir%\Syst...
by dobbelina
30 Jan 2021, 21:25
Forum: Ask For Help
Topic: Error in Run command Topic is solved
Replies: 24
Views: 2878

Re: Error in Run command Topic is solved

Hi again, I'm having the same problem, but this time with a different file. Here's what I've tried: run, SoundRecorder.exe, C:\Windows\System32 and run, C:\Windows\System32\SoundRecorder.exe and the error "the system cannot find the file specified" error shows up again. This is Windows 7 64-bit. I'...
by dobbelina
30 Jan 2021, 03:02
Forum: Ask For Help
Topic: Help with zeros and Decimals
Replies: 5
Views: 131

Re: Help with zeros and Decimals

But mikeyww's is better :mrgreen:

Code: Select all

string := "-0.0032 "
string2 := "0.0032 "


Hallo := StrReplace(string, "0." , ".")
Hallo2 := StrReplace(string2, "0." , ".")
MsgBox, % Hallo
MsgBox, % Hallo2
by dobbelina
27 Jan 2021, 16:09
Forum: Ask For Help
Topic: ")" parameter doesn't work
Replies: 2
Views: 64

Re: ")" parameter doesn't work

In regex you have to escape that character with a backslash.

Code: Select all

stopOn := "\)"
by dobbelina
25 Jan 2021, 14:24
Forum: Ask For Help
Topic: Using an If...Else in a GUI
Replies: 3
Views: 56

Re: Using an If...Else in a GUI

This works: #NoEnv #Warn SendMode Input SetWorkingDir %A_ScriptDir% ^NumPad3:: ;options box MsgBox, This is the script that would happen before Prompt:="What kind of interaction is this?" Gui, Add, Text, , %Prompt% Gui, Add, Button, Default gInbound, &Inbound/Two-way Gui, Add, Button, gOutbound, &Ou...
by dobbelina
25 Jan 2021, 03:59
Forum: Ask For Help
Topic: checking for maximum allowable integer value Topic is solved
Replies: 12
Views: 206

Re: checking for maximum allowable integer value Topic is solved

What about this:

Code: Select all

n = 9223372036854775806

maxnum = 9223372036854775807  
minnum = -9223372036854775808

if (n >= maxnum || n <= minnum){
MsgBox, Outside allowed range
return
}
if (n >= maxnum || n <= "0")
MsgBox, Not allowed
else
MsgBox, allowed
by dobbelina
25 Jan 2021, 02:56
Forum: Ask For Help
Topic: checking for maximum allowable integer value Topic is solved
Replies: 12
Views: 206

Re: checking for maximum allowable integer value Topic is solved

Aha, that's the max integer number :lol:
Then this wont work.....

Code: Select all

n = 50
maxnum = 50

if (n >= maxnum + 1) || if (n <= "0")
MsgBox, Not allowed
else
MsgBox, allowed
by dobbelina
24 Jan 2021, 18:19
Forum: Ask For Help
Topic: checking for maximum allowable integer value Topic is solved
Replies: 12
Views: 206

Re: checking for maximum allowable integer value Topic is solved

Code: Select all

if (n >= maxnum) || if (n <= "0")
MsgBox, Not allowed range %n% 
else
MsgBox, Allowed range %n%

Go to advanced search