Search found 402 matches

by Sabestian Caine
21 Apr 2019, 09:50
Forum: Ask For Help
Topic: I am unable to return multiple values form a function using ByRef in function parameter. Please help. Topic is solved
Replies: 7
Views: 297

Re: I am unable to return multiple values form a function using ByRef in function parameter. Please help. Topic is solved

Slightly off-topic: Instead of using ByRef parameters you might want to return an object: #NoEnv tom := new student sam := new student obj := new student tom.insert_marks(10, 20) ; I insert Tom's computer and English marks sam.insert_marks(30, 55) ; I insert Sam's computer and English marks retobj ...
by Sabestian Caine
21 Apr 2019, 09:49
Forum: Ask For Help
Topic: I am unable to return multiple values form a function using ByRef in function parameter. Please help. Topic is solved
Replies: 7
Views: 297

Re: I am unable to return multiple values form a function using ByRef in function parameter. Please help. Topic is solved

Note: I've called the class 'student' instead of 'students' to be less confusing. I'd do something like this: tom := new student sam := new student obj := new student tom.insert_marks(10, 20) ; I insert Tom's computer and English marks sam.insert_marks(30, 55) ; I insert Sam's computer and English ...
by Sabestian Caine
20 Apr 2019, 13:43
Forum: Ask For Help
Topic: I am unable to return multiple values form a function using ByRef in function parameter. Please help. Topic is solved
Replies: 7
Views: 297

Re: I am unable to return multiple values form a function using ByRef in function parameter. Please help. Topic is solved

