Search found 443 matches

by Sabestian Caine
Today, 11:26
Forum: Ask For Help
Topic: How to retrieve full path of currently opened folder?
Replies: 16
Views: 5857

Re: How to retrieve full path of currently opened folder?

Try this: CopyFile("::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\\?\usb#vid_22d9&pid_2764#zlmnp74dnjoj8tfe#{6ac27878-a6fa-4155-ba85-f98f491d4f33}\SID-{10001,,53529321472}\{420EA89F-0000-0000-0000-000000000000}\{E41123DC-FFFF-FFFF-0000-000000000000}", "C:\My Folder") CopyFile(filePath, destDir) { RegEx...
by Sabestian Caine
Yesterday, 12:26
Forum: Ask For Help
Topic: How to retrieve full path of currently opened folder?
Replies: 16
Views: 5857

Re: How to retrieve full path of currently opened folder?

It is the full path, for me my script shows the same:     https://i.imgur.com/wybujpH.png To launch such path you need to escape all the commas via accent like this `,`, . Dear teadrinker you really helped me a lot.. Please tell me one last thing- If I want to copy few files from my mobile phone to...
by Sabestian Caine
Yesterday, 12:13
Forum: Ask For Help
Topic: How to show MS Excel data into key value pair using Associative Array?
Replies: 11
Views: 2649

Re: How to show MS Excel data into key value pair using Associative Array?

When i run these codes, It always shows 9 in msgbox. I am not understanding why it is showing 9 in msgbox every time- xl:=comobjactive("excel.application") for key, value in xl.range("a1:b3") MsgBox % value Could you please explain what is the problem with the codes?. You're not accessing a propert...
by Sabestian Caine
Yesterday, 10:12
Forum: Ask For Help
Topic: How to show MS Excel data into key value pair using Associative Array?
Replies: 11
Views: 2649

Re: How to show MS Excel data into key value pair using Associative Array?

I'm not sure what you're trying to accomplish with this: Loop 3 { a[t%p%]:=xl.range("a" p).value a[k%p%]:=xl.range("b" p).value a[t%p%]:= a[k%p%] p++ } There are two problems with it. The biggest problem is that you are assigning values to a[t1], a[t2], a[t3], a[k1], a[k2], and a[k3]. The variables...
by Sabestian Caine
Yesterday, 10:09
Forum: Ask For Help
Topic: How to show MS Excel data into key value pair using Associative Array?
Replies: 11
Views: 2649

Re: How to show MS Excel data into key value pair using Associative Array?

Thanks dear Xeo786 for your reply, but your codes are not showing data of range a and b into key value pair. I know there are many ways to extract data from Excel cells and the codes suggested by you are one of them. Please tell what is the best way to show data of excel ranges into key value pairs...
by Sabestian Caine
Yesterday, 07:58
Forum: About This Community
Topic: Issues with registering, Post your username here...
Replies: 708
Views: 1138951

Re: Issues with registering, Post your username here...

I asked a question on forum about getting the path of currently opened folder and I got many replies of that topic also, but now it shows "The requested topic does not exist." I request you to tell me why my topic has been removed from the forum. The link of the topic is https://www.autohotkey.com/...
by Sabestian Caine
Yesterday, 07:09
Forum: Ask For Help
Topic: How to show MS Excel data into key value pair using Associative Array?
Replies: 11
Views: 2649

Re: How to show MS Excel data into key value pair using Associative Array?

you use .text instead .value for cell in ComObjActive("Excel.Application").Sheets("Sheet1").Range("A1:B3") msgbox, % cell.text Thanks dear Xeo786 for your reply, but your codes are not showing data of range a and b into key value pair. I know there are many ways to extract data from Excel cells and...
by Sabestian Caine
Yesterday, 04:34
Forum: Ask For Help
Topic: How to show MS Excel data into key value pair using Associative Array?
Replies: 11
Views: 2649

How to show MS Excel data into key value pair using Associative Array?

I have these values in Excel sheet- 12_08_20 @2_57_26.PNG I want each value to be shown like this by using Associative Array- 12_08_20 @2_59_55.PNG And for this I am trying to use these codes- p:=1 xl:=comobjactive("excel.application") a:={} Loop 3 { a[t%p%]:=xl.range("a" p).value a[k%p%]:=xl.range(...
by Sabestian Caine
Yesterday, 02:28
Forum: About This Community
Topic: Issues with registering, Post your username here...
Replies: 708
Views: 1138951

Re: Issues with registering, Post your username here...

Hello sir, I asked a question on forum about getting the path of currently opened folder and I got many replies of that topic also, but now it shows "The requested topic does not exist." I request you to tell me why my topic has been removed from the forum. The link of the topic is https://www.autoh...
by Sabestian Caine
09 Aug 2020, 09:10
Forum: Offtopic
Topic: How to show mobile icon as hard drive in stead of portable device?
Replies: 0
Views: 551

How to show mobile icon as hard drive in stead of portable device?

Hello.. Is there any way to show mobile icon (when I attach mobile to pc via USB cable to transfer files etc.) as hard drive in stead of portable device? please look this- 09_08_20 @7_33_46.PNG In the above image you can see that when i attach my mobile to pc it shows mobile as portable device rathe...
by Sabestian Caine
09 Aug 2020, 08:57
Forum: Ask For Help
Topic: How to retrieve full path of currently opened folder?
Replies: 16
Views: 5857

Re: How to retrieve full path of currently opened folder?

If such folder contains any items, you could try this workaround: $F10:: MsgBox % Explorer_GetActiveFolderPath() Explorer_GetActiveFolderPath() { WinGetClass, winClass, % "ahk_id" . hWnd := WinExist("A") if !(winClass ~="Progman|WorkerW|(Cabinet|Explore)WClass") Return shellWindows := ComObjCreate(...
by Sabestian Caine
08 Aug 2020, 13:30
Forum: Ask For Help
Topic: How to retrieve full path of currently opened folder?
Replies: 16
Views: 5857

Re: How to retrieve full path of currently opened folder?

Do not put % signs around the variable in FolderSize += %A_LoopFileSize% . See When to use percents . By the way, this will not give you the total size of files in the folder in cases where you have sub-folders inside the folder which also contain files. You would need to recurse into sub-folders t...
by Sabestian Caine
08 Aug 2020, 11:51
Forum: Ask For Help
Topic: How to retrieve full path of currently opened folder?
Replies: 16
Views: 5857

Re: How to retrieve full path of currently opened folder?

It's another representation of the same folder. ::{031E4825-7B94-4DC3-B131-E946B44C8DD5}\Documents.library-ms is the valid path, you can see this: Run ::{031E4825-7B94-4DC3-B131-E946B44C8DD5}\Documents.library-ms Thanks dear teadrinker... your codes are successfully running library folder when i us...
by Sabestian Caine
08 Aug 2020, 05:47
Forum: Ask For Help
Topic: How to match only those values which contains .00 using Regular Expression? Topic is solved
Replies: 5
Views: 1236

Re: How to match only those values which contains .00 using Regular Expression? Topic is solved

boiler wrote:
08 Aug 2020, 05:35
Just change the ? to a *.

By the way, it seems strange that there are commas separating only two digits in your examples.
Yes sir, it is Indian currency system which appears like this-
08_08_20 @4_15_40.PNG
08_08_20 @4_15_40.PNG (6.98 KiB) Viewed 1049 times
Anyway, thanks a lot for your great help and support... :thumbup: :bravo:
by Sabestian Caine
08 Aug 2020, 05:14
Forum: Ask For Help
Topic: How to match only those values which contains .00 using Regular Expression? Topic is solved
Replies: 5
Views: 1236

Re: How to match only those values which contains .00 using Regular Expression? Topic is solved

For one thing, you need to allow for the presence of a comma. RegExMatch(value, "m)(\d+,)?\d{1,3}\.00", obj) Note that i isn’t needed as an option since there are no letters for case sensitivity to matter. The m option doesn’t really matter here either. Also, you named the resulting match variable ...
by Sabestian Caine
08 Aug 2020, 04:21
Forum: Ask For Help
Topic: How to match only those values which contains .00 using Regular Expression? Topic is solved
Replies: 5
Views: 1236

How to match only those values which contains .00 using Regular Expression? Topic is solved

I have these long strings- 01-01-2017 DL592585 01234567890123 INR SIA RAM KUMAR By Cash 30,000.00 C VERIFIED L06123 T65432 CASH 01-01-2017 DL592585 01234567890123 INR SIA RAM KUMAR HARE RAMA11 5,000.00 C VERIFIED L06123 T65432 CASH I have a very long such kind of list and i want to get only amount i...
by Sabestian Caine
05 Aug 2020, 11:19
Forum: Ask For Help
Topic: How to retrieve full path of currently opened folder?
Replies: 16
Views: 5857

Re: How to retrieve full path of currently opened folder?

Hi Try this: $F10:: MsgBox % Explorer_GetActiveFolderPath() Explorer_GetActiveFolderPath() { WinGetClass, winClass, % "ahk_id" . hWnd := WinExist("A") if !(winClass ~="Progman|WorkerW|(Cabinet|Explore)WClass") Return shellWindows := ComObjCreate("Shell.Application").Windows if (winClass ~= "Progman...
by Sabestian Caine
05 Aug 2020, 10:40
Forum: Ask For Help
Topic: How to shift/set column B's values in front of column A in ListView? Topic is solved
Replies: 4
Views: 2082

Re: How to shift/set column B's values in front of column A in ListView? Topic is solved

Your codes are working great. But, they are showing the size of folders only. I mean if there are few files in D:\ then they are not listing them in listview. I did that because you said this: I am trying to retrieve the size of each folder in KB and MB and for it i made this script oh... it was my...
by Sabestian Caine
04 Aug 2020, 12:09
Forum: Ask For Help
Topic: How to retrieve full path of currently opened folder?
Replies: 16
Views: 5857

How to retrieve full path of currently opened folder?

Hello, I want to retrieve full path of currently opened folder and for this i tried these codes- ControlGetText, o, ToolbarWindow322, a StringTrimLeft, o, o, 9 MsgBox % o It works fine when path is something like this- 04_08_20 @10_35_42.PNG But, It doesn't work when path is something like this- 04_...
by Sabestian Caine
04 Aug 2020, 11:59
Forum: Ask For Help
Topic: How to shift/set column B's values in front of column A in ListView? Topic is solved
Replies: 4
Views: 2082

Re: How to shift/set column B's values in front of column A in ListView? Topic is solved

You can do it in a nested loop to make it simpler. You need to have all the data and add the row. If you add a row with the folder name and later add another row with the folder isze, of course it will just add a row and not replace what's in existing rows since you did nothing to specify existing ...

Go to advanced search