Search found 189 matches

by Johana
26 Feb 2018, 08:44
Forum: Ask For Help
Topic: Two scripts that conflicts with eachother. Why?
Replies: 6
Views: 1130

Re: Two scripts that conflicts with eachother. Why?

Very very thankful for the quick reply, do I need to put a return on all my scripts? Like this for instance: ---------------------------- ^1:: SendInput, {TAB 3} SendInput, {DOWN 2} SendInput, {ENTER} ( text1 ) SendInput, {TAB} ( text2 ) SendInput, {Enter} ---------------------------- I am no coder...
by Johana
26 Feb 2018, 08:23
Forum: Ask For Help
Topic: Two scripts that conflicts with eachother. Why?
Replies: 6
Views: 1130

Re: Two scripts that conflicts with eachother. Why?

Very very thankful for the quick reply, do I need to put a return on all my scripts? Like this for instance: ---------------------------- ^1:: SendInput, {TAB 3} SendInput, {DOWN 2} SendInput, {ENTER} ( text1 ) SendInput, {TAB} ( text2 ) SendInput, {Enter} ---------------------------- Yes, basicall...
by Johana
26 Feb 2018, 08:12
Forum: Ask For Help
Topic: Making a script to ease workload during stressful times.
Replies: 7
Views: 1279

Re: Making a script to ease workload during stressful times.

Is it always the same text or do you have different text each time?
by Johana
26 Feb 2018, 08:09
Forum: Ask For Help
Topic: Two scripts that conflicts with eachother. Why?
Replies: 6
Views: 1130

Re: Two scripts that conflicts with eachother. Why?

Hello, I made two scripts for choosing a specific line in a word document. ---------------------------- ^2:: SendInput, {PGDN 2} SendInput, {UP} SendInput, {Left} ---------------------------- ^3:: SendInput, {PGDN 2} SendInput, {UP 2} SendInput, {END} SendInput, {Left} ---------------------------- ...
by Johana
26 Feb 2018, 07:57
Forum: Ask For Help
Topic: Add documentname using oWord.Documents.Add? Topic is solved
Replies: 8
Views: 1637

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

Yeah I've read that one and it's from there I am creating my script. But can't seem to find how to name a doc upon creating it. Neither did I find anything useful on MSDN.
by Johana
26 Feb 2018, 05:13
Forum: Ask For Help
Topic: Add documentname using oWord.Documents.Add? Topic is solved
Replies: 8
Views: 1637

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

oWord := ComObjCreate("Word.Application") oWord.Documents.Add Is it possible to actually open a named document? Right now it's called "Document 1" or if I have open WOrd already Document X where X is the number followed by all the open docs. So I'd like to create a "Mytitle" document. Is it possible?
by Johana
23 Feb 2018, 17:18
Forum: Ask For Help
Topic: Loop dropdownlist + send value based on total amount of values insterted Topic is solved
Replies: 4
Views: 786

Re: Loop dropdownlist + send value based on total amount of values insterted Topic is solved

