Search found 1060 matches

by rommmcek
11 Sep 2020, 19:56
Forum: Ask For Help
Topic: Wheeldown command is not consistent
Replies: 1
Views: 69

Re: Wheeldown command is not consistent

Try:

Code: Select all

^d::
    KeyWait, Ctrl ; start WheelDown only when Ctrl is released
    loop, 5 {
        send {wheeldown}
        Sleep, 100 ; increase/decrease as needed
    }
Return
by rommmcek
09 Sep 2020, 20:14
Forum: Gaming
Topic: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off
Replies: 189
Views: 23419

Re: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off

Sorry there were at least two typos (one of them critical)! Try: @echo OFF :: set process_name: set process_name=DMC-DevilMayCry.exe ::================================================================== ::Launch the App start "" "Texmod and Game Autolauncher.exe" :Loading timeout /t 5 tasklist|findst...
by rommmcek
09 Sep 2020, 14:35
Forum: Gaming
Topic: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off
Replies: 189
Views: 23419

Re: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off

except the 3rd readout is a 0 Was the output really exactly 41, 52, 0, 4874, 11264, 66 ? Try to comment 10'th line to look like rem set /a u=u & set /a v=v & set /a w=w & set /a x=x & set /a z=z and let me know what is the output, so we can see which number the script grabs (although we actually do...
by rommmcek
09 Sep 2020, 14:18
Forum: Gaming
Topic: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off
Replies: 189
Views: 23419

Re: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off

yeps works a charm ... Try this one (no guessing of load time): @echo OFF :: set process_name: set process_name=DMC-DevilMayCry.exe ::================================================================== ::Launch the App start "" "Texmod and Game Autolauncher.exe" :Loading timeout /t 5 tasklist|findst...
by rommmcek
06 Sep 2020, 11:05
Forum: Gaming
Topic: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off
Replies: 189
Views: 23419

Re: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off

For GPU first just run the code: @echo OFF cd /D "C:\Program Files\NVIDIA Corporation\NVSMI\" :GPU for /f skip^=6^ tokens^=1-3^ delims^=^| %%a in ('"nvidia-smi.exe"') do ( for /f "tokens=1-6 delims= " %%g in ("%%a") do set u=%%g & set v=%%h) & set w=%%j) & ( for /f "tokens=1-3 delims= " %%g in ("%%b...
by rommmcek
06 Sep 2020, 10:52
Forum: Gaming
Topic: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off
Replies: 189
Views: 23419

Re: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off

uhhhh no, its supposed to kill Texmod and Werfault ...which happens sometimes, once game exits not the game on startup Oh, sorry again, superficial reading! Hope "game exits" is right (not "game crashes"). Try: . . . TIMEOUT /t 30 :RUNNING timeout /t 5 tasklist|findstr DMC-DevilMayCry.exe > nul && ...
by rommmcek
04 Sep 2020, 20:17
Forum: Ask For Help
Topic: Simple Midi Message to Play a note Topic is solved
Replies: 21
Views: 2188

Re: Simple Midi Message to Play a note Topic is solved

If you're able to send Note On and Off, there's no reason you couldn't send other Midi events. MidiNoteOn(hMIDIOutputDevice, vChannel, vNote, vVelocity) { DllCall("winmm\midiOutShortMsg", "Ptr",hMIDIOutputDevice, "UInt",0x90 | vChannel | (vNote << 8) | (vVelocity << 16), "UInt") } MidiNoteOff(hMIDIO...
by rommmcek
04 Sep 2020, 12:26
Forum: Ask For Help
Topic: File text array to actual array? Topic is solved
Replies: 7
Views: 951

Re: File text array to actual array? Topic is solved

Now you have new function. Doesn't work neither, except does not throw an error. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior ...
by rommmcek
04 Sep 2020, 11:40
Forum: Scripts and Functions
Topic: Using Google Translate to automate text translation
Replies: 122
Views: 28103

Re: Using Google Translate to automate text translation

@ kairushinjuu : My hard work was just counting commans and brackets. Now we have a funciton to avoid this! Run script, Esc : next exemp, ^Esc or Close Gui: Exit script. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with d...
by rommmcek
04 Sep 2020, 11:35
Forum: Ask For Help
Topic: File text array to actual array? Topic is solved
Replies: 7
Views: 951

Re: File text array to actual array? Topic is solved

