Search found 17 matches

by dani0854
11 Nov 2019, 14:19
Forum: Ask For Help
Topic: "Could not extract script from EXE" error
Replies: 1
Views: 108

"Could not extract script from EXE" error

I have a problem when compiling. I have downloaded the latest Ahk_H v1 and copied Compiler directory, I am using 32 Unicode MT .bin for compilation. The compiler gives no errors during compilation, but after its done executable gives "Could not extract script from EXE". The script itself works fine ...
by dani0854
17 Aug 2019, 14:50
Forum: Scripts and Functions
Topic: [Tool] Autohotkey project builder
Replies: 0
Views: 327

[Tool] Autohotkey project builder

Basically, I needed some kind of tool which can be used to automate project building. So I created a repository and quickly done a very raw version of that builder. Most likely it contains a lot of bugs, and lack functionality for now. But I just needed something that kind of works. It uses a modifi...
by dani0854
28 Jul 2019, 14:57
Forum: Ask For Help
Topic: Compilation
Replies: 1
Views: 209

Compilation

Ok, this is a complicated problem. I want to automate script compilation and deployment using Jenkins. And I have it set up on centos server. The problem is that AHK compiler is a .exe format. So I have tried launching it using Wine. But it doesn't work since Ahk2Exe.exe tries to create GUI even if ...
by dani0854
05 Jun 2019, 21:52
Forum: Ask For Help
Topic: pause key
Replies: 2
Views: 230

Re: pause key

Try that.

Code: Select all

q::
SendInput, {Pause}
return
by dani0854
05 Jun 2019, 21:40
Forum: Ask For Help
Topic: FileCreateShortcut behaves weird
Replies: 6
Views: 293

Re: FileCreateShortcut behaves weird

My directory is "\\Mac\Home\Desktop" because Windows is running on Parallels. But it shouldn't matter, because it creates a shortcut correctly unless a folder with the same name on desktop exists.
by dani0854
05 Jun 2019, 21:35
Forum: Ask For Help
Topic: fix a script error output Topic is solved
Replies: 12
Views: 782

Re: fix a script error output Topic is solved

If I understand correctly you want to take 3 lists and put them into one line with spaces. The one below should work. SetWorkingDir %A_ScriptDir% WordLists := ["WordList1.txt", "WordList2.txt", "WordList3.txt"] outputText := "" for index, element in WordLists{ FileRead, text, %element% Sort, text, R...
by dani0854
05 Jun 2019, 20:11
Forum: Ask For Help
Topic: FileCreateShortcut behaves weird
Replies: 6
Views: 293

Re: FileCreateShortcut behaves weird

I was running it as admin anyway. But I tried to execute the exact code you gave and the same problem appears.
by dani0854
05 Jun 2019, 19:58
Forum: Ask For Help
Topic: FileCreateShortcut behaves weird
Replies: 6
Views: 293

Re: FileCreateShortcut behaves weird

I had read the documentation. The same thing happens with that example. Try creating a folder on your desktop named "My Shortcut". And then executing the example given in the documentation. FileCreateShortcut, Notepad.exe, %A_Desktop%\My Shortcut.lnk, C:\, "%A_ScriptFullPath%", My Description, C:\My...
by dani0854
05 Jun 2019, 19:27
Forum: Ask For Help
Topic: FileCreateShortcut behaves weird
Replies: 6
Views: 293

FileCreateShortcut behaves weird

Hey, I am using FileCreateShortcut, %A_WorkingDir%\some.exe, %A_Desktop%\Some.lnk to create the shortcut. But if desktop contains a folder named "Some" for some reason it decides to create a shortcut for it rather than a shortcut for the target specified. Also, it quite hard to delete these shortcut...
by dani0854
02 May 2019, 23:41
Forum: Ask For Help
Topic: EndKey
Replies: 2
Views: 235

Re: EndKey

Ok so I have two problems.
First one is for:

Code: Select all

Input, inpt,, {Enter}
Although input invisible, one game (Gta-Sa) still seem to register that enter.
Second one is for:

Code: Select all

Input, inpt, V, {Enter}
Here I want input to be visible. However I want EndKeys to be invisible.
by dani0854
02 May 2019, 20:32
Forum: Ask For Help
Topic: EndKey
Replies: 2
Views: 235

EndKey

Code: Select all

Input, inpt,, {Enter}
When I press EndKey it also get registered by system. Is it possible to make so when EndKey is used it only triggers the script but doesn't actually press enter.
by dani0854
02 May 2019, 13:14
Forum: Ask For Help
Topic: Hotstring calling functions. Topic is solved
Replies: 1
Views: 201

Re: Hotstring calling functions. Topic is solved

class COMMAND { __New(command, argsNum := 0, argsTypes := 0, functionCalled := 0) { if Not functionCalled { this.command := command } else { this.command := functionCalled } if argsTypes { this.argsNum := argsTypes.Length() this.argsTypes := argsTypes } else { this.argsNum := argsNum this.argsTypes...
by dani0854
02 May 2019, 06:42
Forum: Ask For Help
Topic: Hotstring calling functions. Topic is solved
Replies: 1
Views: 201

Hotstring calling functions. Topic is solved

class COMMAND { __New(command, argsNum := 0, argsTypes := 0, functionCalled := 0) { if functionCalled { this.command := command } else { this.command := functionCalled } if Not argsTypes { this.argsNum := argsTypes.Length() this.argsTypes := argsTypes } else { this.argsNum := argsNum this.argsTypes...
by dani0854
01 May 2019, 06:38
Forum: Ask For Help
Topic: SAPI.SpVoice doesn't work. Topic is solved
Replies: 5
Views: 447

Re: SAPI.SpVoice doesn't work. Topic is solved

A_LastError is 0. It works on my computer but when I send it to other people it doesn't seem to work. One person I asked used Win 7 64 bit, and it doesn't work at all. I have Win 10 64 bit, and it works. For some reason a lot of people have that problem.
by dani0854
01 May 2019, 02:24
Forum: Ask For Help
Topic: SAPI.SpVoice doesn't work. Topic is solved
Replies: 5
Views: 447

SAPI.SpVoice doesn't work. Topic is solved

tts(txt) { SAPI := ComObjCreate("SAPI.SpVoice") SAPI.rate := 0 SAPI.volume := 100 try { SAPI.speak(txt) } catch { ErrorLevel := A_LastError return } ErrorLevel := 0 } tts("Hello world") MsgBox % ErrorLevel ExitApp I have this code and it only works for some people. When it doesn't work it still sho...
by dani0854
30 Dec 2018, 17:41
Forum: Ask For Help
Topic: WinHttp Error
Replies: 4
Views: 466

WinHttp Error

I have used this function today earlier and it was working fine. Now it gives an Error. GetUTC() { WebRequest := ComObjCreate("WinHttp.WinHttpRequest.5.1") WebRequest.Open("GET", "http://www.timeanddate.com/worldclock/timezone/utc") WebRequest.Send() return RegExReplace(WebRequest.ResponseText, "s)....
by dani0854
18 Apr 2018, 11:04
Forum: Ask For Help
Topic: Hiding Error pop up if compilation fails
Replies: 0
Views: 169

Hiding Error pop up if compilation fails

I have a sripts that runs other scripts with RunWait. I want to make so that when an error in the script ocures that is runing with RunWait it doesnt open a Error pop up and returns to the main script that there is an error. try { RunWait, %A_WorkingDir%\script.ahk } catch e { error := 1 } or RunWai...

Go to advanced search