Search found 66 matches
- 22 Jan 2019, 11:17
- Forum: Ask for Help (v1)
- Topic: Compile Script while .exe is running Topic is solved
- Replies: 3
- Views: 1034
Re: Compile Script while .exe is running Topic is solved
I ran into this same issue before. I made a database search program that many users in my company would use. But when I needed to update it, I would have to check with all the users to make sure they had closed it (many would just leave it open and forget about it). My suggestion is to make an "ins...
- 22 Jan 2019, 10:18
- Forum: Ask for Help (v1)
- Topic: Compile Script while .exe is running Topic is solved
- Replies: 3
- Views: 1034
Compile Script while .exe is running Topic is solved
Hi all, I have an .exe program that runs a GUI. The file is located in a shared folder and a user runs it throughout the day. I sometimes have to update the script and would like to compile it after I have made the changes. The problem is that everytime I update something, I have to walk all the way...
- 11 Jan 2019, 11:14
- Forum: Ask for Help (v1)
- Topic: Find string inside outlook .msg and inside archive .zip extensions
- Replies: 5
- Views: 1744
Re: Find string inside outlook .msg and inside archive .zip extensions
try olApp := ComObjActive("Outlook.Application") ; Get the Outlook application object if Outlook is open catch { olApp := ComObjCreate("Outlook.Application") ; Create an Outlook application object if Outlook is not open CloseOutlook := true } Loop, % A_Desktop "\*.msg" { item := olApp.CreateItemFro...
- 11 Jan 2019, 10:54
- Forum: Ask for Help (v1)
- Topic: Condense a part of a script to be referred to later as a shortcut?
- Replies: 5
- Views: 1127
- 09 Jan 2019, 11:34
- Forum: Ask for Help (v1)
- Topic: IfWinExist with Special characters
- Replies: 10
- Views: 2261
Re: IfWinExist with Special characters
Try
You dont need the complete title
Code: Select all
IfWinExist, !zur the enchanter
- 03 Jan 2019, 05:54
- Forum: Ask for Help (v1)
- Topic: Do Something When A Color Is Detected At a Certain Spot
- Replies: 7
- Views: 1918
- 02 Jan 2019, 12:00
- Forum: Ask for Help (v1)
- Topic: Very new and want to write a script but don't know how...
- Replies: 15
- Views: 1749
Re: Very new and want to write a script but don't know how...
you may need to define where this code will send the text to: For example if it is a notepad, it goes like this: ^x:: ; Ctrl + x Loop, 10 { winactivate ahk_exe notepad.exe ;assuming you are sending this code to notepad. SendInput, testing one {Enter} sleep 100 ; sleep 50 ms } return If it is in a sp...
- 02 Jan 2019, 11:47
- Forum: Ask for Help (v1)
- Topic: Need a random number code
- Replies: 1
- Views: 448
- 02 Jan 2019, 05:13
- Forum: Ask for Help (v1)
- Topic: Make Loop With Timers
- Replies: 1
- Views: 618
Re: Make Loop With Timers
WinActivate ahk_exe notepad.exe ;assuming this is where you want to send the text Send, f{!}IBakedYouAPie{!} loop, 10 ;you havent mentioned how many times to loop so I've put 10 { send {enter} sleep 294381 } sleep 12199 send, OhBoyWhatFlavor?{!}PieFlavored{!} send, {enter} ;########################...
- 21 Dec 2018, 05:09
- Forum: Ask for Help (v1)
- Topic: How to read the specified line using File.ReadLine()
- Replies: 5
- Views: 4164
Re: How to read the specified line using File.ReadLine()
I have a notepad testing.txt containing this: this is the 1st line this is the 2nd line this is the 3rd line this is the 4th line fileread, contents, %A_Desktop%/testing.txt ;reads the notepad loop, parse, contents, `n ;read notepad line by line { if a_index = 3 ;if line number = 3 line%a_index% = %...
- 21 Dec 2018, 05:05
- Forum: Ask for Help (v1)
- Topic: How to replace string in a line in a file without deleting file? Topic is solved
- Replies: 3
- Views: 989
Re: How to replace string in a line in a file without deleting file? Topic is solved
fileread, contents, %A_Desktop%/testing.txt ;reads the notepad loop, parse, contents, `n { if instr(a_loopfield,"a") ;if line contains "a" { if instr(a_loopfield,"01") ;if line contains "01" { stringreplace, contents, contents, 01, 03, All ;replace "01" with "03" } } } ;replace the notepad with cha...
- 18 Dec 2018, 04:51
- Forum: Ask for Help (v1)
- Topic: Help, script not working Topic is solved
- Replies: 5
- Views: 1164
Re: Help, script not working Topic is solved
delete the 1st line that says AutoLVLup
- 12 Dec 2018, 12:02
- Forum: Ask for Help (v1)
- Topic: Help using a Ternary Operator to Format Time
- Replies: 6
- Views: 1296
Re: Help using a Ternary Operator to Format Time
Code: Select all
FormatTime, today,, MM/dd/yyyy
value := 1
if value = 1
{
msgbox %today%
}
else
{
msgbox value is not 1
}
return
- 12 Dec 2018, 05:09
- Forum: Ask for Help (v1)
- Topic: can Loop help repeated "Send" more steady
- Replies: 8
- Views: 1959
Re: can Loop help repeated "Send" more steady
in that case, you could delay the start of your code by a few seconds after the browser is loaded
add this to the start of your code:
sleep, 5000 ;waits 5 seconds before launching the next script lines
add this to the start of your code:
sleep, 5000 ;waits 5 seconds before launching the next script lines
- 10 Dec 2018, 09:40
- Forum: Ask for Help (v1)
- Topic: Noob here,
- Replies: 1
- Views: 472
Re: Noob here,
This code repeats for 10 times
loop, 10
{
mouseclick, right
sleep 750
mouseclick, left
}
exitapp
To specify where you needs to click, you need to mentio co-ordinates on the screen
https://autohotkey.com/docs/commands/MouseClick.htm
loop, 10
{
mouseclick, right
sleep 750
mouseclick, left
}
exitapp
To specify where you needs to click, you need to mentio co-ordinates on the screen
https://autohotkey.com/docs/commands/MouseClick.htm
- 10 Dec 2018, 04:49
- Forum: Ask for Help (v1)
- Topic: can Loop help repeated "Send" more steady
- Replies: 8
- Views: 1959
Re: can Loop help repeated "Send" more steady
when you open a site on the browser, the cursor doesnt guarantee that it always lands on the same place everytime.
so you can write a code at the start of your script that clicks a specific location.
so you can write a code at the start of your script that clicks a specific location.
Code: Select all
Mouseclick, left, x,y
- 10 Dec 2018, 04:46
- Forum: Ask for Help (v1)
- Topic: newbie need some help on autohotkey
- Replies: 2
- Views: 634
Re: newbie need some help on autohotkey
Your code works fine.
How are you unable to test it?
You can use SciTE4AutoHotkey to write and test your code.
http://fincs.ahk4.net/scite4ahk/
How are you unable to test it?
You can use SciTE4AutoHotkey to write and test your code.
http://fincs.ahk4.net/scite4ahk/
- 07 Dec 2018, 11:15
- Forum: Ask for Help (v1)
- Topic: Press the Esc key to end the Loop.
- Replies: 4
- Views: 5787
Re: Press the Esc key to end the Loop.
put this at the end of your code
Code: Select all
esc::exitapp
- 07 Dec 2018, 08:59
- Forum: Ask for Help (v1)
- Topic: Always on top message
- Replies: 3
- Views: 885
Re: Always on top message
MsgBox, 4096, Your title, your message text ;shows OK button where option = 0+4096 = 4096
MsgBox, 4100, Your title, your message text ;shows Yes/No button where option = 4 + 4096 = 4100
https://autohotkey.com/docs/commands/MsgBox.htm
MsgBox, 4100, Your title, your message text ;shows Yes/No button where option = 4 + 4096 = 4100
https://autohotkey.com/docs/commands/MsgBox.htm
- 03 Dec 2018, 10:48
- Forum: Ask for Help (v1)
- Topic: Merging two scripts in one file
- Replies: 10
- Views: 1547
Re: Merging two scripts in one file
try
IfWinactive, ahk_exe program.EXE
also try removing the loop
IfWinactive, ahk_exe program.EXE
also try removing the loop