Search found 54 matches

by Paneb
17 Feb 2016, 05:03
Forum: Gaming
Topic: Event Notifier From Log File Topic is solved
Replies: 6
Views: 802

Re: Event Notifier From Log File Topic is solved

Oh my bad, the problem should be with the var

Code: Select all

 lastLine
, which is increased each time the loop start whereas it shouldn't!
Instead of always waiting for the next line to be add, the script is waiting for the line number LastLine + number of timer.
by Paneb
16 Feb 2016, 09:09
Forum: Gaming
Topic: CS:GO Bhop Script Topic is solved
Replies: 1
Views: 10648

Re: CS:GO Bhop Script Topic is solved

Suspend script on F1 maybe? F1:: Suspend Return *space:: Loop { GetKeyState,state,space,P If state = U Break Send,{space} Sleep,20 } https://autohotkey.com/docs/commands/Suspend.htm
by Paneb
16 Feb 2016, 04:01
Forum: Gaming
Topic: Event Notifier From Log File Topic is solved
Replies: 6
Views: 802

Re: Event Notifier From Log File Topic is solved

Hi! Try this one: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. #Persistent #SingleInstance Force SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWor...
by Paneb
04 Nov 2015, 03:22
Forum: Ask For Help
Topic: Run script when program is launched (newbie inside)
Replies: 12
Views: 1099

Re: Run script when program is launched (newbie inside)

I just try it with ahk_class, it is fine with Notepad with me. When I launched it, it adds Hello World! as the first sentence. But it will wait for the first instance of Notepad to close before doing it again for new ones.
by Paneb
04 Nov 2015, 02:28
Forum: Ask For Help
Topic: How to ignore mapped key
Replies: 4
Views: 733

Re: How to ignore mapped key

@Paneb: FYI, #Persistent has no effect in scripts which have hotkeys. Indeed, just a line from the test.ahk I mostly used to run some code besides mine ^^. The #SingleInstance is irrelevant too? I mean, if there is two instances it could send two hotkey at the same time no? Nevermind, I just tried ...
by Paneb
03 Nov 2015, 11:27
Forum: Ask For Help
Topic: Run script when program is launched (newbie inside)
Replies: 12
Views: 1099

Re: Run script when program is launched (newbie inside)

And to start it each time you log-in: StringTrimRight, Name, A_ScriptName, 3 IfNotExist, %A_Startup%\%Name%lnk { FileCreateShortcut, %A_ScriptFullPath%, %A_Startup%\%Name%lnk } Add this just after the #Persistent . It will create the shotcut in the startup folder (well you can also just create a sho...
by Paneb
03 Nov 2015, 04:11
Forum: Ask For Help
Topic: Notification when script end
Replies: 4
Views: 583

Re: Notification when script end

Thank for the insight! Paneb, your script fails the requirement 'when user click "OK"', because your MsgBox has no OK button. ;) Well, there is a Yes button :D . So closed yet so far :cry: ... I usually avoid using GoTo or Gosub in AHK, but I understand now why the log from my test was not displayin...
by Paneb
03 Nov 2015, 03:35
Forum: Ask For Help
Topic: How to ignore mapped key
Replies: 4
Views: 733

Re: How to ignore mapped key

Try this one:

Code: Select all


 #NoEnv
 #SingleInstance force
 #Persistent
 
 
$1::
send, QWE
return
2::
send, 1QAZ1
return
http://ahkscript.org/docs/Hotkeys.htm
by Paneb
02 Nov 2015, 10:30
Forum: Ask For Help
Topic: Notification when script end
Replies: 4
Views: 583

Re: Notification when script end

Try this: ; http://ahkscript.org/boards/viewtopic.php?f=5&t=10084 #NoEnv #SingleInstance force #Persistent F1:: GoTo LabelMyStuff Return LabelMyStuff: { /* Your stuff */ Send {a} ; Just to do somehting, god damn'it! ;You want to add those two GoTo checkEnd Return } ;You need this block too checkEnd:...
by Paneb
02 Nov 2015, 03:18
Forum: Ask For Help
Topic: auto run Hotkey on start up
Replies: 2
Views: 454

Re: auto run Hotkey on start up

And if you are, like me, a little bit lazy, just add this at the beginning of each of your script: StringTrimRight, Name, A_ScriptName, 3 ;On vérifie si un raccourci est déjà présent dans le dossier startup de l'utilisateur. Si non (premier lancement) on le créé. IfNotExist, %A_Startup%\%Name%lnk { ...
by Paneb
02 Nov 2015, 03:06
Forum: Ask For Help
Topic: Script stop working
Replies: 2
Views: 450

Re: Script stop working

Oh, I didn't see this one! But it doesn't really help, no change after the correction :(. Something strange is, if I run the script in from an ahk file (on my computer), the snipping tool launches, but if I compiled it and try to run it it fails with a wrong parameter message (path appears to have a...
by Paneb
30 Oct 2015, 04:59
Forum: Ask For Help
Topic: Script stop working
Replies: 2
Views: 450

Script stop working

Hi everyone! I get a small problem with one of my script, and I honestly don't know how to solve it. I made a quick one for a friend in order to save it some time using the snipping tool. Here the current script : #SingleInstance force #NoEnv #Persistent SendMode Input SetWorkingDir %A_ScriptDir% . ...
by Paneb
29 Oct 2015, 11:20
Forum: Ask For Help
Topic: Need advice for my code - working 98% of the time
Replies: 3
Views: 793

Re: Need advice for my code - working 98% of the time

Hey, there is a limit of characters which can be read for one loop, read, are you sure it is not exceeded?
by Paneb
29 Oct 2015, 11:07
Forum: Ask For Help
Topic: Convert/interpret string date?
Replies: 4
Views: 2053

Re: Convert/interpret string date?

Check this : http://ahkscript.org/docs/commands/FormatTime.htm if you have timestamp. Otherwise check http://autohotkey.com/board/topic/18760 ... dhh24miss/ then come back to the first link :D.

Go to advanced search