Search found 420 matches

by Sabestian Caine
23 Jul 2019, 12:39
Forum: Ask For Help
Topic: How to extract only first paragraph from Wikipedia using API Calls? Topic is solved
Replies: 9
Views: 1150

Re: How to extract only first paragraph from Wikipedia using API Calls? Topic is solved

in the above image you can see the paragraph marked in red box, i want to grab it and show it into msgbox using API calls. It's not clear what you meant by «API calls». @TheDewd gave you an example how to do it using MediaWiki API —> query —> extracts . However, I suppose you wanted to ask how to d...
by Sabestian Caine
22 Jul 2019, 00:02
Forum: Ask For Help
Topic: How to extract only first paragraph from Wikipedia using API Calls? Topic is solved
Replies: 9
Views: 1150

Re: How to extract only first paragraph from Wikipedia using API Calls? Topic is solved

but in the above codes it is returning the data in html, please tell me why so? I don't understand your question. The 1st code from TheDewd returns a json format, and the 2nd returns a xml format, both are correct as expected. oh!!! I didn't notice that... got confused... Thanks a lot dear tmplinsh...
by Sabestian Caine
21 Jul 2019, 11:33
Forum: Ask For Help
Topic: How to extract only first paragraph from Wikipedia using API Calls? Topic is solved
Replies: 9
Views: 1150

Re: How to extract only first paragraph from Wikipedia using API Calls? Topic is solved

Open https://en.wikipedia.org, go to the bottom of the page, there is a Developers link. Open it, and in the Developers page there is a Web APIs link.. :beer: Thanks dear tmplinshi for your kind reply... Could you please tell me one more thing- I would like to ask that when we make and api call the...
by Sabestian Caine
20 Jul 2019, 11:43
Forum: Ask For Help
Topic: How to extract only first paragraph from Wikipedia using API Calls? Topic is solved
Replies: 9
Views: 1150

Re: How to extract only first paragraph from Wikipedia using API Calls? Topic is solved

