Jump to content

autohotkey > autoit change


Recommended Posts

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...

 

Link to comment
Share on other sites

  • Moderators

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

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • Moderators

Look in the help file for StringInStr, and run the example in the help file to see how it works.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...