Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Help me if you could


  • Please log in to reply
15 replies to this topic
LoveLace
  • Members
  • 5 posts
  • Last active: Dec 12 2012 07:08 AM
  • Joined: 10 Dec 2012

Well, I wanted to learn to program and or code, could anyone explain to me what's the difference of  programming and coding?
I'm taking up computer engineering at one of the most prestigious schools in my country, but I have an addiction with computer games and didn't go to school for 2 semesters, my parents found out because the university sent them a report card, (which I had made a fake copy of, having high grades haha) so I wont go to school 'til the next semester, anyway, can anyone teach me how to program or code, I'm 16 years old, I am generally patient when it comes to learning but it seems that I might be a bit dull at the moment because of playing mmorpgs everyday for extended periods of time so right now I don't play games, but I made an automated AHK script for my cousin that plays Neopets, I gave him my old account, hahaha. Anyway, thanks for reading my wall of text. Ü



ruespe
  • Members
  • 567 posts
  • Last active: Dec 01 2014 07:59 PM
  • Joined: 17 Jun 2008

Wake up! Grow up!



LoveLace
  • Members
  • 5 posts
  • Last active: Dec 12 2012 07:08 AM
  • Joined: 10 Dec 2012

Wake up! Grow up!

So this post was supposed to help me in what way?
Trying to get your post count higher it seems? LMFAO.

Grow up? Hahaha, I'm 16, it's a no brainer, during this age nowadays kids like games, hell even older people like video games too. Anyway, I don't need to waste my time with you, I came to post here to learn not  to argue with someone on the internet. Just fck off if you can't help instead of posting useless shit.



tidbit
  • Administrators
  • 2709 posts
  • Hates playing Janitor
  • Last active: Jan 15 2016 11:37 PM
  • Joined: 09 Mar 2008

First you should learn how to not be so addicted to games. Learn when it's time to game and when it's time to study or work. Get your addiction under control. Games are not as important as real life & education & $$$. Playing games is fine, but putting it as top priority is not.

 

Coding, programming & scripting are all pretty much the same thing. Just different words. Though, scripting is an 'easier' form of programming. More here. I also don't think I have heard anyone say "coding" professionally. If anything I hear "Software engineer" more often. It sounds more professional.

 

If you made a script already, you seem to know atleast the very basics. So what exactly do you need help with? Otherwise I would suggest studying code that is already made (in the Scripts sections) or help people make stuff (in the Support sections). There is quite the variety in those 2 sections. From ultra simple 1-2 liners to complex multi-thousand lined scripts. Oh, and don't forget about AHK's awesome documentation and community when you have a specific question on how to do X or how does Y work. 


rawr. be very afraid
*poke*
. Populate the AutoHotkey city. Pointless but somewhat fun. .


S0und
  • Members
  • 100 posts
  • Last active: Apr 08 2015 10:07 AM
  • Joined: 16 Feb 2007

http://www.codecadem...m/tracks/python



LoveLace
  • Members
  • 5 posts
  • Last active: Dec 12 2012 07:08 AM
  • Joined: 10 Dec 2012

Hey tidbit, thanks a lot, I may know the basics but honestly I've barely scratched the surface of scripting in AHK, but I wanted to learn more complex things in programming such as making my own mini-game and other desktop/web apps

 

. And about my gaming, I quitted now, I just play like once a week for 2-3 hours, so I could control my urges, sorta because of my inferiority complex and I am afraid of the transition from highschool to college, and no I am no nerd nor a geek, I just like computers, I smoke and drink and have a social life, so no I ain't some crazed up nerd, anyway, enough about my personal problems and thanks for the advice.

 

So I got a pdf copy of a book I recently saw on the internet Jumping into C++ by Alex Allain, yes the book does explain the lines of codes but only with minimal meaning so I was wondering, are there any books out there that could guide me into the programming language that someone would suggest with clear details about the codes, like when I read #include <iostream> I never understood iostream except that it was a header, I mean, what is a header in the programming language? I am looking for a book or a guide that delves into the tiny details as I am a self-learner but I need to understand almost every aspect so that I could mess around with the codes and try to make a sample for myself, as most tutorials/books have sample codes I want to try if I could modify the sample code and add or remove some stuff to make it my sample or a test for easier learning just like how I made AHK check the daily news on yahoo and other sites for my dad with a msgbox to ask if he would like to read the news and close the tabs after reading (since he doesn't learn easily when I teach him text messages).

 

Sorry for the wall of text, sigh, I'm getting frustrated that I might give up on programming when it gets hard? Any tips on how to keep on moving forward with programming? I understand AHK isn't a true language as most professionals may say so please help me get started I don't wanna waste any more of my life. Thank you.



tomoe_uehara
  • Members
  • 2166 posts
  • Last active: Jun 11 2015 05:33 PM
  • Joined: 05 Sep 2009

I understand AHK isn't a true language as most professionals may say so please help me get started I don't wanna waste any more of my life. Thank you.

 

Hmm so learning something new is a waste of time for you?
After I think about that sentence for a while, I came up into something.


For me, those languages are like guns.

