avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • October 17, 2019, 05:39 PM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - BigVent [ switch to compact view ]

Pages: prev1 [2]
Post New Requests Here / Re: Line to clip
« on: April 29, 2013, 01:11 PM »
To verify the code above works correctly:

Code: Autohotkey [Select]
  1. var =
  2. (
  3. *
  4. This is the first line
  6. *
  7. This is the second line
  8. Post new requests here
  9. *
  10. This is the third line
  12. *
  13. 4th line in file
  14. blah blah
  15. more junk
  16. *
  17. 5th line in file
  18. blah blah more
  19. junk
  20. junk
  21. )
  23. set_f=0
  24. loop, parse, var, `n, `r
  25. {
  26.         if (set_f=="1")
  27.         {
  28.                 msg_output .= A_LoopField . "`n"
  29.                 set_f=0
  30.         }
  31.         if (A_LoopField=="*")  ;if line equals * per request... the next line is obtained -- append to variable
  32.                 set_f=1
  33. }
  34. msgbox % msg_output
  35.    exitapp



Post New Requests Here / Re: Line to clip
« on: April 27, 2013, 08:37 PM »
Save the quote below as "clip.txt" in the same folder as your ahk or exe.

It works here on three different OS's.  Can anyone else confirm?

This is the first line
This is the second line
Post new requests here
This is the third line


Updated version:

  • Added a few tray menu items (right click icon & view options)
  • Removed the dynamic hotkeys all together
  • Added Email & TXT functionality -- enter email or txt information separated by semicolons (e.g. [email protected]; [email protected])
  • Change your location or email information easily

Please let me know if you see anything that can be improved.


@tomos:  You're correct!  Or at least it's the theory I'm counting on.



Updated version:

* Dynamic Hotkeys have been added (editable txt file that is created so you can use your own)
* Menu tray items have also been added (right click the icon near the clock versus using hotkeys)
    *possibly* do away with hotkeys all together if the menu tray items are the preferred method
* Consolidated arrays, functions, and other items for better efficiency

  • Working on text & email functionality


I was just curious on how to write an ahk script to grab the website's data/elements and the notification function.

This is my typical setup for using COM to obtain data from a webpage.
(I know... I know... using IE yuk!)

Code: Autohotkey [Select]
  1. onexit, exitsub
  3. pwb := ComObjCreate("InternetExplorer.Application")
  4.     pwb.Visible := true
  5.         pwb.Navigate("")
  6.             while pwb.ReadyState <> 4
  7.                 continue
  9. msgbox % pwb.document.documentElement.outerHTML   ;will show the source code for
  10.    pwb.Quit
  11.    pwb := ""
  12.       Exitapp
  14. +Esc::   ;shift + esc will exitapp
  15. exitsub:
  16.        pwb.Quit
  17.         pwb := ""

The notification process came from seeing what data I could obtain & then creating (functions/checks) based upon that data.


I'm very happy to help psionics!  Hopefully it'll get good use & alert people as needed.

Here's an updated version:

* to have an option to save the settings - this is for running the apps in windows startup
     * Updated with save settings (once you've declared what area you are in, the program will adhere to that area until file is deleted)
          File exists in the script directory "pagasa_loc.txt  -- if you selected to remember your location
* able to change shortcut keys(to prevent conflict)
     * I will add dynamic hotkeys at a later time
* able to see the last result by clicking the icon(without refreshing)
     * Results can be viewed by pressing F9 hotkey
* its really neat to have an email or sms function
     * Email & sms functionality added (at a later time I will create a file for settings)

* Fixed memory leak (specifically multiple instances of iexplore.exe)
* Fixed HTML handler for different OS (specifically Vista & Win 7)
* Fixed inconsistencies of display variables

May I ask who would use or modify the source if it's given?



   I know this is an older topic... so here's a little something to try.  If you would please provide feedback.

This program checks this site for updated information every 30 minutes. From what I could tell this site appears to be reputable & gives correct data. (please confirm)

F10: Opens the link to the website so you can view it first hand
F11: Updates the findings so you  can refresh earlier than 30 minutes
F12: Displays the beginning msgbox so you can view the controls
Shift + Esc: Exits the program

When an alert, alarm, or critical are triggered we could setup an (email / text) notification that will find your cell phone or other device.

I'm open for ideas, additions, anything that could help.


Thank you all for the warm welcome!

Hello everyone!  Skwire told me about this great community & forums so I've decided to join & hopefully contribute. 

I'm an IT Consultant that primarily focuses on networks, programming, security, *insert IT need(s) here*.  Lately I've setup a few outdoor WiFi networks around various (boat / lodge) marinas & lakes. (few "free" & mostly "pay-as-you-go" WiFi networks)

Location: I'm a few clicks SW from Central Arkansas

Very nice to meet you all!

Post New Requests Here / Re: Line to clip
« on: April 10, 2013, 12:06 PM »
Hey Contro,

Not sure if you still needed this or not (since it's dated Dec 2012) so I'll kill two birds with one proverbial stone.

1.) My first post on the forums and hey to everyone!  "Hey" o/
2.) To address your needs

Code: Autohotkey [Select]
  1. ;FileDelete, output.txt  ;deletes the output file -- uncomment along with FileAppend below if you so chose
  2. FileRead, Contents, %A_ScriptDir%\clip.txt  ;place your text file with *'s in this directory & change name from clip.txt to anything
  3.         if not ErrorLevel
  4.         {
  5.                 set_f=0
  6.                 loop, parse, Contents, `n, `r
  7.                 {
  8.                         if (set_f=="1")
  9.                         {
  10.                                 ;FileAppend, %A_LoopField%`n, output.txt  ;uncomment this line to create an output file
  11.                                 msg_output .= A_LoopField . "`n"
  12.                                 set_f=0
  13.                         }
  15.                         if (A_LoopField=="*")
  16.                                 set_f=1
  17.                 }
  18.         }
  19. clipboard := msg_output  ;sets lines after * equal  to clipboard

Hope this helps!

Pages: prev1 [2]