Search found 80 matches
- 06 Apr 2024, 01:09
- Forum: Scripts and Functions (v1)
- Topic: Imagen() : A fade-in/fade-out animator for picture control
- Replies: 63
- Views: 13006
Re: Imagen() : A fade-in/fade-out animator for picture control
any V2 for this function?
- 24 Aug 2021, 02:41
- Forum: Ask for Help (v1)
- Topic: Get last 50 lines
- Replies: 10
- Views: 799
Re: Get last 50 lines
Hello,
Try This
HTH
Try This
Code: Select all
FilePath := "D:\0.log"
Loop, Read,% FilePath
Total_Line := A_Index
StartLine := Total_Line - 50
Loop, Read, % FilePath
if (A_Index > StartLine)
Lines .= A_LoopReadLine "`n"
MsgBox, % Lines
- 30 Dec 2020, 03:23
- Forum: Ask for Help (v1)
- Topic: How to get the text information on the CMD window?
- Replies: 8
- Views: 958
Re: How to get the text information on the CMD window?
BriliantBoBo wrote: ↑30 Dec 2020, 01:30What 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 % clipboardUntested.
- 29 Dec 2020, 23:40
- Forum: Ask for Help (v1)
- Topic: How to get the text information on the CMD window?
- Replies: 8
- Views: 958
Re: How to get the text information on the CMD window?
try with this one :zhainv2013 wrote: ↑29 Dec 2020, 22:29I tried, but it didn't work. Is it because my network can't access Google directly?
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
- 29 Dec 2020, 22:10
- Forum: Ask for Help (v1)
- Topic: How to get the text information on the CMD window?
- Replies: 8
- Views: 958
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...
- 17 Aug 2020, 01:01
- Forum: Ask for Help (v1)
- Topic: Are scripts for Laptop battery possible?
- Replies: 1
- Views: 1336
- 28 Jun 2020, 21:50
- Forum: Ask for Help (v1)
- Topic: If/else/loop troubles
- Replies: 1
- Views: 656
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 ...
- 26 Mar 2020, 23:31
- Forum: Ask for Help (v1)
- Topic: Reload script
- Replies: 1
- Views: 276
Re: Reload script
Hello,
try
HTH
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
- 26 Mar 2020, 23:08
- Forum: Ask for Help (v1)
- Topic: is there more professional way to write this Topic is solved
- Replies: 8
- Views: 949
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,...
- 25 Mar 2020, 22:29
- Forum: Ask for Help (v1)
- Topic: is there more professional way to write this Topic is solved
- Replies: 8
- Views: 949
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...
- 10 Feb 2020, 23:35
- Forum: Ask for Help (v1)
- Topic: [Selenium] Change URL debug mode Topic is solved
- Replies: 1
- Views: 647
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...
- 10 Feb 2020, 11:57
- Forum: Ask for Help (v1)
- Topic: [Selenium] Change URL debug mode Topic is solved
- Replies: 1
- Views: 647
[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...
- 27 Dec 2019, 10:25
- Forum: Ask for Help (v1)
- Topic: Add Multiple Data in Single ListView Topic is solved
- Replies: 3
- Views: 639
Re: Add Multiple Data in Single ListView Topic is solved
@just me and @Odlanir
Thank you very much, all your code works very well
Thank you very much, all your code works very well
- 27 Dec 2019, 02:29
- Forum: Ask for Help (v1)
- Topic: Add Multiple Data in Single ListView Topic is solved
- Replies: 3
- Views: 639
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)...
- 28 Nov 2019, 21:04
- Forum: Ask for Help (v1)
- Topic: Services Start, Stop, Restart Help
- Replies: 2
- Views: 1565
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...
- 28 Nov 2019, 12:10
- Forum: Ask for Help (v1)
- Topic: Services Start, Stop, Restart Help
- Replies: 2
- Views: 1565
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...
- 20 Oct 2019, 11:19
- Forum: Ask for Help (v1)
- Topic: FileCopy not working Topic is solved
- Replies: 11
- Views: 1257
Re: FileCopy not working Topic is solved
Try Without "
Code: Select all
FileDelete, C:\test.txt
- 20 Oct 2019, 11:04
- Forum: Ask for Help (v1)
- Topic: Kalamity classMemory Help Topic is solved
- Replies: 4
- Views: 1044
- 20 Oct 2019, 04:28
- Forum: Ask for Help (v1)
- Topic: Kalamity classMemory Help Topic is solved
- Replies: 4
- Views: 1044
- 20 Oct 2019, 02:12
- Forum: Ask for Help (v1)
- Topic: Kalamity classMemory Help Topic is solved
- Replies: 4
- Views: 1044
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 ...