Search found 509 matches

by noname
15 Jan 2018, 07:29
Forum: Ask For Help
Topic: Extract line number from clipboard / text file.
Replies: 4
Views: 430

Re: Extract line number from clipboard / text file.

Code: Select all

Loop, Parse, clipboard, `n,`r
Probably you solved it already :)
Greetings,
by noname
15 Jan 2018, 06:50
Forum: Ask For Help
Topic: Extract line number from clipboard / text file.
Replies: 4
Views: 430

Re: Extract line number from clipboard / text file.

Try to debug by running the code to see what whent wrong.

Code: Select all

F11::

Send ^a
Send ^c

string := "Subtotal"

Loop, Parse, clipboard, `r`n
{
If A_loopfield contains %string%
LineNum := A_Index
l .= A_Index "    "   A_LoopField "`n"
}
MsgBox linenumber= %LineNum%`n**********************`n%l%
return
by noname
15 Jan 2018, 06:31
Forum: Scripts and Functions
Topic: Universal_Searcher - use Prefixes to do custom searches On YouTube, Google, Amazon, local files etc
Replies: 8
Views: 1703

Re: Universal_Searcher - use Prefixes to do custom searches On YouTube, Google, Amazon, local files etc

https://i.imgur.com/no6DLui.png Here is the translator code i use, i do not know where i got the code snippets from ( maybe RUNIE ? ) there are several on the forum. #numpadadd:: if strlen(clipboard)<100 MsgBox,,translate, % clipboard "`n"GoogleTranslate(clipboard) return GoogleTranslate(str, from ...
by noname
15 Jan 2018, 05:58
Forum: Ask For Help
Topic: Need help with XML parse
Replies: 2
Views: 613

Re: Need help with XML parse

There must be a better way but the problem is the DTD and namespace declaration , i can prevent the DTD but not the namespace . If you just remove the line it works but i hope some better informant forum user will give a "real" solution :) <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lan...
by noname
14 Jan 2018, 15:24
Forum: Scripts and Functions
Topic: Universal_Searcher - use Prefixes to do custom searches On YouTube, Google, Amazon, local files etc
Replies: 8
Views: 1703

Re: Universal_Searcher - use Prefixes to do custom searches On YouTube, Google, Amazon, local files etc

Very nice ! for my use i will make some changes ( if you do not mind :) ).Using the prefixes is quite good but i will do with less options and also for the translate i prefer not to open a browser window but have the translation direct in a tooltip or GUI using google api. I will take a closer look ...
by noname
14 Jan 2018, 09:22
Forum: Ask For Help
Topic: How do I get ImageSearch to do another search? Topic is solved
Replies: 2
Views: 304

Re: How do I get ImageSearch to do another search? Topic is solved

Are you sure the code stopped and is not in the second loop? Try with a tooltip that gives the loop count to be sure. Be aware that you are using coordinates relative to the active window , if the first click changes the active window ....well as a kami sama you should know what happens next ! examp...
by noname
13 Jan 2018, 05:31
Forum: Scripts and Functions
Topic: stickies add_menu set as wallpaper only win10
Replies: 0
Views: 316

stickies add_menu set as wallpaper only win10

https://i.imgur.com/qPDvJL4.png For software http://www.zhornsoftware.co.uk/stickies/ and only for win10 ! Adds a menu item to every TitleBar RightClick_menu to set the image as wallpaper , it needs to start after sticky.exe has started to request OnMessage support. #noenv SetTitleMatchMode, slow D...
by noname
13 Jan 2018, 04:52
Forum: Ask For Help
Topic: Checking for newline
Replies: 4
Views: 548

Re: Checking for newline

https://i.imgur.com/JkSbcCR.png You can try this but shift+left_arrow does not stop on a space when i tried it on my editor window, i had to include the space in the regexmath too: regexmatch(clipboard,"`a)(\r| )") #<:: Loop 200 ;just to be safe { Send, +{Left} ; select text by single characters to...
by noname
12 Jan 2018, 11:53
Forum: Ask For Help
Topic: hitting enter clicks OK button
Replies: 6
Views: 837

Re: hitting enter clicks OK button

The example above includes the word Default in its Options to make "OK" the default button. The default button's action is automatically triggered whenever the user presses ENTER, except when the keyboard focus is on a different button ... Sorry sbrady , i do not have a solution for highlighting th...
by noname
12 Jan 2018, 11:00
Forum: Ask For Help
Topic: hitting enter clicks OK button
Replies: 6
Views: 837

Re: hitting enter clicks OK button

