Search found 375 matches

by rommmcek
14 Nov 2018, 09:53
Forum: Scripts and Functions
Topic: Internet Explorer Element Spy (alternative to iWB2 Learner)
Replies: 57
Views: 21901

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

Re. iWB2 Learner: Unfortunately it seems, this code was not designed for IE8, even on IE9 the sourceIndex of elements in IE9 may not be reliable.
by rommmcek
17 Oct 2018, 06:34
Forum: Ask For Help
Topic: Get a script working without disabling Shift
Replies: 2
Views: 92

Re: Get a script working without disabling Shift

Above solution may trigger context menu by pressing LShift down. To block it try:

Code: Select all

#If mouseOverMaya()
	~LShift::return
#If

 mouseOverMaya() {
	MouseGetPos,,, WinId
	WinGetTitle, WinT, ahk_id %WinId%
	if (WinT="Autodesk Maya") ; Insert correct Win Title
		return true
 }
by rommmcek
17 Oct 2018, 04:02
Forum: Ask For Help
Topic: ControlSend pressing Shift during send?
Replies: 3
Views: 100

Re: ControlSend pressing Shift during send?

You might also try: Clipboard:="" Clipboard:=var:="start %windir%\explorer.exe" ClipWait, 1 ControlSend ,, ^v, ahk_exe cmd.exe Generally is this much faster then sending a string. P.s.: Since you're already using COM for accessing spreadsheet, you should attempt to use COM for Cmd too. Not as easy a...
by rommmcek
24 Sep 2018, 00:36
Forum: Scripts and Functions
Topic: Optical Zoom For The Web Browser Control
Replies: 8
Views: 1034

Re: Optical Zoom For The Web Browser Control

Tested on Win10 x64 120 Dpi (125% - scale factor), excelent work! For me [b]OpticalZoomReset[/b] has The special value , since zooming alone works by default via [b]Send, ^{WheelUp}[/b] & [b]Send, ^{WheelDown}[/b] . Off topic: To prevent Script Error warning I have to use: ... ;-- Navigate to a web ...
by rommmcek
22 Sep 2018, 10:33
Forum: Ask For Help
Topic: My Problem: check or un-check
Replies: 2
Views: 74

Re: My Problem: check or un-check

If you can identify the CheckBox control with WinSpy try:

Code: Select all

ControlGet, state, Checked,, ControlName, WinTitle
if !state
   ControlClick, ControlName, WinTitle
to get afterwards always checked state (delete [b]![/b] to get always unchecked state).
by rommmcek
17 Sep 2018, 11:21
Forum: Ask For Help
Topic: How to replace a value in a array? Topic is solved
Replies: 4
Views: 115

Re: How to replace a value in a array? Topic is solved

I think you are doing right. Just add return to close autoexecute section. Var:="111,222,333" SplitArray := StrSplit(Var, ",") msgbox % splitArray[2] return NumpadAdd:: SplitArray[2] := "777" MsgBox % SplitArray[2] var:="" for k, l in SplitArray var.=(k=SplitArray.Maxindex())?l:(l ",") MsgBox % Var ...
by rommmcek
09 Sep 2018, 14:04
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 88
Views: 4391

Re: GUI: piano keyboard

No need to be sorry! I'm happy with unconventional "bug fix" I made and even if memory leakage is real (have no knowledge to confirm that), I think for normal usage its neglectable.
Thanks for your valuable contribution!

bye!
by rommmcek
07 Sep 2018, 19:43
Forum: Ask For Help
Topic: Help: Adding 2 separate keys
Replies: 1
Views: 215

Re: Help: Adding 2 separate keys

Seems to me the simplest solution: #NoEnv #singleInstance, Force #MaxThreadsPerHotkey, 2 SetBatchLines, -1 DetectHiddenWindows, On CoordMode, Mouse, Screen CoordMode, Pixel, Screen CoordMode, Tooltip, Screen SetTitleMatchMode, 2 SetKeyDelay, 30,50 SetMouseDelay 10 SendMode Event key2send = a ;<-- ch...
by rommmcek
06 Sep 2018, 18:27
Forum: Scripts and Functions
Topic: Drag&Drop example PDF2TXT
Replies: 4
Views: 316

Re: PDF2TXT

@SOTE: Try this file.
If Pdf contains pure image as a text, it cannot be converted to [b].txt[/b] with Sumatra. You would need OCR!
by rommmcek
06 Sep 2018, 00:04
Forum: Ask For Help
Topic: Loop all files and remove bracketed text
Replies: 5
Views: 93

Re: Loop all files and remove bracketed text

