Jump to content
Sign in to follow this  
qwer7824

autohotkey > autoit change

Recommended Posts

qwer7824

UrlDownloadToFile, http://google.com, text.sh
FileRead, A, test.sh
FileDelete, test.sh
IfInString, A, %Code%
{
 GuiControl, , TEXT, success
 Gui, Font, cGreen
 GuiControl, Font, TEXT
 GuiControl, Enable, S
}
Else
{
 GuiControl, , TEXT, fail
 Gui, Font, c4B4B4B
 GuiControl, Font, TEXT
}
GuiControl, Enable, HDC
Return

 

Please give me a hint to study...

 

Share this post


Link to post
Share on other sites
qwer7824

Posting AHK code in the AutoIt forum.....not good. Here is a hint - go to the AutoHotKey forum and post your code there.....

​sorry...

Not easy to convert.

Share this post


Link to post
Share on other sites
qwer7824

Hi, qwer7824, welcome to the forum. If you're looking to convert the code, I would look at the following in the help file:

InetGet
FileRead
FileDelete
StringInStr

Thank you
   I do not know how to use a tip look StringInStr

Share this post


Link to post
Share on other sites
SadBunny

Just to be complete: if you installed the full AutoIt package, the helpfile is available from the Scite editor by placing the cursor on a command (in a saved file!) and pressing F1. 
Or, alternatively, look here: https://www.autoitscript.com/autoit3/docs/ (though doing AutoIt from the full package Scite editor is recommended).

Another command that you'll need to convert is GUICtrlSetColor. Like every other one, that help file also has a working example to get you started.

Good luck!


Roses are FF0000, violets are 0000FF... All my base are belong to you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×