Try this. OK: Gui, KAnF: Submit, NoHide strDat := "You have applied for ", strDecl := "Declined dates: " loop, %Periods% { FormatTime,dateA, % periodA%A_index%, yyyy-MM-dd FormatTime,dateB, % periodB%A_index%, yyyy-MM-dd strDat .= dateA " to " dateB ", " if ( Checkbox%A_index%) strDecl .= dateA " t...
by Johana
23 Feb 2018, 09:21
Forum: Ask For Help
Topic: Loop dropdownlist + send value based on total amount of values insterted Topic is solved
Replies: 4
Views: 786

Loop dropdownlist + send value based on total amount of values insterted Topic is solved

At our shelter we have a application that people send to us. They can apply up to 10 (currently in the GUI it's 5) dates where they can have a temporary home for a dog. They will either be granted some of the dates (never all) or will be declined all of the dates. After submit I want it to display a...
by Johana
20 Feb 2018, 07:37
Forum: Ask For Help
Topic: To parse the value entered in the editbox.
Replies: 8
Views: 1276

Re: To parse the value entered in the editbox.

BoBo wrote:Well, there is a difference indeed ...

Code: Select all

; inpt :=
; inpt := ""
inpt := " "

If (inpt != " ")   ; if var doesn't contain a space character
   MsgBox % "1 |" . inpt . "|"
If (inpt != "")   ; if var isn't empty
   MsgBox % "2 |" . inpt . "|"
Thanks!
by Johana
20 Feb 2018, 06:55
Forum: Ask For Help
Topic: To parse the value entered in the editbox.
Replies: 8
Views: 1276

Re: To parse the value entered in the editbox.

Yes "we" can. But: Gui, Submit, NoHide If (inpt != " ") { ; if input is NOT empty go on. Else ... Arr := StrSplit(Inpt, "*") Loop, 3 GuiControl,,Edi%A_index%, % Arr[a_index] } Return Bobo, is there a difference if there's a space where the " " are? I.e: Does this work: If (inpt != "")
by Johana
16 Feb 2018, 08:48
Forum: Ask For Help
Topic: Loop in the background = If App exists = exit ahk
Replies: 8
Views: 1679

Re: Loop in the background = If App exists = exit ahk

This code seems to work. Can I make it bettter? loop { IfWinNotExist, ahk_class Notepad { MsgBox, You have shut down Notepad ExitApp break } If WinExist("Central utskrift av dokument ahk_class ThunderDFrame") || If WinExist("Öppna ahk_class #32770") break } MsgBox, You have opened either the printin...
by Johana
16 Feb 2018, 06:49
Forum: Ask For Help
Topic: Loop in the background = If App exists = exit ahk
Replies: 8
Views: 1679

Re: Loop in the background = If App exists = exit ahk

And.... I'm back! The idea works good. But apparently not with the way I've built my scripts. When a script is run I get a GUI. In this GUI i insert some values. On submit, Word will open a word-temaplte and insert these values in the correct places. The entire opens sequence is same for all scripts...
by Johana
16 Feb 2018, 05:25
Forum: Ask For Help
Topic: Loop in the background = If App exists = exit ahk
Replies: 8
Views: 1679

Re: Loop in the background = If App exists = exit ahk

Are you sure that the window title of IfWinExist is correct? I could imagine, you have a swedish version of that Notepad title.. Worked like a charm when I put the code like your suggestion under the SetTimer! Been at this for 2 days, lol. Thank you <3 Yeah I just wrote it in english here so it's e...
by Johana
16 Feb 2018, 05:20
Forum: Ask For Help
Topic: Loop in the background = If App exists = exit ahk
Replies: 8
Views: 1679

Re: Loop in the background = If App exists = exit ahk

Try #Persistent SetTimer, check, 500 ; do other stuff here return check: IfWinExist, Untitled - Notepad ahk_class Notepad return MsgBox,262144, Applikationen termineras, Du har stängt ner Word, applikationen avslutas. Vill du köra applikationen behöver du göra det på nytt. ExitApp Edit: Oh, where d...
by Johana
16 Feb 2018, 04:13
Forum: Ask For Help
Topic: Loop in the background = If App exists = exit ahk
Replies: 8
Views: 1679

Loop in the background = If App exists = exit ahk

What I want: exitapp if specific wordwindow is shutdown. Problem: I have a WinWait also. So I tried to make a loop looking like this (used Notepad for the test) loop { IfWinExist, Untitled - Notepad ahk_class Notepad continue MsgBox,262144, Applikationen termineras, Du har stängt ner Word, applikati...
by Johana
12 Feb 2018, 04:49
Forum: Ask For Help
Topic: Column width - LV_ModifyCol( ...
Replies: 11
Views: 3000

Re: Column width - LV_ModifyCol( ...

Sorry, I have to drop in this. It is a must have for all my scripts that utilize ListViews. Especially when I want my columns to adjust widths during population. adjHdrs(listView="") { Gui, ListView, %listView% Loop, % LV_GetCount("Col") LV_ModifyCol(A_Index, "autoHdr") LV_ModifyCol(1,"AutoHdr") ;~...
by Johana
07 Feb 2018, 05:27
Forum: Ask For Help
Topic: Responsive GUI Topic is solved
Replies: 3
Views: 796

Re: Responsive GUI Topic is solved

Have you tried using the built-in A_ScreenWidth and A_ScreenHeight variables? GuiWidth := A_ScreenWidth*0.50 GuiHeight := A_ScreenHeight*0.50 Gui, New Gui, Show, W%GuiWidth% H%GuiHeight% Return GuiClose: ExitApp Return Replace "50" on each of the first two lines with the percentages that you actual...
by Johana
07 Feb 2018, 05:26
Forum: Ask For Help
Topic: Copying Locked Files With Autohotkey Topic is solved
Replies: 3
Views: 624

Re: Copying Locked Files With Autohotkey Topic is solved

Eso wrote:Hey, is there a way (or script someone can show) to copy locked files using only AutoHotkey?
What do you mean with "locked"?
by Johana
02 Feb 2018, 10:25
Forum: Ask For Help
Topic: Responsive GUI Topic is solved
Replies: 3
Views: 796

Responsive GUI Topic is solved

Is there a possibility to use percentage or make a GUI scaleable to become responsive? We're sitting o different sizes of screens. Sometimes on Laptops, sometimes 32" sometimes on 21" and so on. And to make it more complex, some have the default 125% zoom and some have 100 and otherds 150%. If I mak...
by Johana
02 Feb 2018, 08:28
Forum: Ask For Help
Topic: Styling a slider + Can my code be better?
Replies: 1
Views: 426

Styling a slider + Can my code be better?

Background: I am trying to make a "Information slider" with what have happened since our foundation for homeless animals opened in 2013. We have an event coming up where people can donate to the shelter. Obviously we can also do it on a website, but since we have different scripts in AHK I would lik...

Go to advanced search