Commas (quotations) are legal for the sake of white spaces in file name, I believe. But it turns out, that for some characters e.g. ampersand (probably brackets too), don't work.
Edit: Legal for passing a variable/parameter to CMD!!!
by rommmcek
05 Sep 2018, 23:15
Forum: Ask For Help
Topic: Loop all files and remove bracketed text
Replies: 5
Views: 93

Re: Loop all files and remove bracketed text

Your code works too, with a little bug fix:

Code: Select all

Loop, Files, *.srt
{
	SplitPath, A_LoopFileName,,,,finalname
	FileRead, var, % A_LoopFileName
	new_var := RegExReplace(var, "\[(.*?)\]")
	FileAppend, %new_var%, %A_WorkingDir%\%finalname%.txt
}
by rommmcek
05 Sep 2018, 22:51
Forum: Ask For Help
Topic: Loop all files and remove bracketed text
Replies: 5
Views: 93

Re: Loop all files and remove bracketed text

Try this:

Code: Select all

FileList:=""
Loop, Files, *.srt
	FileList = %FileList%%A_LoopFileName%`n
Loop, parse, FileList, `n
{
	FileRead, var, % A_LoopField
	new_var := RegExReplace(var, "\[(.*?)\]")
	FileAppend, %new_var%, %A_WorkingDir%\%A_LoopField%.txt
}
by rommmcek
04 Sep 2018, 05:21
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 88
Views: 4391

Re: GUI: piano keyboard

- The only problem I have with Hero is the old one: It corrupts my OS when using "Show hints on keys" & "Show preview when switching layouts". - Disabling the DllCall for LoadKeyboardLayout seemingly cured the problem. (later I noticed it only mitigates it) - Logical next step was disabling DllCall ...
by rommmcek
04 Sep 2018, 02:42
Forum: Ask For Help
Topic: pixel range problem Topic is solved
Replies: 3
Views: 96

Re: pixel range problem Topic is solved

How much black/dark items do you want? Just uncomment "limit the allowed brightness" and you'll get black and only one (the darkest) shade of gray: 0x010101 - providing you correct my typo to: (colorA<=0x010101). This is the limit you set in your code above. If you want to allow more shades just inc...
by rommmcek
03 Sep 2018, 18:27
Forum: Ask For Help
Topic: pixel range problem Topic is solved
Replies: 3
Views: 96

Re: pixel range problem Topic is solved

Color is pure Black, Gray or White if its components (RGB) are equal.
So try:

Code: Select all

if ((colorA>>16)=(colorA>>8&0xff))&&((colorA>>16)=(colorA&0xff)) ;&&(colorA<0x010101) ; limit the allowed brightness
	msgbox, a shade of black
by rommmcek
01 Sep 2018, 08:15
Forum: Scripts and Functions
Topic: [Game] Bulldozer
Replies: 46
Views: 3515

Re: [Game] Bulldozer

Great work continues! Don't have much time to play (currently at level 29 - btw.: I love "Automatically load last played level"), cause it's addictive. I did some tests though, here are my suggestions: In my opinion you don't need to set midi volume every time you play the sound. Once after Midi Sta...
by rommmcek
25 Aug 2018, 18:00
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 88
Views: 4391

Re: GUI: piano keyboard

That UIntP was rubbish!, it just disables DllCall.
Now I'm running the Hero w/o If statement.
by rommmcek
24 Aug 2018, 20:24
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 88
Views: 4391

Re: GUI: piano keyboard

Hi! if !HKL := DllCall("user32\LoadKeyboardLayout" AW ; This DllCall() seems to be the culprit , "Str", KLID , "UIntP", 0x80 ; KLF_NOTELLSHELL ; Type UInt seems to be wrong, UIntP or UInt* look better , "Ptr") HKL := currHKL P.s.: This might look like I became an DllCall Type expert, but no way, tha...
by rommmcek
11 Aug 2018, 06:39
Forum: Scripts and Functions
Topic: [Game] AHK Klondike Solitaire
Replies: 18
Views: 1038

Re: [Game] AHK Klondike Solitaire

Awesome work!
It seems you implanted a bug in 2.0. I had a lot of problems with that jack (didn't fit nowhere, looks like it is a king).
Solved it any way with new feature of yours (any card).

P.s.: When picking up a stack, I think, you should disable a mouse until the stuck is "loaded" to cursor.
by rommmcek
26 Jul 2018, 18:52
Forum: Scripts and Functions
Topic: Old scripts: Alarm Timer. Stopper. Quick Notes. Snipping Tool.
Replies: 33
Views: 1934

Re: Old scripts: Alarm Timer. Stopper. Quick Notes. Snipping Tool.

Hi!
There is a bug! (Run Quick Notes, Click Settings icon, Close Settings window by clicking red X on right top, Click Settings icon again)
bye!

Go to advanced search