@ teadrinker : Isn't there a bug/typo/pasteEror? For me doesn't work for "flat" (non associative) arrays. Don't know Java, but I guess the condition should check for Object not for String ... Could you take a look please! Run script, Esc : next exemp, ^Esc or Close Gui: Exit script. #NoEnv ; Recomme...
by rommmcek
04 Sep 2020, 04:39
Forum: Ask For Help
Topic: Simple Midi Message to Play a note Topic is solved
Replies: 21
Views: 2188

Re: Simple Midi Message to Play a note Topic is solved

@ lmag : For Midi Out I'm using this from Klavier Hero : AW:= A_IsUnicode? "W": "A", A_CharSize:= A_IsUnicode? 2: 1 hWinMM:= DllCall("kernel32\LoadLibrary" AW, "Str", "Winmm.dll", "Ptr") NumDevs:= DllCall("Winmm\midiOutGetNumDevs"), sz:= 20+32*A_CharSize Loop, % NumDevs { VarSetCapacity(DevCaps, sz,...
by rommmcek
03 Sep 2020, 02:14
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 567
Views: 209951

Re: FindText - Capture screen image into text and then find it Topic is solved

Try either to comment the line like: ; #Include "D:\Documents\Lib\FindText.ahk"

or comment the function like:

Code: Select all

/*
;===== Copy The Following Functions To Your Own Code Just once =====


;--------------------------------
;  FindText - Capture screen image into text and then find it
…
by rommmcek
02 Sep 2020, 12:22
Forum: Ask For Help
Topic: WinMenuSelectItem Command is not working for opening Add Sub Title dialog box for VLC Media Player. Is there any remedy?
Replies: 9
Views: 220

Re: WinMenuSelectItem Command is not working for opening Add Sub Title dialog box for VLC Media Player. Is there any rem

This should improve reliability:

Code: Select all

WinActivate ahk_class QWidget ahk_exe vlc.exe
WinWaitActive ahk_class QWidget ahk_exe vlc.exe
SendInput, !t
WinWait ahk_class QPopup ahk_exe vlc.exe
SendInput, s
by rommmcek
31 Aug 2020, 17:16
Forum: Ask For Help
Topic: How can I paste text containing linebreaks Topic is solved
Replies: 7
Views: 122

Re: How can I paste text containing linebreaks Topic is solved

Try: ^!3:: init := "1. text for line 1 bla bla bla bla`r`n2. text for line 2 bla bla bla bla`r`n3. text for line 3 bla bla bla bla`r`n4. text for line 4 bla bla bla bla`r`n5. text for line 5 bla bla bla bla" paste(init) return Esc::ExitApp ; Exit script with Escape key Paste(text) { ClipSave := Clip...
by rommmcek
31 Aug 2020, 12:35
Forum: Gaming
Topic: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off
Replies: 189
Views: 23419

Re: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off

The only condition you have in the script is if process exists in the task list then kill it. Sorry, correct is: The only condition you have in the script is if DMC-DevilMayCry.exe exists in the task list then kill Texmod.exe and Werfault.exe . If this is what you want then the script should work.
by rommmcek
29 Aug 2020, 08:03
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 567
Views: 209951

Re: FindText - Capture screen image into text and then find it Topic is solved

Try: if (ok:=FindText(924, 617, 1024, 665, 0, 0, SpiralIcon)) { return } sleep, 500 if (ok:=FindText(889, 675, 1059, 723, 0, 0, Text)) { CoordMode, Mouse MouseGetPos, save123, save321 X:=ok.1.x, Y:=ok.1.y, Comment:=ok.1.id Click, %X%, %Y% sleep, 100 MouseMove, save123, save321 } or to be more consis...
by rommmcek
29 Aug 2020, 07:09
Forum: Gaming
Topic: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off
Replies: 189
Views: 23419

Re: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off

About GPU and Nvidia we are technically finished! You have only to adapt the script to run correctly for you and add the desired condition for killing crashed process. I don't know for sure from your report wich data is relevant for you. I assume it is 4874MiB (referring to your snapshot ) Besides c...
by rommmcek
29 Aug 2020, 06:49
Forum: Gaming
Topic: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off
Replies: 189
Views: 23419

Re: Request for a script that autostops commands etc. on app focus loss and continue on refocus from where it left off

The last script you posted has at least one obvious bug (there is no 'real' label). Should be: @echo OFF ::initialize vars and set process_name: set /a low=0 & setlocal enableDelayedExpansion & set process_name=DMC-DevilMayCry.exe set pn=%process_name:.exe=% ::=======================================...

Go to advanced search