Messages - BigVent [ switch to compact view ]

Pages: prev1 2 3 4 5 [6] 7 8next
26
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
  5. www.codingsnacks.tk
  6. *
  7. This is the second line
  8. Post new requests here
  9. *
  10. This is the third line
  11. http://www.donationcoder.com
  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. )
  22.  
  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


Enjoy!

~BigVent

27
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
www.codingsnacks.tk
*
This is the second line
Post new requests here
*
This is the third line
https://www.donationcoder.com


~BigVent

28
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.


~BigVent

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

 :P


~BigVent

30
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



~BigVent

Pages: prev1 2 3 4 5 [6] 7 8next
Go to full version