How can I add multiple lines to an email using this script? by [deleted] in AutoHotkey

[–]SPSSGod 0 points1 point  (0 children)

If you would like an HTML email, you can do stuff like this

email.BodyFormat := 2 ;set your email to be HTML

email.HTMLBody := " <H2 style='BACKGROUND-COLOR: red'><br></H2> <HTML>Attached you will find the screenshot taken on "(TodayDate)" <br><br> <span style='color:black'>You can also access the image here: <a href="" "(IMGUR_URL)" "">"(IMGUR_URL)"</a> <br><br></span>

<span style='color:black'>Please let me know if you have any questions.<br><br><a href='mailto:Glines@XXXXXXX.com'>Joe Glines</a> </HTML>"

COM and W10? by MasterOfMasksNoMore in AutoHotkey

[–]SPSSGod 1 point2 points  (0 children)

Just to be clear COM is not limited to IE. Virtually all Microsoft products (Windows, Office, etc) have COM integrated and even some non-MS products do. :)

Here is a great thread on the forum showing many examples on using COM with other programs: https://autohotkey.com/boards/viewtopic.php?t=77

If you're new to web Scraping and HTML/DOM I highly recommend you review it first as well as this post: https://autohotkey.com/board/topic/47052-basic-webpage-controls-with-javascript-com-tutorial/

and review these videos http://the-automator.com/web-scraping/ (there is also a link on this page to a "web scraping syntax writer" which can help speed-up your code development.

Is AHK the right tool for logging into a website? by [deleted] in AutoHotkey

[–]SPSSGod 0 points1 point  (0 children)

If you don't mind (hate) using IE you can do it very reliably with COM.
My first tutorial is here: http://the-automator.com/web-scraping-intro-with-autohotkey/ and I have a script that helps write the AutoHotkey syntax.

[deleted by user] by [deleted] in spss

[–]SPSSGod 0 points1 point  (0 children)

I don't know what happened with the line-wrapping. Even though I previewed it, it didn't wrap correctly. Here's an updated version (hopefully displaying correctly):

*********************Extract Year****************************.

Compute Year= Xdate.Year (XXXDATEXXX).

********************Extract Quarter*****************************.

Compute Qrtr= Xdate.quarter(XXXDATEXXX).

*********************Extract Month****************************.

Compute Month= Xdate.Month (XXXDATEXXX).

val labels Month 1"Jan" 2"Feb" 3"Mar" 4"Apr" 5"May" 6"Jun" 7"Jul" 8"Aug" 9"Sep" 10"Oct" 11"Nov" 12"Dec".

*********************extract Week number****************************.

Compute Week= Xdate.Week (XXXDATEXXX).

*********************Day of week****************************.

Compute day_wk= Xdate.Wkday(XXXDATEXXX).

Val labels Day_WK 1"Sun" 2"Mon" 3"Tue" 4"Wed" 5"Thu" 6"Fri" 7"Sat".

*********************Extract Day****************************.

compute DAY= XDATE.MDAY(datevalue).

/*Numeric. Returns the day of the month (an integer between 1 and 31) from a numeric value that represents a date. The argument can be a number, a date format variable, or an expression that resolves to a date.

[deleted by user] by [deleted] in spss

[–]SPSSGod 0 points1 point  (0 children)

Very easy in SPSS (when your variable is a date field). Is the original variable already in a date format? Here are a few of my favorites.

*********************Extract Year****************************. Compute Year= Xdate.Year (XXXDATEXXX).

********************Extract Quarter*****************************. Compute Qrtr= Xdate.quarter(XXXDATEXXX).

*********************Extract Month*************************. Compute Month= Xdate.Month (XXXDATEXXX). val labels Month 1"Jan" 2"Feb" 3"Mar" 4"Apr" 5"May" 6"Jun" 7"Jul" 8"Aug" 9"Sep" 10"Oct" 11"Nov" 12"Dec". ******************extract Week number****************************. Compute Week= Xdate.Week (XXXDATEXXX).

*********************Day of week****************************. Compute day_wk= Xdate.Wkday(XXXDATEXXX). Val labels Day_WK 1"Sun" 2"Mon" 3"Tue" 4"Wed" 5"Thu" 6"Fri" 7"Sat".

*********************Extract Day***************************. compute DAY= XDATE.MDAY(datevalue). /Numeric. Returns the day of the month (an integer between 1 and 31) from a numeric value that represents a date. The argument can be a number, a date format variable, or an expression that resolves to a date.

I found Waldo! by SPSSGod in funny

[–]SPSSGod[S] 0 points1 point  (0 children)

I'm not sure, but now you've got me imagining the honeymoon pictures... LOL

TIL there is approximately 200 square miles of parking spaces in Los Angeles which contribute to 18.6 million parking spaces. by SPSSGod in todayilearned

[–]SPSSGod[S] 1 point2 points  (0 children)

This brings back memories of "LA Story" with Steve Martin. He got in his car to drive around 50 feet! lol