Search found 66 matches

by hymal7
22 Jan 2019, 11:17
Forum: Ask For Help
Topic: Compile Script while .exe is running Topic is solved
Replies: 3
Views: 772

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...
by hymal7
22 Jan 2019, 10:18
Forum: Ask For Help
Topic: Compile Script while .exe is running Topic is solved
Replies: 3
Views: 772

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...
by hymal7
11 Jan 2019, 11:14
Forum: Ask For Help
Topic: Find string inside outlook .msg and inside archive .zip extensions
Replies: 5
Views: 1238

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...
by hymal7
09 Jan 2019, 11:34
Forum: Ask For Help
Topic: IfWinExist with Special characters
Replies: 10
Views: 1395

Re: IfWinExist with Special characters

Try

Code: Select all

IfWinExist, !zur the enchanter
You dont need the complete title
by hymal7
02 Jan 2019, 12:00
Forum: Ask For Help
Topic: Very new and want to write a script but don't know how...
Replies: 15
Views: 1493

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...
by hymal7
02 Jan 2019, 05:13
Forum: Ask For Help
Topic: Make Loop With Timers
Replies: 1
Views: 448

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} ;########################...
by hymal7
21 Dec 2018, 05:09
Forum: Ask For Help
Topic: How to read the specified line using File.ReadLine()
Replies: 5
Views: 1833

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% = %...
by hymal7
21 Dec 2018, 05:05
Forum: Ask For Help
Topic: How to replace string in a line in a file without deleting file? Topic is solved
Replies: 3
Views: 806

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...
by hymal7
18 Dec 2018, 04:51
Forum: Ask For Help
Topic: Help, script not working Topic is solved
Replies: 5
Views: 853

Re: Help, script not working Topic is solved

delete the 1st line that says AutoLVLup
by hymal7
12 Dec 2018, 12:02
Forum: Ask For Help
Topic: Help using a Ternary Operator to Format Time
Replies: 6
Views: 1082

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
by hymal7
12 Dec 2018, 05:09
Forum: Ask For Help
Topic: can Loop help repeated "Send" more steady
Replies: 8
Views: 1427

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
by hymal7
10 Dec 2018, 09:40
Forum: Ask For Help
Topic: Noob here,
Replies: 1
Views: 368

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
by hymal7
10 Dec 2018, 04:49
Forum: Ask For Help
Topic: can Loop help repeated "Send" more steady
Replies: 8
Views: 1427

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.

Code: Select all

Mouseclick, left, x,y
by hymal7
10 Dec 2018, 04:46
Forum: Ask For Help
Topic: newbie need some help on autohotkey
Replies: 2
Views: 494

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/
by hymal7
07 Dec 2018, 11:15
Forum: Ask For Help
Topic: Press the Esc key to end the Loop.
Replies: 3
Views: 821

Re: Press the Esc key to end the Loop.

put this at the end of your code

Code: Select all

esc::exitapp
by hymal7
07 Dec 2018, 08:59
Forum: Ask For Help
Topic: Always on top message
Replies: 3
Views: 613

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
by hymal7
03 Dec 2018, 10:48
Forum: Ask For Help
Topic: Merging two scripts in one file
Replies: 10
Views: 1316

Re: Merging two scripts in one file

try
IfWinactive, ahk_exe program.EXE

also try removing the loop

Go to advanced search