Search found 91 matches

by xuezhe
19 Jun 2023, 08:51
Forum: Ask for Help (v2)
Topic: Could you help me to change the code of AHK 1.1 to AHK V2,thx
Replies: 2
Views: 296

Could you help me to change the code of AHK 1.1 to AHK V2,thx

filePath := "C:\Users\king\Desktop\002\001.txt" msgbox % "MD5:`n" HashFile(filePath,2) msgbox % "SHA:`n" HashFile(filePath,3) msgbox % "SHA512:`n" HashFile(filePath,6) /* HASH types: 1 - MD2 2 - MD5 3 - SHA 4 - SHA256 - not supported on XP,2000 5 - SHA384 - not supported on XP,2000 6 - SHA512 - not...
by xuezhe
19 Jun 2023, 07:00
Forum: Ask for Help (v2)
Topic: Could you help me to change the code of AHK 1.1 to AHK v2,thx
Replies: 2
Views: 176

Could you help me to change the code of AHK 1.1 to AHK v2,thx

; ****************************************************************** ; CMDret-AHK functions ; version 1.10 ; ; Updated: Dec 5, 2006 ; by: corrupt ; Code modifications and/or contributions made by: ; Laszlo, shimanov, toralf, Wdb ; ****************************************************************** ;...
by xuezhe
18 Dec 2017, 08:14
Forum: Ask for Help (v1)
Topic: modify the infomation of the file Topic is solved
Replies: 3
Views: 1320

Re: modify the infomation of the file Topic is solved

BoBo wrote:So that solved your problem?
yeah.that's right.
by xuezhe
18 Dec 2017, 06:05
Forum: Ask for Help (v1)
Topic: show the image of web to the gui Topic is solved
Replies: 6
Views: 2033

Re: show the image of web to the gui Topic is solved

I have a another problem for ocring the code of dom.Could you have a try to help me ?
https://autohotkey.com/boards/viewtopic.php?f=5&t=41419
by xuezhe
18 Dec 2017, 06:02
Forum: Ask for Help (v1)
Topic: show the image of web to the gui Topic is solved
Replies: 6
Views: 2033

Re: show the image of web to the gui Topic is solved

imageUrl := "http://icons.iconarchive.com/icons/aha-soft/jewelry/256/Gem-icon.png" Gui, Add, Pic,, % "HBITMAP:" . GetHBitmapFromImageURL(imageUrl) Gui, Show return GuiClose: ExitApp GetHBitmapFromImageURL(url) { oWhr := ComObjCreate("WinHttp.WinHttpRequest.5.1") oWhr.Open("GET", url, false) oWhr.Se...
by xuezhe
17 Dec 2017, 10:08
Forum: Ask for Help (v1)
Topic: show the image of web to the gui Topic is solved
Replies: 6
Views: 2033

Re: show the image of web to the gui Topic is solved

This works on Windows 7: url := "https://upload.wikimedia.org/wikipedia/commons/5/55/Tesseract.gif" width := 200 height := 200 Gui, New, -DPIScale Gui, Add, ActiveX, w%width% h%height% voDoc, htmlfile oDoc.Write("<body style='margin: 0; overflow: hidden;'><img src='" url "' width='" width "' height...
by xuezhe
17 Dec 2017, 06:18
Forum: Ask for Help (v1)
Topic: show the image of web to the gui Topic is solved
Replies: 6
Views: 2033

show the image of web to the gui Topic is solved

Could you help me . thx.
I don't want to download it to the disk.
by xuezhe
16 Dec 2017, 20:55
Forum: Ask for Help (v1)
Topic: modify the infomation of the file Topic is solved
Replies: 3
Views: 1320

Re: modify the infomation of the file Topic is solved

I have found the dsofile.dll for modifying the infomation of the file.
by xuezhe
16 Dec 2017, 09:15
Forum: Ask for Help (v1)
Topic: modify the infomation of the file Topic is solved
Replies: 3
Views: 1320

modify the infomation of the file Topic is solved

filesummary.jpg
filesummary.jpg (35.91 KiB) Viewed 1320 times
1.modfify the infomation of the file.
2. delete the infomation of the file.

thx very much.
by xuezhe
15 Dec 2017, 03:24
Forum: Ask for Help (v1)
Topic: ocr code of the web
Replies: 0
Views: 945

ocr code of the web

I use the WmCode.dll for ocr the code of web. something error happens when running the following code . I guess it because the type of str(Ansi or Unicode),but I have no idea about the usage of it.Could you help me,thx very much. dllpath:=A_SCRIPTDIR "\WmCode.dll" Msgbox DllCall("LoadLibrary","Str",...
by xuezhe
12 Dec 2017, 01:40
Forum: Ask for Help (v2)
Topic: AHK v1 → AHK v2 Topic is solved
Replies: 13
Views: 4370

Re: AHK v1 → AHK v2 Topic is solved

Actually I updated Coco's library to v2.0-a081-cad307c as I needed it for private project. I mostly used the JXON one though. I also suggested to add JSON support to AHK2 itself: https://autohotkey.com/boards/viewtopic.php?f=37&t=39309 JSON: Updated by SirRFI for AHK v2.0-a081-cad307c • Fixed error...
by xuezhe
11 Dec 2017, 04:25
Forum: Ask for Help (v2)
Topic: AHK v1 → AHK v2 Topic is solved
Replies: 13
Views: 4370

Re: AHK v1 → AHK v2 Topic is solved

What do the error messages say? Or does the script run, but not as intended? You may need to replace key with key.0, because RegExMatch returns objects in AHK v2. I don't know if Coco's script supports AHK v2, or not, however, if you're going to make the effort to convert a script to AHK v2, it's w...
by xuezhe
11 Dec 2017, 04:20
Forum: Ask for Help
Topic: AHK_L V1 → AHK_H V2
Replies: 1
Views: 2006

AHK_L V1 → AHK_H V2

who can help me to change the json to v2 from v1. some error happens when running the code after modifying.thx very much. https://github.com/cocobelgica/AutoHotkey-JSON/blob/master/Jxon.ahk json_str :=" ( { "str": "Hello World", "num": 12345, "float": 123.5, "true": true, "false": false, "null": nul...
by xuezhe
11 Dec 2017, 01:37
Forum: Ask for Help (v2)
Topic: AHK v1 → AHK v2 Topic is solved
Replies: 13
Views: 4370

Re: AHK v1 → AHK v2 Topic is solved

Issues I noticed with the script: """" -> "`"" or Chr(34) is Number -> is "Number" (or use: Number := "Number", prior to: is Number) StringReplace -> StrReplace StringGetPos -> InStr StringMid -> SubStr '% ' -> remove '% ' from (the start of parameters in) Loop lines `, -> , Link: AHK v1 to AHK v2 ...
by xuezhe
11 Dec 2017, 01:27
Forum: Ask for Help (v2)
Topic: AHK v1 → AHK v2 Topic is solved
Replies: 13
Views: 4370

Re: AHK v1 → AHK v2 Topic is solved

str:=" ( { "date": "2017.12.1", "sites": [ { "name": "qq", "site": "www.qq.com" }, { "name": "google", "site": "www.google.com" } ] } )" object:=getJsonObj(str) MsgBox json_fromobj(object) getJsonObj(str){ scriptControl:=ComObjCreate("ScriptControl") scriptControl.Language :="JavaScript" return scr...
by xuezhe
11 Dec 2017, 01:11
Forum: Ask for Help (v2)
Topic: AHK v1 → AHK v2 Topic is solved
Replies: 13
Views: 4370

Re: AHK v1 → AHK v2 Topic is solved

guest3456 wrote:this should help:
https://autohotkey.com/v2/v2-changes.htm
I have try to change it ,but error happens when runing the code after changing.
by xuezhe
11 Dec 2017, 00:55
Forum: Ask for Help (v2)
Topic: AHK v1 → AHK v2 Topic is solved
Replies: 13
Views: 4370

AHK v1 → AHK v2 Topic is solved

who can help me to change it to v2 .thx. ; Copyright © 2013 VxE. All rights reserved. ; Serialize an object as JSON-like text OR format a string for inclusion therein. ; NOTE: scientific notation is treated as a string and hexadecimal as a number. ; NOTE: UTF-8 sequences are encoded as-is, NOT as th...
by xuezhe
09 Dec 2017, 06:20
Forum: Ask for Help (v1)
Topic: slider of dom
Replies: 3
Views: 1339

Re: slider of dom

Hi, xuezhe, Try: #NoEnv #SingleInstance force CoordMode, Mouse, Screen ControlGetText,string, Edit1,ahk_class IEFrame string := "https://www.cnblogs.com/cloudgamer/archive/2008/12/24/slider.html" WebBrowser:=IEGetFromUrl(string) document:=WebBrowser.document ControlGetPos , x2, y2, Width2, Height2,...

Go to advanced search