url := "https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro&explaintext&redirects=1&titles=AutoHotkey" whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr.Open("POST", url, false) whr.Send() html := whr.ResponseText RegExMatch(html, """extract"":""(.*?)""}", Match) M...
by Sabestian Caine
19 Jul 2019, 11:14
Forum: Ask For Help
Topic: How to extract only first paragraph from Wikipedia using API Calls? Topic is solved
Replies: 9
Views: 1150

How to extract only first paragraph from Wikipedia using API Calls? Topic is solved

Hello friends.. I am trying to learn API calls. I want to grab only first paragraph and show it into msgbox from this site - https://en.wikipedia.org/wiki/AutoHotkey Please look at this image- 19_07_19 @9_37_02.PNG in the above image you can see the paragraph marked in red box, i want to grab it and...
by Sabestian Caine
18 Jul 2019, 12:08
Forum: Ask For Help
Topic: HttpQuery function not working and showing empty msgbox, while it should show html codes of page?
Replies: 10
Views: 1341

Re: HttpQuery function not working and showing empty msgbox, while it should show html codes of page?

Sorry, I have not been interested in that topic, can't say anything. How about to ask @Joe Glines? :) Thanks a lot dear teadrinker... You really helped me a lot... thanks for your kind support.. Sir, please tell me one last thing- what is requestheaders which you used in your codes like- whr.SetReq...
by Sabestian Caine
17 Jul 2019, 10:38
Forum: Ask For Help
Topic: HttpQuery function not working and showing empty msgbox, while it should show html codes of page?
Replies: 10
Views: 1341

Re: HttpQuery function not working and showing empty msgbox, while it should show html codes of page?

Sorry, I have not been interested in that topic, can't say anything. How about to ask @Joe Glines? :) Thanks a lot dear teadrinker... You really helped me a lot... thanks for your kind support.. Sir, please tell me one last thing- what is requestheaders which you used in your codes like- whr.SetReq...
by Sabestian Caine
16 Jul 2019, 12:17
Forum: Ask For Help
Topic: HttpQuery function not working and showing empty msgbox, while it should show html codes of page?
Replies: 10
Views: 1341

Re: HttpQuery function not working and showing empty msgbox, while it should show html codes of page?

The POST request is used in cases, when you need to send to the server some data, such as a file, JSON string or password/login. Unfortunately, there is no simple example to demonstrate this. The following code sends an image file to imgur.com and receives a JSON string that contains the identifier...
by Sabestian Caine
14 Jul 2019, 11:48
Forum: Ask For Help
Topic: HttpQuery function not working and showing empty msgbox, while it should show html codes of page?
Replies: 10
Views: 1341

Re: HttpQuery function not working and showing empty msgbox, while it should show html codes of page?

As i want to make a POST request in https://cmyip.com/ then what should i do? The type of the request is here: whr.Open(" GET ", url, false) , so if you want to sent POST request, specify: whr.Open(" POST ", url, false) , but in this case you don't need it. As I want to search this ip address - 169...
by Sabestian Caine
14 Jul 2019, 10:04
Forum: Ask For Help
Topic: HttpQuery function not working and showing empty msgbox, while it should show html codes of page?
Replies: 10
Views: 1341

Re: HttpQuery function not working and showing empty msgbox, while it should show html codes of page?

@Sabestian Caine The library you use is very-very outdated, just don't use it. You could using something like this instead: url := "https://cmyip.com/" whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr.Open("GET", url, false) whr.Send() MsgBox, % html := whr.ResponseText RegExMatch(html, "(\d+\...
by Sabestian Caine
14 Jul 2019, 02:34
Forum: Ask For Help
Topic: HttpQuery function not working and showing empty msgbox, while it should show html codes of page?
Replies: 10
Views: 1341

HttpQuery function not working and showing empty msgbox, while it should show html codes of page?

Hello friends.. I want to get full html codes from https://cmyip.com/ as shown in this video- https://www.youtube.com/watch?v=wTYhMgZNB8M&t=243s for this i tried to use these codes- httpQuery(url, "https://cmyip.com/") VarSetCapacity(url,-1) MsgBox % url ; Below, there is httpQuery Function's codes ...
by Sabestian Caine
07 Jul 2019, 09:38
Forum: Ask For Help
Topic: How to remove duplicate functions?
Replies: 1
Views: 264

How to remove duplicate functions?

I include two scripts into my main script and they are- screen clip.ahk and - Gdip_All.ahk but when i try to run my main script then it says duplicate function definition . I tried to remove many functions manually but there are tons of functions which are same in both the above files. Is there any ...
by Sabestian Caine
02 Jul 2019, 10:22
Forum: Offtopic
Topic: How much can JAVA help me to learn AutoHotKey?
Replies: 0
Views: 451

How much can JAVA help me to learn AutoHotKey?

I want to learn more advanced stuff in ahk like DllCalls, PostMessages etc. Now a days I am learning JAVA Language, so Please tell me to what extent it can help me learning AHK? So far, I have got much familiar with the concept of Classes in ahk, since I have started learning java. Earlier I was qui...
by Sabestian Caine
30 Jun 2019, 14:18
Forum: Ask For Help
Topic: ComObj producing error in Excel. First time codes run successfully, but show error when run next time. Why?
Replies: 5
Views: 639

Re: ComObj producing error in Excel. First time codes run successfully, but show error when run next time. Why?

Thanks dear aifritz and flyingDman for your great help...

adding xlapp:="" at the end of codes, has solved this problem...

Thanks a lot once again... :bravo:
by Sabestian Caine
30 Jun 2019, 14:15
Forum: Offtopic
Topic: Is there anyone from India?
Replies: 3
Views: 1468

Re: Is there anyone from India?

contact user 'SKAN' ------------------------- some jokes Harmbengen about indians -Trump wants to deport millions of illegal immigrants. -So all except us ? https://i.imgur.com/gaE2KqS.jpg Trump tweet about indians / fake news ... https://i.imgur.com/vcyFNPl.jpg Thanks dear garry for your kind repl...
by Sabestian Caine
30 Jun 2019, 05:40
Forum: Offtopic
Topic: Is there anyone from India?
Replies: 3
Views: 1468

Is there anyone from India?

Hello Friends...

Is there anyone here from India. I am from India and want to be in connect with anyone Indian who is good at AutoHotKey also. I have been using ahk since last 6 years but I have not come across anyone who is from India as well as know about ahk. Very strange.
by Sabestian Caine
30 Jun 2019, 05:13
Forum: Ask For Help
Topic: ComObj producing error in Excel. First time codes run successfully, but show error when run next time. Why?
Replies: 5
Views: 639

ComObj producing error in Excel. First time codes run successfully, but show error when run next time. Why?

Hello Friends.. When I first time open MS Excel and runs these code then they successfully run and add new sheet into my currently opened workbook- xlapp:=ComObjActive("excel.application") xlapp.sheets.Add But, when i close the currently opened workbook and then open a new workbook and run these cod...
by Sabestian Caine
18 Jun 2019, 13:36
Forum: Ask For Help
Topic: How to change the icon of compiled script namedly .exe file (not tray icon)?
Replies: 3
Views: 471

How to change the icon of compiled script namedly .exe file (not tray icon)?

I want to change the icon of compiled script permanently. Most of the stuff is available about changing the tray icon, but i want to change the icon of .exe file as shown below- 19_06_19 @12_01_21.PNG I want to change the above icon permanently. I tried to follow the steps as told in documentation h...
by Sabestian Caine
16 Jun 2019, 13:46
Forum: Ask For Help
Topic: Why this msgbox showing empty while it should show 6?
Replies: 1
Views: 252

Why this msgbox showing empty while it should show 6?

My codes are- obj:= new Tm obj.fn1(6) class Tm{ fn1(ss){ gui,Destroy SetTimer,aa,On SetTimer,bb,Off SetTimer,aa,5000 return aa: MsgBox % ss ; Please tell why it is showing empty here while i am passing 6 in function call above? Please tell... gui, destroy gui, font, s15, Times New Roman bold Gui, +A...

Go to advanced search