Search found 45 matches

by my-lord
08 Sep 2018, 14:05
Forum: Ask For Help
Topic: `the rpc server is unavailable` when trying to access local html file with autohotkey
Replies: 0
Views: 149

`the rpc server is unavailable` when trying to access local html file with autohotkey

Hello guys. I have written the script that accesses the local HTML file and does some job. ^+A:: ;Convert HTML TO ASCIIDOC Send ^c copied := Clipboard sleep 30 local := "file:///C:/Users/emre/Desktop/Tools/Note%20Taking%20Tools/Asciidoc%20Tools/HtmlToAsciidoc-master/to-asciidoc.html" sleep 100 (pwb5...
by my-lord
31 Aug 2018, 05:36
Forum: Ask For Help
Topic: How can I install IronAHK to Ubuntu LTS 18.04?
Replies: 1
Views: 119

How can I install IronAHK to Ubuntu LTS 18.04?

Hello everyone. I am trying to install Linux equivalent of Autohotkey on Ubuntu LTS 18.04. a) I have followed the following guide(ancient): https://brendonrobinson.wordpress.com/2011/04/10/building-ironahk-from-source-on-ubuntu-10-10-maverick-meerkat/ : I have got this: q@q-ABRA-A5-V12-1:~/IronAHK$ ...
by my-lord
14 Aug 2018, 13:08
Forum: Ask For Help
Topic: ControlSend sends extra newlines Topic is solved
Replies: 6
Views: 263

Re: ControlSend sends extra newlines Topic is solved

`r`n are all translated to a single Enter keystroke, unlike normal mode and Raw mode, which translate `r`n to two Enter keystrokes. When we copy Windows new-line sequence: `r`n. It sends this : .... [source,java] ---- aaa bbb ccc ---- .... Insteads of this: .... [source,java] ---- a b c ---- .... * ...
by my-lord
14 Aug 2018, 09:21
Forum: Ask For Help
Topic: ControlSend sends extra newlines Topic is solved
Replies: 6
Views: 263

Re: ControlSend sends extra newlines Topic is solved

What happens if you delete this line? Clipboard := "`n[source]`n----`n" . Clipboard . "`n---- `n`n" Regards I tried this way but I have still extra lines sleep 30 Send, ^c sleep 30 ControlSendRaw,Scintilla2,`n[source]`n----`n,ahk_class Notepad++ ControlSendRaw,Scintilla2,%Clipboard%,ahk_class Notep...
by my-lord
14 Aug 2018, 08:56
Forum: Ask For Help
Topic: ControlSend sends extra newlines Topic is solved
Replies: 6
Views: 263

Re: ControlSend sends extra newlines Topic is solved

Really?It sends newline even though there is no newline in the Clipboard.
by my-lord
13 Aug 2018, 12:34
Forum: Ask For Help
Topic: ControlSend sends extra newlines Topic is solved
Replies: 6
Views: 263

ControlSend sends extra newlines Topic is solved

I am trying to send a text to notepad with ControlSend. But it sends a text with the extra newline to notepad. I think this problem caused by ControlSend. append() { SetKeyDelay, 10, 10 ControlSend,Edit1,% Clipboard,ahk_exe notepad.exe } #If GetKeyState("Ctrl") && GetKeyState("Shift") ;Seçilileri do...
by my-lord
10 Aug 2018, 11:08
Forum: Ask For Help
Topic: ControlSend Suppress Newlines When Sending Text to Notepad
Replies: 5
Views: 240

Re: ControlSend Suppress Newlines When Sending Text to Notepad

an example with gui , edit input to clipboard and send to notepad #warn #NoEnv setworkingdir,%a_scriptdir% pr=notepad.exe sc=ahk_exe notepad.exe clipboard= aa= (ltrim join`r`n ++++ <p style="font-size:50px;font-weight:900"></p> ++++ ) Gui,2: Show , x10 y10 w430 h200, Titel_02 Gui,2: add, Edit , x10...
by my-lord
06 Aug 2018, 14:07
Forum: Ask For Help
Topic: ahk_exe of notepad++ Topic is solved
Replies: 1
Views: 89

ahk_exe of notepad++ Topic is solved

Hello everyone. I am using ahk_exe on ControlSend command. Normally the name of the program that exists in Task Manager work. But this rule seems not valid for notepad.

ControlSend,Edit1,Clipboard,ahk_exe notepad++.exe

Is there anybody know ahk_exe of notepad++? :wave:
by my-lord
06 Aug 2018, 13:58
Forum: Ask For Help
Topic: ControlSend Suppress Newlines When Sending Text to Notepad
Replies: 5
Views: 240

Re: ControlSend Suppress Newlines When Sending Text to Notepad

an example with gui , edit input to clipboard and send to notepad #warn #NoEnv setworkingdir,%a_scriptdir% pr=notepad.exe sc=ahk_exe notepad.exe clipboard= aa= (ltrim join`r`n ++++ <p style="font-size:50px;font-weight:900"></p> ++++ ) Gui,2: Show , x10 y10 w430 h200, Titel_02 Gui,2: add, Edit , x10...
by my-lord
05 Aug 2018, 13:14
Forum: Ask For Help
Topic: ControlSend Suppress Newlines When Sending Text to Notepad
Replies: 5
Views: 240

ControlSend Suppress Newlines When Sending Text to Notepad

,Hello everyone. I have a problem with ControlSend.When I am trying to send text to notepad everytime autohotkey suppress newlines. ControlSend,Edit1,Clipboard,ahk_exe notepad.exe For example "`n" . "++++" . "`n" . "<p style=""font-size:45px;font-weight:900"">" . HeadingName . "</p>" . "`n" . "++++"...
by my-lord
06 Jul 2018, 05:19
Forum: Ask For Help
Topic: How to get the selected text's size(px) and font weight?
Replies: 0
Views: 142

