Search found 78 matches

by Spark
30 Dec 2020, 03:23
Forum: Ask For Help
Topic: How to get the text information on the CMD window?
Replies: 8
Views: 159

Re: How to get the text information on the CMD window?

BoBo wrote:
30 Dec 2020, 01:30
What about to pipe the output to the clipboard instead of a file?
url := "www.google.com"
Run % comspec " /c ping.exe " . url . " -n 1 | clip",, Hide
ClipWait
MsgBox % clipboard
Untested.
Briliant :clap: :clap:
by Spark
29 Dec 2020, 23:40
Forum: Ask For Help
Topic: How to get the text information on the CMD window?
Replies: 8
Views: 159

Re: How to get the text information on the CMD window?

zhainv2013 wrote:
29 Dec 2020, 22:29
I tried, but it didn't work. Is it because my network can't access Google directly?
try with this one :

Code: Select all

Run %comspec% /c "ping.exe www.google.com -n 1 > %A_Temp%\ping.txt",, Hide
Sleep, 1000
FileRead,Ping,%A_Temp%\ping.txt
MsgBox, % Ping
by Spark
29 Dec 2020, 22:10
Forum: Ask For Help
Topic: How to get the text information on the CMD window?
Replies: 8
Views: 159

Re: How to get the text information on the CMD window?

maybe something like this : Run %comspec% /c "ping.exe www.google.com -n 1 > %A_Temp%\ping.txt",, Hide FileRead,Ping,%A_Temp%\ping.txt RegExMatch( Ping, "time=(.*)ms", Ping ) If (Ping1>100) MsgBox, 16, Alert, %Ping1% Else MsgBox, 64, Ping Time, %Ping1% https://autohotkey.com/board/topic/42649-readin...
by Spark
28 Jun 2020, 21:50
Forum: Ask For Help
Topic: If/else/loop troubles
Replies: 1
Views: 554

Re: If/else/loop troubles

maybe something like this? #s:: xl := ComObjActive("Excel.Application") loop, 10 { cellvalue :=xl.activecell.value if (cellvalue = 2) xl.ActiveCell.Offset(1,0).Select ; Move Down else { xl.activecell.value := 2 ; Change number "2" xl.ActiveCell.Offset(1,0).Select ; Move Down } } msgbox, end of loop ...
by Spark
26 Mar 2020, 23:31
Forum: Ask For Help
Topic: Reload script
Replies: 1
Views: 163

Re: Reload script

Hello,
try

Code: Select all

SetTimer Start, 100

Up::
    Send, {q}
    sleep 700
    send, {q}
    Toggle := !Toggle
return

Start:
    If (!Toggle)
        Return
    sleep 1950
    send, {q}
return
HTH
by Spark
26 Mar 2020, 23:08
Forum: Ask For Help
Topic: is there more professional way to write this Topic is solved
Replies: 8
Views: 594

Re: is there more professional way to write this Topic is solved

@Spark's script should work just fine but remember that the larger the spreadsheet and the more COM calls, the slower this gets. Up to a couple of hundred rows like in your spreadsheet should be fine, but if it gets much larger, this type of script might be too slow. Instead of all those COM calls,...
by Spark
25 Mar 2020, 22:29
Forum: Ask For Help
Topic: is there more professional way to write this Topic is solved
Replies: 8
Views: 594

Re: is there more professional way to write this Topic is solved

Hello, You can use COM EXCEL try #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDi...
by Spark
10 Feb 2020, 23:35
Forum: Ask For Help
Topic: [Selenium] Change URL debug mode Topic is solved
Replies: 1
Views: 277

Re: [Selenium] Change URL debug mode Topic is solved

Found it #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consisten...
by Spark
10 Feb 2020, 11:57
Forum: Ask For Help
Topic: [Selenium] Change URL debug mode Topic is solved
Replies: 1
Views: 277

[Selenium] Change URL debug mode Topic is solved

