Sign in to follow this  
Followers 0
w0uter

Autopad

2 posts in this topic

#1 ·  Posted (edited)

$h_File = 0*(GuiCreate("AutoPad", 400, 320,-1, -1 , 80674816)+GUICtrlSetData(GuiCtrlCreateEdit("", 0, 0, 400, 320), FileRead($cmdlineraw))+GuiSetState())+FileOpen($cmdlineraw, 2)
While GUIGetMsg() <> -3
WEnd
$h_File = FileWrite($h_File, GUICtrlRead(3))+FileClose($h_File)

opens the file from the cmd line

lets you edit it in a GUI interface

saves it automaticly

and that all in 4 lines of code (thanks to the tip on the wiki)

from now ill do all my script writing in it (well not really but it sounded nice :lmao:)

Edited by w0uter

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

Share this post


Link to post
Share on other sites



$h_File = 0*(GuiCreate("AutoPad", 400, 320,-1, -1 , 80674816)+GUICtrlSetData(GuiCtrlCreateEdit("", 0, 0, 400, 320), FileRead($cmdlineraw))+GuiSetState())+FileOpen($cmdlineraw, 2)
While GUIGetMsg() <> -3
WEnd
$h_File = FileWrite($h_File, GUICtrlRead(3))+FileClose($h_File)

opens the file from the cmd line

lets you edit it in a GUI interface

saves it automaticly

and that all in 4 lines of code (thanks to the tip on the wiki)

from now ill do all my script writing in it (well not really but it sounded nice ;))

:lmao:

Definately gives me some ideas... nice one! o:)


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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  
Followers 0