In a battlefield we need something we can use to shoot, and there're a lot of choice of guns that you can carry in your mission.
Some people like to use the 'one hit kill' C++/C# sniper rifle, the other person tend to barge in and shoots like a Rambo with his Phyton machinegun, the others prefer the spread hit that is caused from a Java shotgun, the others like to use the lightweight LUA handguns, and there're persons who likes to use the stealthy AHK combat knife.

A person that is still in the training ground may choose his/her favourite gun and master how to use it properly in the battlefield. Even Rambo doesn't use a sniper rifle and a machinegun simultaneusly isn't he?
tongue.png



LoveLace
  • Members
  • 5 posts
  • Last active: Dec 12 2012 07:08 AM
  • Joined: 10 Dec 2012

Hmm so learning something new is a waste of time for you?
After I think about that sentence for a while, I came up into something.


For me, those languages are like guns.

In a battlefield we need something we can use to shoot, and there're a lot of choice of guns that you can carry in your mission.
Some people like to use the 'one hit kill' C++/C# sniper rifle, the other person tend to barge in and shoots like a Rambo with his Phyton machinegun, the others prefer the spread hit that is caused from a Java shotgun, the others like to use the lightweight LUA handguns, and there're persons who likes to use the stealthy AHK combat knife.

A person that is still in the training ground may choose his/her favourite gun and master how to use it properly in the battlefield. Even Rambo doesn't use a sniper rifle and a machinegun simultaneusly isn't he?
tongue.png

Well what I meant by wasting my life was playing games, lol. Anyway, I understand your point, but when you go into the battlefield you must have experience handling almost all types of weapons, I never said anything about using two languages at the same time but it would be really very useful if I had the knowledge about other languages, and no I am not a hater of AHK, actually I even like scripting with AHK, but the thing is, there are limitations on what could be done with AHK even though I barely started. I wanted to learn a more complex language, because with AHK, I can easily teach myself simply by reading the guide and posts of other members or simply looking at lifehacker's guide (just saw it last night). Anyway what I was hoping for is from AHK, to what program should I move on to? Thanks for the reply.



tidbit
  • Administrators
  • 2709 posts
  • Hates playing Janitor
  • Last active: Jan 15 2016 11:37 PM
  • Joined: 09 Mar 2008

hmmm. The examples (such as getting the news) are kinda advanced. I don't think I'll be of to much help with those examples, sorry.

As another learning resource (and for random chat) you should drop by the IRC: http://www.autohotke...just-add-water/

real-time chat with fun & mostly helpful people.


rawr. be very afraid
*poke*
. Populate the AutoHotkey city. Pointless but somewhat fun. .


awannaknow
  • Members
  • 372 posts
  • Last active: Mar 03 2019 05:18 AM
  • Joined: 14 Jun 2009

http://www.autohotke...cs/Tutorial.htm


Your scripts online or anything you'll need online for free with 0hna.tk  like: Zero $ Hosting No Ad Free Online Hosting
Remove comments and blank lines in AHK code

tidbit
  • Administrators
  • 2709 posts
  • Hates playing Janitor
  • Last active: Jan 15 2016 11:37 PM
  • Joined: 09 Mar 2008

I made a news msgbox that shows the most popular news articles on yahoo.

my COM is rusty and I don't really know it well, so my technical terms and ability to teach you properly are low. however, I did try to comment it. Hopefully you can learn from it, or someone can explain it better.

 

 

 

#SingleInstance force

; ---------------------------------------
; ------------- HTTPREQUEST -------------
; ---------------------------------------
; this is COM stuff.
; This section gets the XML data from yahoos RSS news feed
; I'm no CO expert so I don't really know any of the technical terms or how it works ...
; ... I just read the confusing documentation until it works.

url=http://rss.news.yahoo.com/rss/mostviewed             ; the URL to the news feed.
WebRequest := ComObjCreate("WinHttp.WinHttpRequest.5.1") ; This gets a pointer (I think) to the WinHttpRequest thingy created.
WebRequest.Open("GET", url)                              ; This sends a GET request to the specified website
WebRequest.Send()                                        ; ???
xmldata:=WebRequest.ResponseText                         ; now we get the actual text, the XML data. we save it to a variable: xmldata
; show us the retrieved XML
; MsgBox, %xmldata%


; -------------------------------
; ------------- XML -------------
; -------------------------------
; this is COM stuff.
; this section parses the retrieved XML data using Microsofts built-in XML COM stuff.
; documentation link for things such as selectSingleNode: http://msdn.microsof...s757878(v=vs.85).aspx

doc:=ComObjCreate("MSXML2.DOMdocument.6.0")  ; Get & create a pointer to some XML object thingy.
doc.async := false                           ; ???
doc.loadXML(xmldata)                         ; Load the data we got above into an XML object.


; this while-loop parses all "title" nodes in the XML data  until there is 
; ... no more nodes with a title (its 'text' [gathered from the .text method] will be blank)
; != means "not equal" and "" checks if something is blank. 

while (doc.selectSingleNode("/rss/channel/item[" A_Index "]/title").text!="")
   ListOfTitles.=A_Index ". " doc.selectSingleNode("/rss/channel/item[" A_Index "]/title").text "`n"
   