Hello, can someone help me how to change URL with Selenium ? already read This but still no luck any help will be appreciated this is my example code so far URL = https://www.autohotkey.com ; First URL run % "chrome.exe --start-maximized -incognito --remote-debugging-port=9222" ( winExist("ahk_class...
by Spark
27 Dec 2019, 10:25
Forum: Ask For Help
Topic: Add Multiple Data in Single ListView Topic is solved
Replies: 3
Views: 420

Re: Add Multiple Data in Single ListView Topic is solved

@just me and @Odlanir

Thank you very much, all your code works very well :clap: :bravo: :dance: :superhappy:
by Spark
27 Dec 2019, 02:29
Forum: Ask For Help
Topic: Add Multiple Data in Single ListView Topic is solved
Replies: 3
Views: 420

Add Multiple Data in Single ListView Topic is solved

hello all and good day, I want to add multiple data in 1 list view but not working properly(Data1 on the left, Data2 on the right in 1 Row), any help will be appreciated. here's my code so far Gui Add, ListView, x5 y5 w1000 h500, Data1|Data2 Loop,%A_Desktop%\*.* ; example LV_Add("",, A_LoopFileName)...
by Spark
28 Nov 2019, 21:04
Forum: Ask For Help
Topic: Services Start, Stop, Restart Help
Replies: 2
Views: 592

Re: Services Start, Stop, Restart Help

Did you Include Service.ahk in your posted script? Yes, I entered the lib under my code #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its s...
by Spark
28 Nov 2019, 12:10
Forum: Ask For Help
Topic: Services Start, Stop, Restart Help
Replies: 2
Views: 592

Services Start, Stop, Restart Help

Hello all, I'm using win10 64bit, and I try to use Service.ahk to run, stop, and restart Windows Mobile-2003-based device connectivity from here but not working, can someone help me? here is my code so far MsgBox % Service_List("Active") ;Try this one but nothing happen if Service_State("Windows Mob...
by Spark
20 Oct 2019, 11:19
Forum: Ask For Help
Topic: FileCopy not working Topic is solved
Replies: 11
Views: 976

Re: FileCopy not working Topic is solved

Try Without "

Code: Select all

FileDelete, C:\test.txt
by Spark
20 Oct 2019, 11:04
Forum: Ask For Help
Topic: Kalamity classMemory Help Topic is solved
Replies: 4
Views: 657

Re: Kalamity classMemory Help Topic is solved

RHCP wrote:
20 Oct 2019, 10:28
You need to use the 64 bit version of AHK, as the game itself is 64 bit.
work like a charm, Thank You @RHCP :dance:
by Spark
20 Oct 2019, 04:28
Forum: Ask For Help
Topic: Kalamity classMemory Help Topic is solved
Replies: 4
Views: 657

Re: Kalamity classMemory Help Topic is solved

RHCP wrote:
20 Oct 2019, 02:58
Are you using the 64 bit version of AHK?
@RHCP
no, i'm still using AHK v1.1.31 (unicode 32-bit)
by Spark
20 Oct 2019, 02:12
Forum: Ask For Help
Topic: Kalamity classMemory Help Topic is solved
Replies: 4
Views: 657

Kalamity classMemory Help Topic is solved

Hello all, i'm trying to use Kalamity classMemory , The address value from CE is ok (value = 904173984), but not with AHK classMemory (value = 0). can someone help me? here's my code #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to ...
by Spark
18 Apr 2019, 11:36
Forum: Ask For Help
Topic: SQLite Multiple Blob Topic is solved
Replies: 7
Views: 1082

Re: SQLite Multiple Blob Topic is solved

Hello Spark, our code looks ok, just some remarks: Loop, % objRecordSet.ColumnCount { strReport1 := objRow[1] ; RowID strReport2 := objRow[2] ;Title Size := objRow[3].Size ; Blob Size Addr := objRow[3].GetAddress("Blob") } repeats the same actions on the same 3 columns ColumnCount times. You can sa...

Go to advanced search