How to get the selected text's size(px) and font weight?

Hello everyone. I am trying to get selected text's size(pixel) and font weight(pt) with AutoHotkey like HTML attributes. How do I do? I have done some search on google and have found this: https://autohotkey.com/board/topic/16625-function-gettextsize-calculate-text-dimension/ But every text have its...
by my-lord
09 May 2018, 07:37
Forum: Ask For Help
Topic: How can I send text to notepad++ specific tab in background?
Replies: 1
Views: 210

How can I send text to notepad++ specific tab in background?

Hello, everyone. I am trying to send a text to notepad++ specific tab blinking cursor position in background.Following script works great in the foreground: https://autohotkey.com/boards/viewtopic.php?t=23190 But I want to send text in the background. I tried to send a text with window title of task...
by my-lord
09 May 2018, 05:38
Forum: Ask For Help
Topic: FileAppend doesn't work with string variable Topic is solved
Replies: 1
Views: 105

FileAppend doesn't work with string variable Topic is solved

Hello everyone. I am trying to append specified file specified string like this: file := "C:\sample.adoc" ;... sleep 30 FileAppend,%Clipboard%,file sleep 30 Return file := "C:\sample.adoc" ;... sleep 30 FileAppend,%Clipboard%,%file% sleep 30 Return file := "C:\sample.adoc" ;... sleep 30 FileAppend,%...
by my-lord
06 May 2018, 17:21
Forum: Ask For Help
Topic: How can I change code codemirror text in github gist with autohotkey?
Replies: 0
Views: 141

How can I change code codemirror text in github gist with autohotkey?

Hello guys. I am trying to write hotkey script that copy selected code and create GitHub gist and copy embedded script. I want to do this on chrome browser. But I cannot change the codemirror text. Here is what I have tried so far: ^+g:: Send ^c ChromeInst := new Chrome("ChromeProfile", "https://exa...
by my-lord
03 May 2018, 14:19
Forum: Ask For Help
Topic: double character hotkeys in autohotkey Topic is solved
Replies: 1
Views: 92

double character hotkeys in autohotkey Topic is solved

Hello everyone.I want to define double character hotkeys in AutoHotkey just like this:

Code: Select all

^+as::
;Do stuff
How can I do this in autohotkey?
by my-lord
03 May 2018, 12:34
Forum: Ask For Help
Topic: Exitapp can't terminate script Topic is solved
Replies: 1
Views: 96

Exitapp can't terminate script Topic is solved

Hello everyone.I am trying to exit script if there is an error string in output.But this script continues to run instead of terminate script.How can I fix this problem? If(InStr(Output,"error")=true) { msgbox % Output Exitapp } ... If(InStr(Output,"error")=true) { msgbox % Output Exitapp } ...
by my-lord
03 May 2018, 11:25
Forum: Ask For Help
Topic: How can I adjust font size of msgbox?
Replies: 2
Views: 149

How can I adjust font size of msgbox?

Hello everyone.Sometimes msgbox text is barely readable.I want to adjust the font size of msgbox.Is there any parameter for adjusting the font size of msgbox?
by my-lord
01 May 2018, 16:54
Forum: Ask For Help
Topic: hidden netbeans window pops up when trying to send keys.
Replies: 1
Views: 114

Re: hidden netbeans window pops up when trying to send keys.

^+b:: sleep 30 Send ^c sleep 30 run,C:\Program Files\NetBeans 8.2\bin\netbeans64.exe "C:\tablo.java",Hide sleep 1500 Controlsend,,{^v}, "Netbeans" sleep 50 Controlsend,,{!+f}, "Netbeans" sleep 50 Controlsend,,{^a}, "Netbeans" sleep 50 Controlsend,,{^c}, "Netbeans" sleep 50 WinMinimize,"Netbeans" sl...
by my-lord
30 Apr 2018, 13:52
Forum: Ask For Help
Topic: hidden netbeans window pops up when trying to send keys.
Replies: 1
Views: 114

hidden netbeans window pops up when trying to send keys.

Hello guys.I want to format selected java code with sending keys to hidden netbeans IDE.I wrote following script but hidden netbeans pops up when trying to send keys with ControlSend.How can I send keys to the hidden window without opening window? ^+b:: Send ^c run,C:\Program Files\NetBeans 8.2\bin\...
by my-lord
28 Apr 2018, 11:40
Forum: Ask For Help
Topic: Formatting java code with autohotkey
Replies: 1
Views: 147

Formatting java code with autohotkey

Hello guys.I am trying to format my java code with https://www.tutorialspoint.com/online_java_formatter.htm . But I have an issue with getting textarea.I am trying to get textarea into the following tag. Internet Explorer 11 <div class="ace_editor ace-crimson-editor" id="result" ...</div> <textarea ...

Go to advanced search