Gui, Add, Button, Default, OK

The example above includes the word Default in its Options to make "OK" the default button. The default button's action is automatically triggered whenever the user presses ENTER,
From the help file.
by noname
12 Jan 2018, 10:19
Forum: Ask For Help
Topic: {space} in clipboard Topic is solved
Replies: 3
Views: 372

Re: {space} in clipboard Topic is solved

Code: Select all

autotrim off
Variable1=Hello,%a_space%
clipboard:=Variable1
%a_space% gives you a space

See autotrim to not trim spaces : https://autohotkey.com/docs/commands/AutoTrim.htm
by noname
10 Jan 2018, 07:38
Forum: Ask For Help
Topic: problems with ControlSetText Topic is solved
Replies: 3
Views: 446

Re: problems with ControlSetText Topic is solved

These are some code snippets i collected unfortunately without source ..... #k:: IfWinActive, ahk_exe explorer.exe { WinHWND := WinActive("A") for item in ComObjCreate("Shell.Application").Windows currentpath := item.Document.Folder.Self.Path msgbox % currentpath for Item in ComObjCreate("Shell.Appl...
by noname
09 Jan 2018, 06:45
Forum: Ask For Help
Topic: Opera browser
Replies: 1
Views: 228

Re: Opera browser

SetTitleMatchMode,1 :*:z:: IfWinActive ahk_exe Opera.exe { soundbeep } else MsgBox opera not open Return If you use an exe you need to use ahk_exe not ahk_class. What are you trying to do because the rest of the code does not make sense to me. :) update: ok is for a game i missed that ................
by noname
08 Jan 2018, 05:12
Forum: Ask For Help
Topic: Save Image Handle to file
Replies: 2
Views: 506

Re: Save Image Handle to file

If you are looking to " extract the ico bitmap once and use many times " you can store the handles in an array like the example in loadpicture() if you have a recent ahk version.I do not see what would be the use of saving to file? https://autohotkey.com/docs/commands/LoadPicture.htm An interesting ...
by noname
06 Jan 2018, 11:45
Forum: Ask For Help
Topic: Recording from mic - what are the new methods?
Replies: 19
Views: 2833

Re: Recording from mic - what are the new methods?

Like why 110 and 3000 ? It is just to scale it and get it fitted into the window dimensions.The window height is 120 ,if the output of "NumGet(buf,4*(A_Index-1),"Float")*3000" is 0 then the yposition is 110-0=110 or the baseline is 10 above bottom (120-110) .If the output is higher the value gets s...
by noname
06 Jan 2018, 11:35
Forum: Ask For Help
Topic: {help}insert 0001 to 9999 with a hotkey Topic is solved
Replies: 6
Views: 564

Re: {help}insert 0001 to 9999 with a hotkey Topic is solved

Code: Select all

F3::
IniRead, n, %A_ScriptDir%\number.ini, Section, counter, 0000
n++
m_new:=format("{1:04}",n)
send %m_new%
IniWrite,%m_new%, %A_ScriptDir%\number.ini, Section, counter
return
by noname
06 Jan 2018, 09:51
Forum: Ask For Help
Topic: Please help me test this Topic is solved
Replies: 5
Views: 695

Re: Please help me test this Topic is solved

Image

train during
ape you
home here
ありがとう a year to
by noname
06 Jan 2018, 09:42
Forum: Ask For Help
Topic: Recording from mic - what are the new methods?
Replies: 19
Views: 2833

Re: Recording from mic - what are the new methods?

https://i.imgur.com/El6ZUv5.png You can choose the Stereo Mix recording device where all sound output passes through. Just play some music or so. Thanks, that worked to test it and as you found out after a few seconds it crashed.I borrowed a mic and monitored playing mp3. Maybe not the most "profes...
by noname
04 Jan 2018, 15:21
Forum: Ask For Help
Topic: New to AHK. Having trouble.
Replies: 2
Views: 303

Re: New to AHK. Having trouble.

You can use AHK for the timing but i would use windows scheduler to start the script at the required time.You can leave out the hotkey so it runs once when Started. Be aware that it sends to the active window whatever that is!! You can use ControlSend to be able to send it an unique window active or...
by noname
04 Jan 2018, 09:11
Forum: Ask For Help
Topic: Recording from mic - what are the new methods?
Replies: 19
Views: 2833

Re: Recording from mic - what are the new methods?

Unfortunately i do not have a microphone and moved to win10 .It is like fishing in trouble water ........without a worm ....and the lake is frozen......
But i will take a look :)

Go to advanced search