2 ideas. fn(5,15) MsgBox %a% MsgBox %b% fn(ByRef x, ByRef y) { global a, b a:=x+10 b:=y+25 } x:=5, y:=15 fn(x,y) MsgBox %x% MsgBox %y% fn(ByRef x, ByRef y) { x+=10 y+=25 } Thanks dear jeeswg for your great reply.. Please solve my one more problem- I want to return two values from a function (method...
by Sabestian Caine
20 Apr 2019, 12:57
Forum: Ask For Help
Topic: I am unable to return multiple values form a function using ByRef in function parameter. Please help. Topic is solved
Replies: 7
Views: 297

I am unable to return multiple values form a function using ByRef in function parameter. Please help. Topic is solved

Hello friends...

friends, this is not working-

Code: Select all

fn(5,15)
MsgBox %a% ; showing nothing while it should show 15
MsgBox %b% ; showing nothing while it should show 40

fn(ByRef x, ByRef y)
{
 a:=x+10
 b:=y+25
}
Please help me and solve this issue. Please tell where i am wrong.

Thanks a lot..
by Sabestian Caine
08 Apr 2019, 12:27
Forum: Ask For Help
Topic: How to get and set values in a web-page using API Calls? Please help.
Replies: 4
Views: 275

Re: How to get and set values in a web-page using API Calls? Please help.

The term Windows API (API simply means "application programming interface") usually refers to the lower-level workings of the Windows operating system. AutoHotkey uses this interface to do most of the things it can do via its C++ source code which wraps the Windows API for easier handling into AHK ...
by Sabestian Caine
07 Apr 2019, 13:32
Forum: Ask For Help
Topic: How to get and set values in a web-page using API Calls? Please help.
Replies: 4
Views: 275

Re: How to get and set values in a web-page using API Calls? Please help.

driver := ComObjCreate("Selenium.ChromeDriver") driver.AddArgument("--disable-infobars") driver.Get("https://www.autohotkey.com/boards/viewtopic.php?f=76&t=63439&p=271535&hilit=selenium#p271535") driver.findElementsById("keywords").item[1].SendKeys("hello") Esc::ExitApp Exit: driver.Quit() ExitApp ...
by Sabestian Caine
07 Apr 2019, 07:40
Forum: Ask For Help
Topic: How to get and set values in a web-page using API Calls? Please help.
Replies: 4
Views: 275

How to get and set values in a web-page using API Calls? Please help.

Hello Friends.. I am trying to learn Windows API calls and I want to ask few question regarding it- Is API calls are similar to web scrapping? As we can automate chrome and set and get values (by using selenium in chrome), that can also be done by api calls too? for example- Look at this image- 07_0...
by Sabestian Caine
02 Apr 2019, 13:05
Forum: Ask For Help
Topic: Chrome automation: codes were working fine till last few days but now throwing error. Help needed Please.
Replies: 9
Views: 481

Re: Chrome automation: codes were working fine till last few days but now throwing error. Help needed Please.

I don't know what might be causing this. Is the instance of Chrome that you're attempting to attach to being run with the --remote-debugging-port flag set to 9222 ? Yes dear lvalkov it is --remote-debugging-port flag set to 9222 lvalkov, I am using this version of chrome- 26_03_19 @7_58_58.PNG And ...
by Sabestian Caine
29 Mar 2019, 14:21
Forum: Ask For Help
Topic: Chrome automation: codes were working fine till last few days but now throwing error. Help needed Please.
Replies: 9
Views: 481

Re: Chrome automation: codes were working fine till last few days but now throwing error. Help needed Please.

I don't know what might be causing this. Is the instance of Chrome that you're attempting to attach to being run with the --remote-debugging-port flag set to 9222 ? Yes dear lvalkov it is --remote-debugging-port flag set to 9222 lvalkov, I am using this version of chrome- 26_03_19 @7_58_58.PNG And ...
by Sabestian Caine
27 Mar 2019, 10:57
Forum: Ask For Help
Topic: Chrome automation: codes were working fine till last few days but now throwing error. Help needed Please.
Replies: 9
Views: 481

Re: Chrome automation: codes were working fine till last few days but now throwing error. Help needed Please.

lvalkov wrote:
26 Mar 2019, 14:43
What does the error message dialog say?

Dear lvalkov, i am getting this error msg-
27_03_19 @9_26_00.PNG
(41.33 KiB) Downloaded 41 times

Please help sir lvalkov...

Thanks a lot...
by Sabestian Caine
26 Mar 2019, 09:39
Forum: Ask For Help
Topic: Chrome automation: codes were working fine till last few days but now throwing error. Help needed Please.
Replies: 9
Views: 481

Re: Chrome automation: codes were working fine till last few days but now throwing error. Help needed Please.

Download a version of chromedriver.exe matching your Chrome browser's version. Thanks dear valkov for your kind reply. Sir, i am currently using this version of chrome- 26_03_19 @7_58_58.PNG I downloaded the chromedriver.exe from this site- https://sites.google.com/a/chromium.org/chromedriver/downl...
by Sabestian Caine
21 Mar 2019, 11:24
Forum: Ask For Help
Topic: Chrome automation: codes were working fine till last few days but now throwing error. Help needed Please.
Replies: 9
Views: 481

Chrome automation: codes were working fine till last few days but now throwing error. Help needed Please.

I am trying to retrieve the title of active tab's website in Chrome using selenium in ahk. The following codes were working fine until last 10-15 days but now they are not working and showing an error message. My codes are these- driver := ChromeGet() MsgBox % driver.window.Title return ChromeGet(IP...
by Sabestian Caine
17 Mar 2019, 12:28
Forum: Offtopic
Topic: .xlsx file is not saving into CSV (Comma delimited) extension with text formatting. Please help?
Replies: 5
Views: 415

Re: .xlsx file is not saving into CSV (Comma delimited) extension with text formatting. Please help?

The reason is when Excel opens the csv file, it automatically converts all the cells to numbers. Try to importing the file as "text" Thanks dear oldbrother for your good answer. Please tell me what is the purpose of csv files? i.e. why we need to use .csv files? as they are not excel files as they ...
by Sabestian Caine
17 Mar 2019, 03:34
Forum: Ask For Help
Topic: Is there any code generator available for RegExReplace and RegExMatch in AutoHotKey?
Replies: 8
Views: 495

Re: Is there any code generator available for RegExReplace and RegExMatch in AutoHotKey?

If there is some RegEX code generator in other language(such as python perl c#),basically it can also be used for AHK. :lol: hello dear magusneo.. I don't know whether there is any regex code generator available for other languages or not... If you know then please provide me link/url for that. Tha...
by Sabestian Caine
17 Mar 2019, 03:32
Forum: Ask For Help
Topic: Is there any code generator available for RegExReplace and RegExMatch in AutoHotKey?
Replies: 8
Views: 495

Re: Is there any code generator available for RegExReplace and RegExMatch in AutoHotKey?

just out of curiosity automatic RegExp code generator ? sounds good though have you ever seen any one before ? in my case, negative and, testing is good enough, I guess after testing your pattern, you just wrote simple one or two variables (or copy/paste it). Thanks IMEime.. I've not seen any regex...
by Sabestian Caine
16 Mar 2019, 14:19
Forum: Ask For Help
Topic: Is there any code generator available for RegExReplace and RegExMatch in AutoHotKey?
Replies: 8
Views: 495

Is there any code generator available for RegExReplace and RegExMatch in AutoHotKey?

As, using Regular Expressions in ahk is quite complicated, so i am looking for any code generator for simplifying the use of regexmatch and regexreplace. I tried to use this tool for regular expressions- https://www.autohotkey.com/boards/viewtopic.php?f=6&t=10157&p=64010&hilit=regular+expression+too...
by Sabestian Caine
16 Mar 2019, 11:07
Forum: Offtopic
Topic: .xlsx file is not saving into CSV (Comma delimited) extension with text formatting. Please help?
Replies: 5
Views: 415

.xlsx file is not saving into CSV (Comma delimited) extension with text formatting. Please help?

I am trying to save a .xlsx file into CSV (Comma delimited), but it is not saving the file with text formatting. Please look at these images- .xlsx file with text formatting- 16_03_19 @9_12_56.PNG When i save as file into CSV (Comma delimited), then it first give an warning message and then removes ...
by Sabestian Caine
15 Mar 2019, 10:14
Forum: Ask For Help
Topic: Please make me understand why the behavior of these two arrays is different as shown in these two examples?
Replies: 13
Views: 618

Re: Please make me understand why the behavior of these two arrays is different as shown in these two examples?

IMEime wrote:
15 Mar 2019, 04:18
Right

I'm done
No more to say, as in SQLite

Regards
Thanks a lot dear IMEime.

I am quite beginner so it is quite difficult to understand programming related stuff for me, that's why i asked it again. Anyway thanks you so much...
by Sabestian Caine
15 Mar 2019, 00:21
Forum: Ask For Help
Topic: Please make me understand why the behavior of these two arrays is different as shown in these two examples?
Replies: 13
Views: 618

Re: Please make me understand why the behavior of these two arrays is different as shown in these two examples?

You're not dealing with the same types of objects. One is an AHK object, the other is an Excel object, they work with for -loops differently. Xl := ComObjActive("Excel.Application") for c in Xl.Range("a1:a11") MsgBox % c.Value Thanks dear sinkfaze for your kind reply... sir, my biggest confusion is...
by Sabestian Caine
14 Mar 2019, 13:39
Forum: Ask For Help
Topic: Please make me understand why the behavior of these two arrays is different as shown in these two examples?
Replies: 13
Views: 618

Please make me understand why the behavior of these two arrays is different as shown in these two examples?

FIRST EXAMPLE- I have these values in range a1:a10 - 14_03_19 @11_34_52.PNG Now please look at these codes- Xl := ComObjActive("Excel.Application") A := {} for key, value in Xl.Range("a1:a11") MsgBox % key ; shows empty msgbox In the above codes you can see that i convert the values of range a1:a10...

Go to advanced search