; the .= operator appends stuff to the end of a variable. `n means "make a new line"
; so the variable ListOfTitles appends a counter (a_index) followed by some ...
; ... XML COM stuff to get the text of the current node (based off of a_index), followed by
; ... a new line, to start the next index from the loop.


; here we display some simple msgboxes. `n makes a newline. 
msgbox, Top headlines from Yahoo:`n-----`n%ListOfTitles%
msgbox, note: this is a simple example. Yahoo News has URLs`, descriptions and other information. I kept this simple by only getting the titles. You could combine all the data and make a fully featured news app.
ExitApp

 

 

rawr. be very afraid
*poke*
. Populate the AutoHotkey city. Pointless but somewhat fun. .


LoveLace
  • Members
  • 5 posts
  • Last active: Dec 12 2012 07:08 AM
  • Joined: 10 Dec 2012

 

I made a news msgbox that shows the most popular news articles on yahoo.

my COM is rusty and I don't really know it well, so my technical terms and ability to teach you properly are low. however, I did try to comment it. Hopefully you can learn from it, or someone can explain it better.

 

 

 

#SingleInstance force

; ---------------------------------------
; ------------- HTTPREQUEST -------------
; ---------------------------------------
; this is COM stuff.
; This section gets the XML data from yahoos RSS news feed
; I'm no CO expert so I don't really know any of the technical terms or how it works ...
; ... I just read the confusing documentation until it works.

url=http://rss.news.yahoo.com/rss/mostviewed             ; the URL to the news feed.
WebRequest := ComObjCreate("WinHttp.WinHttpRequest.5.1") ; This gets a pointer (I think) to the WinHttpRequest thingy created.
WebRequest.Open("GET", url)                              ; This sends a GET request to the specified website
WebRequest.Send()                                        ; ???
xmldata:=WebRequest.ResponseText                         ; now we get the actual text, the XML data. we save it to a variable: xmldata
; show us the retrieved XML
; MsgBox, %xmldata%


; -------------------------------
; ------------- XML -------------
; -------------------------------
; this is COM stuff.
; this section parses the retrieved XML data using Microsofts built-in XML COM stuff.
; documentation link for things such as selectSingleNode: http://msdn.microsof...s757878(v=vs.85).aspx

doc:=ComObjCreate("MSXML2.DOMdocument.6.0")  ; Get & create a pointer to some XML object thingy.
doc.async := false                           ; ???
doc.loadXML(xmldata)                         ; Load the data we got above into an XML object.


; this while-loop parses all "title" nodes in the XML data  until there is 
; ... no more nodes with a title (its 'text' [gathered from the .text method] will be blank)
; != means "not equal" and "" checks if something is blank. 

while (doc.selectSingleNode("/rss/channel/item[" A_Index "]/title").text!="")
   ListOfTitles.=A_Index ". " doc.selectSingleNode("/rss/channel/item[" A_Index "]/title").text "`n"
   
; the .= operator appends stuff to the end of a variable. `n means "make a new line"
; so the variable ListOfTitles appends a counter (a_index) followed by some ...
; ... XML COM stuff to get the text of the current node (based off of a_index), followed by
; ... a new line, to start the next index from the loop.


; here we display some simple msgboxes. `n makes a newline. 
msgbox, Top headlines from Yahoo:`n-----`n%ListOfTitles%
msgbox, note: this is a simple example. Yahoo News has URLs`, descriptions and other information. I kept this simple by only getting the titles. You could combine all the data and make a fully featured news app.
ExitApp

 

 

 

Wow, thanks, even though I don't understand much of the script, I usually just need some examples so I could take apart the script and try to uderstand what do the codes mean, thanks. Cheers mate.



Morpheus
  • Members
  • 475 posts
  • Last active: Oct 21 2014 11:08 AM
  • Joined: 31 Jul 2008

I might study that as well tidbit. Thanks!


Any code that I post will be for AHK Basic.
I'm not always right, but I still try to help.

Leef_me
  • Moderators
  • 8510 posts
  • Last active: Sep 10 2015 05:50 AM
  • Joined: 08 Apr 2009

Your reply to ruespe was not called for.

 

If you have problems go to your parents and talk to them.

They are your >>>ultimate<<< support group.

 

Your parents have invested >years< in rasing you up.

 

In my case, and presumable in your case, your parents tell you "I love you"

Do you know what "I love you" looks like ?

 

Have you ever smelled a dirty diaper?  How about 3 to 5 a day for many months?

Have you ever seen someone stay up all night with a sick child?

 

 

I would venture to say, your lying to them (by faking a report card) is like

taking their only copy of a photo showing you starting to walk, and puting it through a paper shredder.

 

 

 



ruespe
  • Members
  • 567 posts
  • Last active: Dec 01 2014 07:59 PM
  • Joined: 17 Jun 2008

Dear me no, Leef_me, that's good. But don't be too hard to him. He is young. The world belongs to him. And it seems, he's on a good way already.

 

And who knows, what's his christmas gift to his parents... Without paying only 1 cent...