Search found 189 matches

by Johana
30 Oct 2017, 02:35
Forum: Ask For Help
Topic: Run script that opens word - if I run another script (10 different) end it
Replies: 18
Views: 2977

Re: Run script that opens word - if I run another script (10 different) end it

So I am thinking about making a file with the script name in the begging of the function.

Then have a IF with "If file exist, abort else run".

Is there a simplier way?
by Johana
27 Oct 2017, 01:26
Forum: Ask For Help
Topic: Run script that opens word - if I run another script (10 different) end it
Replies: 18
Views: 2977

Re: Run script that opens word - if I run another script (10 different) end it

I would join all the ahk scripts file into one simple file. Then I would refactor the 'hamburguer code' to make ir reliable; If you need help post your script! Each script is around 600 lines and all of them are with GUI's. Would be a hell to manage, update etc. + people are using a menu to call di...
by Johana
26 Oct 2017, 15:06
Forum: Ask For Help
Topic: Run script that opens word - if I run another script (10 different) end it
Replies: 18
Views: 2977

Re: Run script that opens word - if I run another script (10 different) end it

Why don't you trigger the rest of your code with a hotkey? When the user knows, that a script is running, it would be not to much required, pressing a predifined key. WinWait and similar commands can be very unreliable. We have a script at our rescue hostel that opens a menu for 20 people in a netw...
by Johana
26 Oct 2017, 14:34
Forum: Ask For Help
Topic: Run script that opens word - if I run another script (10 different) end it
Replies: 18
Views: 2977

Re: Run script that opens word - if I run another script (10 different) end it

king-of-hearts wrote:About the templates, what about harcoding the word file name inside the 'if', like:

Code: Select all

WinWaitActive, *Specific File Name*
 ; * do some action

The winwait is for popup that opens. That popup is the same for all 20 scripts..
by Johana
26 Oct 2017, 11:07
Forum: Ask For Help
Topic: Run script that opens word - if I run another script (10 different) end it
Replies: 18
Views: 2977

Run script that opens word - if I run another script (10 different) end it

A bit misleading title perhaps but not fully sure what to write. I have around 20 different scripts that does things. All 20 scripts has the same begging Function(begin) and same ending function(end). The middle part is what differents them aparat. The start of that end function is: Winwait, WindowT...
by Johana
24 Oct 2017, 09:02
Forum: Ask For Help
Topic: FormatTime + 7 days not working
Replies: 7
Views: 1273

Re: FormatTime + 7 days not working

Well, no idea why you've decided to add that line to your failing code instead of Odlanir's working one? Again, you can't do math with a timestamp after you've already formated it! I tried his with your solution and then tried mine. None are working. All are displaying todays date + 7 Days. DayEigh...
by Johana
24 Oct 2017, 08:39
Forum: Ask For Help
Topic: FormatTime + 7 days not working
Replies: 7
Views: 1273

Re: FormatTime + 7 days not working

BoBo wrote:

Code: Select all

DayEight := FirstDay
.
.
.
I've already tried that to no avail :(

Code: Select all

FormatTime, FirstDay, %FirstDay%, d MMMM yyyy
DayEight := FirstDay
DayEight += 7, Days



Gui, LU: add, Datetime, vFirstday, yyyy-MM-dd

by Johana
24 Oct 2017, 07:57
Forum: Ask For Help
Topic: FormatTime + 7 days not working
Replies: 7
Views: 1273

Re: FormatTime + 7 days not working

This works DayEight := a_now DayEight += 7, days Formattime, DayEight, %DayEight%, yyyy-MM-dd MsgBox, % DayEight I suspect you cannot do a math operation ( += 7 days ) upon a formatted var cause it gives you a blank value so the last Formattime uses as input the today's date. Thanks but that doesn'...
by Johana
24 Oct 2017, 03:07
Forum: Ask For Help
Topic: FormatTime + 7 days not working
Replies: 7
Views: 1273

FormatTime + 7 days not working

Var Firstday is from a DateTime GUI This gives me just todays date: Formattime, DayEight, %FirstDay%, yyyy-MM-dd DayEight += 7, days Formattime, DayEight, %DayEight%, yyyy-MM-dd MsgBox, % DayEight This gives me a blank msgbox Formattime, DayEight, %FirstDay%, yyyy-MM-dd DayEight += 7, days MsgBox, %...
by Johana
23 Oct 2017, 07:03
Forum: Ask For Help
Topic: #Warn: The variable is empty. How to set it? Topic is solved
Replies: 8
Views: 1094

