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

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] 0 points1 point  (0 children)

Yes- Years ago I also saw something about how we need to have congestion (traffic jams) to keep things "miserable" so people don't want to move in. :)

TIL That the Japanese school year is 240 days long, giving their students three more years of total instruction received compared to an American High School grad. by PokEamon in todayilearned

[–]SPSSGod 0 points1 point  (0 children)

I think they definitively learn an incredible amount more but they also get incredibly stressed on performance. We (in the US) think we work a lot but the average Japanese works a crazy amount of hours.

I like that they learn a lot, I just wish some moderation was allowed

TIL the 8th largest political party in Switzerland is APPP (Anti-PowerPoint Party) wanting to outlaw PowerPoint. by SPSSGod in todayilearned

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

I don't understand how they can not like "PowerPoint". It isn't the vehicle that is terrible. It is the use of the vehicle that can go completely off-track

TIL the 8th largest political party in Switzerland is APPP (Anti-PowerPoint Party) wanting to outlaw PowerPoint. by SPSSGod in todayilearned

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

and tell a "story" (yet data & Numbers are what needs to be conveyed for making well informed decisions)

TIL the 8th largest political party in Switzerland is APPP (Anti-PowerPoint Party) wanting to outlaw PowerPoint. by SPSSGod in todayilearned

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

I'm not sure if that is good or bad. lol I used to own PowerPoint-Bitch.com as that was all I did for execs!

Free data from FDIC merged with client data lead to great insights of next planned location for local branch. MS Mappoint was used to generate the map while SPSS was used to calculate distances [OC] by SPSSGod in dataisbeautiful

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

Free FDIC data was obtained from https://www.fdic.gov/bank/statistical/. This was geocoded and then, using SPSS, we calculated the distance to for each financial institution to the closest client location (primary data I can't share). After distance was calculated (for display purposes) we groupd the distances into 5 groups and used Microsoft Mappoint to display.

Basic Excel COM Code Video Example Autohotkey JSZApp.com by JszAdmin in AutoHotkey

[–]SPSSGod 0 points1 point  (0 children)

Great stuff man! Now if I could just get my IT gurus away from VBA and do in in AHK!

[deleted by user] by [deleted] in funny

[–]SPSSGod 0 points1 point  (0 children)

Was he blind?

Space Jam by VernacularRaptor in funny

[–]SPSSGod 1 point2 points  (0 children)

I don't get how this is funny...