Search found 18 matches

by serbring
06 Jan 2018, 17:15
Forum: Ask For Help
Topic: Do specific operations when I arrive at a specific location? Topic is solved
Replies: 9
Views: 515

Re: Do specific operations when I arrive at a specific location? Topic is solved

#NoEnv output := cmd("netsh wlan show interface") MsgBox % output ; Example output parsing Loop, Parse, output, `n, `r result .= (A_Index=3 || A_Index=4) ? A_LoopField . "`n" : "" MsgBox % result ExitApp cmd(str) { DetectHiddenWindows, On Run %ComSpec%,, Hide, pid WinWait, ahk_pid %pid% DllCall("At...
by serbring
06 Jan 2018, 16:03
Forum: Ask For Help
Topic: Do specific operations when I arrive at a specific location? Topic is solved
Replies: 9
Views: 515

Re: Do specific operations when I arrive at a specific location? Topic is solved

Runwait %comspec% /c netsh wlan show interface | clip,,hide Unfortunately, the result of netsh is put into the clipboard and I can't do it in my code, as this line is inside a SetTimer function. Is there any way to put the network info in a variable? If it's in the clipboard, it's in the AHK built-...
by serbring
06 Jan 2018, 15:53
Forum: Ask For Help
Topic: Do specific operations when I arrive at a specific location? Topic is solved
Replies: 9
Views: 515

Re: Do specific operations when I arrive at a specific location? Topic is solved

I didn't know this, thanks. Unfortunately, I cannot use it as I am developing a computer log, so I need to save the location of the PC and the trigger to start the log is the arrival at the office
by serbring
06 Jan 2018, 15:50
Forum: Ask For Help
Topic: Do specific operations when I arrive at a specific location? Topic is solved
Replies: 9
Views: 515

Re: Do specific operations when I arrive at a specific location? Topic is solved

If the IP address at your office is static, that would do it. It is found in the built-in variable A_IPAddress1 (and 2, 3, and 4 for multiple network adaptors). that is a good idea, but the IP is not static. I would you the network SSID. I have found this code line: Runwait %comspec% /c netsh wlan ...
by serbring
06 Jan 2018, 15:04
Forum: Ask For Help
Topic: Do specific operations when I arrive at a specific location? Topic is solved
Replies: 9
Views: 515

Do specific operations when I arrive at a specific location? Topic is solved

hi all,

I am developing a script that should do some operations when I arrive at the office. No problem to do the operations, but I don't know how set the trigger. What can I use to check the location?

Thanks

Best regards.
by serbring
26 Dec 2017, 16:19
Forum: Ask For Help
Topic: Pasting the path of a file as hyperlink
Replies: 7
Views: 459

Re: Pasting the path of a file as hyperlink

you may need to do additional steps to make it it a working link, replacing the spaces with %20 for example: ; ... StringReplace, Clipboard, Clipboard,\,/,All ; replace \ with / StringReplace, Clipboard, Clipboard,%A_Space%,`%20,All ; replace \ with / Clipboard:=StrBeg . Clipboard ; ... See https:/...
by serbring
26 Dec 2017, 15:03
Forum: Ask For Help
Topic: Problems with if statement and variable type Topic is solved
Replies: 2
Views: 285

Problems with if statement and variable type Topic is solved

Hi all, I have the following script. LogStartTime := 9 LogEndTime := 22 FormatTime, HourTime, YYYYMMDDHH24MISS, H FormatTime, DayinWeek, YYYYMMDDHH24MISS, WDay MsgBox %HourTime% __ %DayinWeek% if (HourTime=> LogStartTime and HourTime<=LogStartTime and DayinWeek>1 and DayinWeek<7 ) { MsgBox assist } ...
by serbring
26 Dec 2017, 14:18
Forum: Ask For Help
Topic: Pasting the path of a file as hyperlink
Replies: 7
Views: 459

Re: Pasting the path of a file as hyperlink

Here is some documentation you can read on file hyperlinks https://msdn.microsoft.com/en-us/library/aa767731(VS.85).aspx For example you could paste the following into your web address and get a link to your c drive file:///C:/ At this point you can use https://autohotkey.com/docs/commands/StringRe...
by serbring
22 Oct 2017, 07:59
Forum: Tips and Tricks
Topic: [ ComObj IE ] Get an element from it's displayed text.
Replies: 16
Views: 38773

Re: [ ComObj IE ] Get an element from it's displayed text.

Hi , I run the following script: Pwb := ComObjCreate( "InternetExplorer.Application" ) Pwb.Navigate("www.AutoHotkey.com") Pwb.Visible := True ClickElementWithThisText("FORUMS", Pwb.document, "div") ClickElementWithThisText(text, document, tagName) { elements := document.getElementsByTagName(tagName)...
by serbring
15 Oct 2017, 10:43
Forum: Ask For Help
Topic: Pasting the path of a file as hyperlink
Replies: 7
Views: 459

Re: Pasting the path of a file as hyperlink

I made it. What I would like to improve is the control of the displayed text. Is it possible?
by serbring
15 Oct 2017, 04:52
Forum: Ask For Help
Topic: Pasting the path of a file as hyperlink
Replies: 7
Views: 459

Pasting the path of a file as hyperlink

Hi all,

I need to develop a script which pastes the path of a file as an hyperlink rather than simple text which could works at least in word and onenote. Is there any way to do it?
by serbring
09 Oct 2017, 08:23
Forum: Ask For Help
Topic: Script for getting notification when the phone is unlocked
Replies: 1
Views: 169

Script for getting notification when the phone is unlocked

Hi all,

I need to create a script which permits me to get a notification when the phone (with Android OS) is unlocked/locked. How could Autohotkey comunicate with a phone? I tought to use a service like IFTTT or Zapier but I haven't found any useful recipe.

Thank you
by serbring
08 Oct 2017, 13:05
Forum: Ask For Help
Topic: Problems with A_TimeIdlePhysical Topic is solved
Replies: 4
Views: 327

Re: Problems with A_TimeIdlePhysical Topic is solved

Thanks! You gave me really good tips and I created the script which performs as I wanted.
by serbring
07 Oct 2017, 15:41
Forum: Ask For Help
Topic: Problems with A_TimeIdlePhysical Topic is solved
Replies: 4
Views: 327

Re: Problems with A_TimeIdlePhysical Topic is solved

That's true!!!!! that's totally wrong! How can the notification show up only when the user was inactive for more than 5min?
by serbring
07 Oct 2017, 14:24
Forum: Ask For Help
Topic: Problems with A_TimeIdlePhysical Topic is solved
Replies: 4
Views: 327

Problems with A_TimeIdlePhysical Topic is solved

Hi all, I am writing a script which open a notification any time, the computer is re-used by the user showing how long the computer was inative. Unfortunately, it does not work, especially the inactivity time is wrong, since it is always around the threshold value, so I suppose there is something wr...
by serbring
04 Oct 2017, 14:40
Forum: Ask For Help
Topic: Programmable hotkeys
Replies: 2
Views: 216

Re: Programmable hotkeys

That is what I really need!! Thanks it works perfectly.

Cheers
by serbring
04 Oct 2017, 11:57
Forum: Ask For Help
Topic: Programmable hotkeys
Replies: 2
Views: 216

Programmable hotkeys

hi all, I need to develop a script whici assign a variable in function of the pressed hotkey. Something like the following which work fine but it is not a flexibile code, anytime, I need to copy and past the code. Activities[1] :="Unclassified" Activities[2] :="Rome" Activities[3] :="London" ^+1:: {...

Go to advanced search