Search found 413 matches

by Sabestian Caine
Yesterday, 10:38
Forum: Ask For Help
Topic: HttpQuery function not working and showing empty msgbox, while it should show html codes of page?
Replies: 9
Views: 663

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: 9
Views: 663

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: 9
Views: 663

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: 9
Views: 663

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: 9
Views: 663

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: 103

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: 136

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: 349

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: 2
Views: 356

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: 2
Views: 356

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: 349

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: 221

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: 120

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...
by Sabestian Caine
10 Jun 2019, 11:04
Forum: Ask For Help
Topic: Why is OnMessage Function not working?
Replies: 1
Views: 116

Why is OnMessage Function not working?

Hello Friends.. Please look at these codes- OnMessage(0x200, "fn") ; 0x200 is window message for mouse move fn() { MsgBox, You are moving Mouse Pointer!!! } When i run these codes, it should show msgbox saying You are moving Mouse Pointer!!! when i move my mouse pointer, but it is doing nothing. Whe...
by Sabestian Caine
10 Jun 2019, 08:19
Forum: Ask For Help
Topic: How to make fn() function work in this simple GUI? Topic is solved
Replies: 5
Views: 216

Re: How to make fn() function work in this simple GUI? Topic is solved

There are several errors in your approach. g1: fn(v2, v1) return If you want to pass the contents of the control variables to the function, you have to get the current contents of the controls by either Gui, Submit, ... or GuiControlGet, ... prior to this. gui, Submit, NoHide This updates the globa...
by Sabestian Caine
10 Jun 2019, 08:17
Forum: Ask For Help
Topic: How to make fn() function work in this simple GUI? Topic is solved
Replies: 5
Views: 216

Re: How to make fn() function work in this simple GUI? Topic is solved

Odlanir wrote:
10 Jun 2019, 05:23

Code: Select all

Gui Add, Edit, w200 vv1 gg1
Gui Add, Edit, w200 vv2
Gui Show
Return

g1:
gui, Submit, NoHide
fn("v2", v1)
return

fn(param1, param2) {
    GuiControl,,%param1%, % param2*100
}
ExitApp
Thanks dear Odlanir... Now codes are working... Thanks a lot ... :clap:
by Sabestian Caine
10 Jun 2019, 02:02
Forum: Ask For Help
Topic: How to make fn() function work in this simple GUI? Topic is solved
Replies: 5
Views: 216

How to make fn() function work in this simple GUI? Topic is solved

Hello Friends.. Please look at these codes- Gui Add, Edit, x165 y66 w120 h21 vv1 gg1 Gui Add, Edit, x365 y63 w120 h21 vv2 Gui Show, w620 h420, Window Return g1: fn(v2, v1) return fn(param1, param2) { gui, Submit, NoHide GuiControl,,param1, % param2*100 } The above codes are not working. While the fo...
by Sabestian Caine
09 Jun 2019, 13:25
Forum: Ask For Help
Topic: How to instantly duplicate the current line (i.e. make a copy of current line & paste in next line) M S Word and Notepad Topic is solved
Replies: 7
Views: 269

Re: How to instantly duplicate the current line (i.e. make a copy of current line & paste in next line) M S Word and Not Topic is solved

At the moment I got only an old Word 2003 to test it but this works in this version f8:: oWord := ComObjActive("Word.Application") selection := oWord.selection Selection.HomeKey(wdLine:=5) Selection.EndKey(wdLine, wdExtend:=1) currentline := Selection.Range Selection.HomeKey(wdLine) Selection.TypeT...
by Sabestian Caine
09 Jun 2019, 13:24
Forum: Ask For Help
Topic: How to instantly duplicate the current line (i.e. make a copy of current line & paste in next line) M S Word and Notepad Topic is solved
Replies: 7
Views: 269

Re: How to instantly duplicate the current line (i.e. make a copy of current line & paste in next line) M S Word and Not Topic is solved

I've been using the following: #IfWinActive ahk_class Notepad ^d:: ;notepad - send text - duplicate line ControlGet, hCtl, Hwnd,, Edit1, A ControlGet, vLineNum, CurrentLine,,, % "ahk_id " hCtl ControlGet, vText, Line, % vLineNum-1,, % "ahk_id " hCtl Control, EditPaste, % vText,, % "ahk_id " hCtl re...
by Sabestian Caine
09 Jun 2019, 11:55
Forum: Ask For Help
Topic: How to instantly duplicate the current line (i.e. make a copy of current line & paste in next line) M S Word and Notepad Topic is solved
Replies: 7
Views: 269

Re: How to instantly duplicate the current line (i.e. make a copy of current line & paste in next line) M S Word and Not Topic is solved

the above codes are working fine, but I want more professional way to do that. Like in scite it provides the facility to duplicate the current line by shortcut key ctrl+d and in AHK studio it has built in shortcut key f2. Please tell me how to do this in MS Word and in Notepad? The script you poste...

Go to advanced search