Search found 278 matches

by Smile_
15 Sep 2020, 04:45
Forum: Ask For Help
Topic: Create an array from SplitPath - possible?
Replies: 5
Views: 73

Re: Create an array from SplitPath - possible?

Code: Select all

File := {Filedir:"", Fileext:"", FilenameNoExt:"", Filedrive:""}
Filename := "c:\temp\test.txt"
SplitPath % Filename, Filedir, Fileext, FilenameNoExt, Filedrive
For Key, Value in File
    File[Key] := %Key%
For Key, Value in File
    MsgBox %Value%
by Smile_
15 Sep 2020, 04:32
Forum: Ask For Help
Topic: SoundPlay doesn't work in my Script
Replies: 5
Views: 48

Re: SoundPlay doesn't work in my Script

Remove quotes and parentheses from that line SoundPlay, ("%A_ScriptDir%\sounds\activated.wav")
Or do it like this SoundPlay, % A_ScriptDir "\sounds\activated.wav"
by Smile_
07 Sep 2020, 11:48
Forum: Ask For Help
Topic: copy files have some character or word in some folder Topic is solved
Replies: 9
Views: 147

Re: copy files have some character or word in some folder Topic is solved

@HiSoKa
You said nothing wrong, your question was clear, anyway I'm glad to hear it helped!
by Smile_
06 Sep 2020, 13:15
Forum: Ask For Help
Topic: copy files have some character or word in some folder Topic is solved
Replies: 9
Views: 147

Re: copy files have some character or word in some folder Topic is solved

"i have folder and in this folder there are too much files i Looking forward for script for searching in the folder for every file ..." I'm sorry my bad, I was thinking of folders instead of files... This one do the job for the files. Search_Folder := "D:\test\withoutcharacter\" Move_To:= "D:\test\w...
by Smile_
05 Sep 2020, 14:47
Forum: Ask For Help
Topic: How to get this JSON data
Replies: 2
Views: 124

Re: How to get this JSON data

Jxon library: https://github.com/cocobelgica/AutoHotkey-JSON/blob/master/Jxon.ahk.

Code: Select all

#Include Jxon.ahk
o =
(
    {
        "domain": "ftrertre"
    }
)
data := jxon_load(o)
Msgbox % data.domain
by Smile_
05 Sep 2020, 13:32
Forum: Ask For Help
Topic: copy files have some character or word in some folder Topic is solved
Replies: 9
Views: 147

Re: copy files have some character or word in some folder Topic is solved

Code: Select all

Search_Folder := "C:\"
Move_To:= "D:\"
Special_Chars := ["((1))", "((2))"]
Loop, Files, % Search_Folder "\*", D
    for k, v in Special_Chars
        If InStr(A_LoopFileName, v)
            FileMoveDir, % A_LoopFileFullPath, % Move_To "\" A_LoopFileName, 1
by Smile_
05 Sep 2020, 13:14
Forum: Ask For Help
Topic: Redirecting output using > produces ugly file Topic is solved
Replies: 11
Views: 156

Re: Redirecting output using > produces ugly file Topic is solved

@john_c
Try this

Code: Select all

Run, powershell get-command > """powershell commands.txt"""
by Smile_
05 Sep 2020, 12:57
Forum: Ask For Help
Topic: Redirecting output using > produces ugly file Topic is solved
Replies: 11
Views: 156

Re: Redirecting output using > produces ugly file Topic is solved

I don't think will be different but try it like this

Code: Select all

Run, % ComSpec . A_Space . "/c" . A_Space . """" . """" . "powershell" . """" . A_Space . "get-command >" . A_Space . """" . A_ScriptDir . "\powershell commands.txt" . """" . """"
by Smile_
05 Sep 2020, 12:52
Forum: Ask For Help
Topic: Redirecting output using > produces ugly file Topic is solved
Replies: 11
Views: 156

Re: Redirecting output using > produces ugly file Topic is solved

Here an output example. CommandType Name Definition ----------- ---- ---------- Alias % ForEach-Object Alias ? Where-Object Function A: Set-Location A: Alias ac Add-Content Cmdlet Add-Computer Add-Computer [-DomainName] <... Cmdlet Add-Content Add-Content [-Path] <String[... Cmdlet Add-History Add-H...
by Smile_
05 Sep 2020, 12:46
Forum: Ask For Help
Topic: Redirecting output using > produces ugly file Topic is solved
Replies: 11
Views: 156

Re: Redirecting output using > produces ugly file Topic is solved

For me, works and the file doesn't looks ugly.
by Smile_
04 Sep 2020, 14:55
Forum: Ask For Help
Topic: Create a shortcut in the desktop folder
Replies: 4
Views: 211

Re: Create a shortcut in the desktop folder

Run this script then select your files or folders or both within an explorer window then press Ctrl + Shift + S ^+s:: Explorer_GetSelection(hwnd="") { hwnd := hwnd ? hwnd : WinExist("A") WinGetClass class, ahk_id %hwnd% if (class="CabinetWClass" or class="ExploreWClass" or class="Progman") for windo...
by Smile_
04 Sep 2020, 06:55
Forum: Gaming
Topic: Trouble reading JSON file
Replies: 6
Views: 102

Re: Trouble reading JSON file

Try call your function like this Jxon_load(vFileMemory) not like this Jxon.load(vFileMemory) . The message box here will show you nothing because the return value is an object not a text MsgBox %EDstatus% . Add % as gregster said before EDstatus.timestamp like this MsgBox % EDstatus.timestamp
by Smile_
04 Sep 2020, 06:32
Forum: Ask For Help
Topic: Using a script to run a function in another script Topic is solved
Replies: 13
Views: 316

Re: Using a script to run a function in another script Topic is solved

Include MasterScript.ahk in TempScript.ahk then call your function.
So in TempScript.ahk you should have something like this:

Code: Select all

#Include MasterScript.ahk

MyFunction("something")
MyFunction("somethingelse")
MyFunction()
by Smile_
04 Sep 2020, 06:23
Forum: Ask For Help
Topic: [Gdip] Save image and create transparency Topic is solved
Replies: 9
Views: 202

Re: [Gdip] Save image and create transparency Topic is solved

Scr1pter Here an alternative way. Download & install Image Magick from here : https://imagemagick.org/index.php Then try the following: #Include gdip_All.ahk F9:: convert = C:\Program Files\ImageMagick-7.0.10-Q16-HDRI\convert.exe datei = C:\Users\USER\Documents\AutoHotKey-Scripts\bildtest.png pToke...

Go to advanced search