Search found 68 matches

by sttrebo
10 Nov 2020, 14:25
Forum: Ask for Help (v1)
Topic: Window Specific Hotkey
Replies: 3
Views: 245

Re: Window Specific Hotkey

figured it was a dumb typo on my part. thanks for finding it, appreciate your help.
by sttrebo
10 Nov 2020, 13:47
Forum: Ask for Help (v1)
Topic: Window Specific Hotkey
Replies: 3
Views: 245

Window Specific Hotkey

i have this small script that reads from a text file and sends a specific line of the text file depending on what window is active: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input...
by sttrebo
03 Oct 2019, 09:40
Forum: Ask for Help (v1)
Topic: UAC errorlevel question
Replies: 0
Views: 430

UAC errorlevel question

I have a small script that runs on boot up: Sleep, 1000 run *RunAs "C:\Program Files (x86)\johnsadventures.com\John's Background Switcher\BackgroundSwitcher.exe" Sleep, 3000 SetTimer, Johns, 900000 return Johns: process, exist, BackgroundSwitcher.exe If !(ErrorLevel) { Sleep, 1000 run *RunAs "C:\Pro...
by sttrebo
09 Nov 2018, 17:36
Forum: Ask for Help (v1)
Topic: WinWaitClose help
Replies: 2
Views: 824

Re: WinWaitClose help

knew i missed something simple. thanks for the help. not the first time i forgot to allow time for the window to be created...

thanks
by sttrebo
08 Nov 2018, 19:38
Forum: Ask for Help (v1)
Topic: WinWaitClose help
Replies: 2
Views: 824

WinWaitClose help

I have a very simple script, but I think I'm missing something on the WinWaitClose command. I want the script to open up notepad.exe, then wait for me to exit/close notepad.exe. When I exit notepad, I want to check the keystate of the left ctrl key. if down, run a program. if not down then just exit...
by sttrebo
26 Jul 2018, 16:08
Forum: Ask for Help (v1)
Topic: Custom Sort help
Replies: 2
Views: 992

Re: Custom Sort help

works perfect, thanks for you help.
by sttrebo
26 Jul 2018, 10:53
Forum: Ask for Help (v1)
Topic: Custom Sort help
Replies: 2
Views: 992

Custom Sort help

hi- I have a script that I use to monitor the status outputs on some test equipment. When there is an event, a line is added to a text file. The text file looks like this: Mac address followed by an error/status code and description. 00-C0-XX-XX-XX-XX > E5002: Temperature Hi Limit Exceeded 00-C0-YY-...
by sttrebo
09 Jul 2018, 14:49
Forum: Ask for Help (v1)
Topic: Evernote scripting
Replies: 2
Views: 1324

Evernote scripting

I am working on a scrip that reads Outlook emails then modifies Evernote notes with specifics from the Outlook emails. As part of the script I open up Evernote and pause a short time to allow the user to select the note. I was curious if anyone could help with an idea I had. I want my script to paus...
by sttrebo
22 Jun 2018, 15:27
Forum: Ask for Help (v1)
Topic: Sleep command optimization help
Replies: 3
Views: 1019

Re: Sleep command optimization help

hi-
thanks for your help. to your second point, yes.
on your first point: the ~= "D" is directory. i'm assuming i can just use "N" if it's a file ?

thanks for your help.
by sttrebo
22 Jun 2018, 14:55
Forum: Ask for Help (v1)
Topic: Sleep command optimization help
Replies: 3
Views: 1019

Sleep command optimization help

hi- I have a fairly long script that does a number of file/directory create/reads/writes. for a number of them, i check if it exists then if it doesn't I create it. if it does exist, i just delete it's contents to start fresh. here is a sample of the code: IfNotExist, %AHK_Temp%\qtdadd\ { FileCreate...
by sttrebo
28 Feb 2018, 17:37
Forum: AutoHotkey Development
Topic: A_ variables
Replies: 29
Views: 13230

Re: A_ variables

not sure if this has been requeted or not, if it has my apologies. any chance of having some user specified variables, A_Userxx, etc. Something that we could specify and then call from any script? this would give us the opportunity to read variable contents in different scripts without needing to us...
by sttrebo
31 Jan 2018, 19:17
Forum: Ask for Help (v1)
Topic: Outlook email SaveAs
Replies: 4
Views: 1246

Re: Outlook email SaveAs

easier than I thought:
olItem.SaveAs(Storage_Dir "\" RegExReplace(olItem.Subject, "^(?:RE|FW): ") ".msg", 3)

removes the offending characters and any other I choose to add into the RE|FW etc string.

think i'm good to go. thanks for your help.
by sttrebo
31 Jan 2018, 17:08
Forum: Ask for Help (v1)
Topic: Outlook email SaveAs
Replies: 4
Views: 1246

Re: Outlook email SaveAs

excellent, thanks. just need to add in a filter to remove invalid characters from the subjects and it'll be perfect. I use this in autohotkey: PSubject := RegExReplace(Subject,"^(?:RE|FW): ") PSubject := StrReplace(PSubject, "+", "_") any way of doing a similar thing here? also, what is the "try" an...
by sttrebo
31 Jan 2018, 13:54
Forum: Ask for Help (v1)
Topic: Outlook email SaveAs
Replies: 4
Views: 1246

Outlook email SaveAs

I have a small script that I use with my task planning app. this script just writes the subject of the email to a text file. But i've been trying to get the script to also save the selected email outside of outlook. In essence, I want to do a saveas and save the email as a .msg (the link to that fil...
by sttrebo
31 Jan 2018, 12:33
Forum: Ask for Help (v1)
Topic: IfNotExist pause
Replies: 3
Views: 1252

Re: IfNotExist pause

yes, caught that when i moved the iniwrite statement. but thanks.
by sttrebo
31 Jan 2018, 12:09
Forum: Ask for Help (v1)
Topic: IfNotExist pause
Replies: 3
Views: 1252

Re: IfNotExist pause

oops, nevermind. found the problem with the script. dumb mistake, i needed to move the iniwrite line into the loop parse sequence. old age sucks sometimes...
by sttrebo
30 Jan 2018, 16:06
Forum: Ask for Help (v1)
Topic: IfNotExist pause
Replies: 3
Views: 1252

IfNotExist pause

having a problem with a short piece of code. all it needs to do is check for the existence (or not) of a file then execute something. since the script is run over a network there is some delay in getting the response from the remote machine. here is the code: IfNotExist, %A_Temp%\AHK.txt { sleep, 50...
by sttrebo
10 Jan 2018, 11:51
Forum: Ask for Help (v1)
Topic: Problem with GUI Control
Replies: 7
Views: 1691

Re: Problem with GUI Control

very nice, thanks for the help all. i really appreciate all of the comments and assistance.
by sttrebo
10 Jan 2018, 11:11
Forum: Ask for Help (v1)
Topic: Problem with GUI Control
Replies: 7
Views: 1691

Re: Problem with GUI Control

my bad, this seems to work as I need. one thing though: when the n/a field is changed to the %Link% contents, the length of the field doesn't automatically change with the length of the variable. How can I make the length change as the length of the variable data changes? I can always put in a width...

Go to advanced search