Re: #Warn: The variable is empty. How to set it? Topic is solved

Can you change A_ScriptFullPath to the path of the file you want to monitor? I asigned the variable "full_path" the path and changed A_fullscriptpath to %full_path% and it worked perfectly now. Thanks for the help. Oh, and I've changed Everything to English, you are completely right about that. I j...
by Johana
23 Oct 2017, 05:53
Forum: Ask For Help
Topic: #Warn: The variable is empty. How to set it? Topic is solved
Replies: 8
Views: 1094

Re: #Warn: The variable is empty. How to set it? Topic is solved

It works for me. Make sure you save the file (without changing the file name) when you update the variable, and check (eg, with msgboxes) that the fileGetTime works. Tried to save it on the desktop: Worked fine. The file I have is on a network. And the Filepath, unfortunatley have ÅÄÖ inside of it ...
by Johana
23 Oct 2017, 03:19
Forum: Ask For Help
Topic: #Warn: The variable is empty. How to set it? Topic is solved
Replies: 8
Views: 1094

Re: #Warn: The variable is empty. How to set it? Topic is solved

Thanks, didn't work though. It's not reloading the script. Changed from "Hello" to "Hello 2". nada :( Try this, #SingleInstance force #persistent ; if this really is the full script. var:="hello" ; Change this when script is running to see if it is reloading msgbox % var filegettime, gammal_tidstamp...
by Johana
23 Oct 2017, 02:27
Forum: Ask For Help
Topic: #Warn: The variable is empty. How to set it? Topic is solved
Replies: 8
Views: 1094

Re: #Warn: The variable is empty. How to set it? Topic is solved

Your script make no sense to me. But, yes, you need assign a value (could be blank) to the variable, to avoid the warning. reload ; laddar om scriptet gammal_tidstampel:=nuvarande_tidstampel ; Sätt den nya tidsstämpeln som aktuell. the line under the reload is not very likely to execute. Even if it...
by Johana
23 Oct 2017, 02:10
Forum: Ask For Help
Topic: #Warn: The variable is empty. How to set it? Topic is solved
Replies: 8
Views: 1094

#Warn: The variable is empty. How to set it? Topic is solved

I used a code given to me here on the forum to check a files size and then reloading if it has changed. However, I keep getting a warning (I got #warn) that the variable "gammal_tidstampel" has no value. I guess I need to set the "gammal_tidstampel" variabel somewhere as right now it hasn't been ass...
by Johana
22 Oct 2017, 01:31
Forum: Ask For Help
Topic: Kindly explain this i.e tickcount
Replies: 5
Views: 791

Re: Kindly explain this i.e tickcount

Thank you Helgef and Bobo, I actually understand now (thank God) :)
by Johana
21 Oct 2017, 17:22
Forum: Ask For Help
Topic: Kindly explain this i.e tickcount
Replies: 5
Views: 791

Re: Kindly explain this i.e tickcount

Helgef wrote:Readbility and maintainability. Also you will miss eventually miss a zero if you are typing 360000 instead of 60 * 60 * 1000.
Cheers.

Really? That's all? Just readability? Are there any set of rules? In my first code with that settimer, there is a percentage sign. What does it do?
by Johana
21 Oct 2017, 17:07
Forum: Ask For Help
Topic: Kindly explain this i.e tickcount
Replies: 5
Views: 791

Kindly explain this i.e tickcount

settimer, time_routine, % 1000 * 100 ; check status of ahk-script-file evey 100 seconds and reload if necessary Here it's 1000 * 100.. Why not just write 100000? Here's a different place i saw a simliar code being used: e:: t := A_TickCount + ((1000 * 60) * 60) Why not just sum it up to 3600000 and...
by Johana
20 Oct 2017, 14:36
Forum: Scripts and Functions
Topic: Vis2 - Image to Text OCR()
Replies: 253
Views: 75371

Re: Vis2 - Simple OCR

Anyway to make it support ÅÄÖ an other special chars?

Go to advanced search