Search found 189 matches

by Johana
01 Mar 2019, 16:26
Forum: Ask For Help
Topic: Trying to output +signs
Replies: 4
Views: 857

Re: Trying to output +signs

swagfag wrote:
01 Mar 2019, 16:12
ahk older than [v1.1.27+]?
Yeah! Updated and works, thanks!
by Johana
01 Mar 2019, 16:04
Forum: Ask For Help
Topic: Trying to output +signs
Replies: 4
Views: 857

Re: Trying to output +signs

swagfag wrote:
01 Mar 2019, 14:22

Code: Select all

SendInput % "{Text}" var
No change. Not displaying +sign
by Johana
01 Mar 2019, 14:16
Forum: Ask For Help
Topic: Copy multi-line clipboard into variables
Replies: 2
Views: 773

Re: Copy multi-line clipboard into variables

Not tested, but I believe it will be a good starting help for you. Numpad0:: Loop, Parse, Clipboard, `n, `r ; Split on each line break { if A_Index = 3 ; If it's the 3rd round: { var3 = %A_LoopField% ; Get value var3 := RegExReplace(var3, "[^a-z]*\K[a-z]*") ; Remove all alpha-numericals } else ; Fo...
by Johana
01 Mar 2019, 13:37
Forum: Ask For Help
Topic: Trying to output +signs
Replies: 4
Views: 857

Trying to output +signs

Code: Select all

var := "hello++"
sleep, 200
sendinput % var
exitapp
Tried var := "hello{+}"

Didn't work.

The var is getting information from a gui
so
Gui, add:edit,, vBlabla

When I enter "hello+" the + sign is not there. Any advice?
by Johana
12 Jan 2019, 17:19
Forum: Ask For Help
Topic: Copy multi-line clipboard into variables
Replies: 2
Views: 773

Copy multi-line clipboard into variables

I want a hotkey to copy lines that looks exactly like this: Some text here1 Some text here2 12345 TEXT ;I need only number / not text 165465465465 [email protected].com I need each row to go into variable1, var2, var3 and so on (empty rows should not be counted. Row 3 should only return the numeric value...
by Johana
22 May 2018, 04:02
Forum: Ask For Help
Topic: COM select text / find text
Replies: 1
Views: 529

Re: COM select text / find text

Solved the first part like this:

Code: Select all

oWord.Selection.Goto(1, 2) ; Go to begging of page 2
oWord.Selection.MoveUp(5, 2, 0) ; Move up without selecting, 2 rows
oWord.Selection.HomeKey(6, 1) ; Mark everything from where carat is to begging.
oWord.Selection.MoveDown(5, 4, 1) ; Move down 4

by Johana
22 May 2018, 02:15
Forum: Ask For Help
Topic: COM select text / find text
Replies: 1
Views: 529

COM select text / find text

Hello! I am trying to select text inside a Word-document using COM. The problem that I encountered is that I don't know how many lines to select, so something like oWord.Selection.MoveDown(5, 3, 9) will not help me. I am trying to select from row 7 to the END char of page 1. (not the end of page 1 b...
by Johana
22 Mar 2018, 05:35
Forum: Ask For Help
Topic: Protect scripts from unwanted users
Replies: 2
Views: 718

Protect scripts from unwanted users

Is it possible to protect the ahk scripts I've made? I know I can compile them into exes, but is there any other way to protect them from being viewed = source code? encrypting it somehow?
by Johana
13 Mar 2018, 08:34
Forum: Ask For Help
Topic: Help with the way to think about this - Taking a variable from somewhere inserting it into filename
Replies: 2
Views: 641

Help with the way to think about this - Taking a variable from somewhere inserting it into filename

I have a script today that outputs a file when being run. The file is for statistic purpose, so it outputs: Scriptrun_user_date_count.txt. Count = How many times a script has been run. Today we found out that two new shelters are opening nearby and they would like to use the scripts we have as well....
by Johana
13 Mar 2018, 07:53
Forum: Ask For Help
Topic: can't figure out how to remove digits after decimal
Replies: 14
Views: 2395

Re: can't figure out how to remove digits after decimal

Well, I've started with AHK around 2004. Chris Mallett had exactly those kind of users in mind (and has lost interest in AHK once AHK started to cope with COM(obj) etc). At that time he has provided a ton of exambles with every topic in AHKs help. That has watered down once the more complex stuff s...
by Johana
13 Mar 2018, 05:33
Forum: Ask For Help
Topic: Where to learn how to code?
Replies: 3
Views: 836

Where to learn how to code?

Could someone suggest a easy, friendly place to learn? Other than the help files? What language is AHK coded in? Do you know of any tutorials online ( i do not have the time to read a book unfortunately ) where one can learn? I understand the basics kinda. If a != b Sleep, 200 and so on. What I don'...
by Johana
13 Mar 2018, 04:25
Forum: Ask For Help
Topic: can't figure out how to remove digits after decimal
Replies: 14
Views: 2395

Re: can't figure out how to remove digits after decimal

I can say that the help system is not beginner friendly, I been at this programming business for 30 years. it's a reference manual, and it is a friendly as a reference manual can be, which means it's made for people who know what they are looking for but unsure how to proceed, but there are many ex...
by Johana
13 Mar 2018, 04:09
Forum: Ask For Help
Topic: Get user "area code" from Outlook/Skype?
Replies: 0
Views: 389

Get user "area code" from Outlook/Skype?

Not sure what it's called but I thought I'd make a script for my work based on what part of the country we live in. When sending a Skypemessage or outlook mail this is what shows up: Johana Haraldsson (88729) 88729 = My workplace. My colleauge in a different workplace have Sara Isaksson (92382). I a...
by Johana
12 Mar 2018, 17:43
Forum: Ask For Help
Topic: GUI POPUP to enter type-in shortcuts Topic is solved
Replies: 1
Views: 621

Re: GUI POPUP to enter type-in shortcuts Topic is solved

On my mobile note so sorry for typos.

You can something like this

Code: Select all

GUI, add, edit, w300 vProgramToRun
GUI, add, button, default hidden gOK, Ok
GUI, show, autosize,Run command
Return

OK:
If (ProgramToRun = "Notepad")
Run notepad.exe

If (ProgramToRun = "chrome")
Run c:\pathToChrome
Return


by Johana
11 Mar 2018, 10:19
Forum: Ask For Help
Topic: Trying to do a switch, didn't work
Replies: 5
Views: 1070

Re: Trying to do a switch, didn't work

try:

Code: Select all

numpad0::
state1 := A_ScriptDir "\states.ini"
IniRead, nstate, %state1%, Teclas, cero
if %nstate% = 0
{
	IniWrite, 1, %state1%, Teclas, cero

	SendInput, {space down}
	
	return
}
else
{
	IniWrite, 0, %state1%, Teclas, cero

	SendInput, {space up}

	return
}
by Johana
05 Mar 2018, 05:07
Forum: Ask For Help
Topic: problems with ifwinactive on several windows
Replies: 5
Views: 1204

Re: problems with ifwinactive on several windows

What excatly isn't working?
by Johana
02 Mar 2018, 05:04
Forum: Ask For Help
Topic: How to get filepath of current file (Excel)
Replies: 4
Views: 1184

Re: How to get filepath of current file (Excel)

ADR_ wrote:Hi,

I've created some hotkeys for Excel. That works fine. How can I get the filepath of the current Excel file?

Regards,

Anika

Hello! I am not a coder but I think you can do it like this:

Code: Select all

xl := ComObjActive("Excel.Application")
MsgBox, %xl.ActiveWorkbook.Path%
by Johana
01 Mar 2018, 10:18
Forum: Ask For Help
Topic: Simple key press after a window notification?
Replies: 2
Views: 655

Re: Simple key press after a window notification?

I am not a coder, I am not good with this, I have no idea if I can help you. So until someone more experienced does help you:

Code: Select all

loop
{
if WinExist("ahk_class Notepad") {
SendInput, ^F1
Sleep, 10000 ; Waits 10 seconds for the next time the loop runs (so that the windows shuts down?
}
}
by Johana
01 Mar 2018, 02:52
Forum: Ask For Help
Topic: Autocopy selected text and auto paste in EXCEL
Replies: 5
Views: 3043

Re: Autocopy selected text and auto paste in EXCEL

So you copy ONE text and this should be pasted into either one of the 3 columns? You can do it with two different ways. 1 is to use soly AHK, which copies, activates Excel and pastes in the correct field. Or you can use the much better COM. I am not good with coding but I thought I'd tell you in whi...
by Johana
26 Feb 2018, 09:39
Forum: Ask For Help
Topic: Add documentname using oWord.Documents.Add? Topic is solved
Replies: 8
Views: 1633

Re: Add documentname using oWord.Documents.Add? Topic is solved

- Usually Word gives you a temporary document name, otherwise you give it a name when you save it. - I wouldn't expect that you can change the temporary name, maybe you can. - A workaround would be to create a blank file with a specific filename. That's a bummer, yeah I guess I need to create a fil...

Go to advanced search