Sign in to follow this  
Followers 0
danishmo

A programmers dream...

8 posts in this topic

#1 ·  Posted (edited)

Ok, this script is usefull for programmers. Feel free to edit/use the script as long as credit is given to me in some way.

This script is nice for people who program (like html) where you usually have the tags in caps, "<HTML>". You have to hold down the shift key while typing the entire thing. Sometimes it gets annoying. Well with this, you can have it do it for you!

#NoTrayIcon
#include <GUIConstants.au3>

HotKeySet("^!z", "shiftdown")
HotKeySet("^!a", "shiftup")
HotKeySet("^q", "show")
HotKeySet("^!q", "hide")

Func shiftdown()
    Send("{SHIFTDOWN}")
EndFunc
Func shiftup()
    Send("{SHIFTUP}")
EndFunc
Func show()
    WinMove("Version 1.0", "", 1, 1)
EndFunc
Func hide()
    WinMove("Version 1.0", "", -500, -500)
EndFunc

$GUI = GUICreate("Version 1.0", 225, 100, 1, 1, $WS_POPUP, BitOR($WS_EX_DLGMODALFRAME, $WS_EX_TOPMOST, $WS_EX_TOOLWINDOW));Thanks SmOke_N for this ;http://www.autoitscript.com/forum/index.php?showtopic=30630&hl=hide+window <<link to the script
GUISetState (@SW_SHOW)
GUICtrlCreateLabel("Made by Alex Williams. danishmo@gmail.com", -1, -1); Please keep this intact

$button1 = GUICtrlCreateButton("This does nothing", 3, 13, 220, 85)

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $button1
            MsgBox(0, "This really does nothing", "I added this so that I could have a loop. Enjoy my program!")
    EndSelect
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd

I had the button that does nothing in there because I was going to let people change the hotkey. Then I realized everyone, or most people, can change the hotkey themselves. So I left it there the loop :P

Edited by danishmo

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Just a question Instead of pressing Shift 1 time to make < and then a second time for > and write html inside it.

I think i would use the shift instied pressing 3 keys just for taking Shift up and down

Edit when hiding why not use?

Winsetstate("Title","Text",@SW_HIDE)

and when showing

Winsetstate("Title","Text",@SW_SHOW)

Edited by rambo3889

My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

But what if you had to type a really long tag?

<IMG HEIGHT="##" WIDTH="##" SRC="image.gif">

I wouldnt want to hold shift through all of that. Maybe I'm just lazy, but I figured someone out there could get use out of it.

EDIT:

I didn't know how to hide it. Thats why I posted it so people can work on it/learn from it.

Edited by danishmo

Share this post


Link to post
Share on other sites

Ever heard of Caps lock and second the IMG HEIGHT doesnt need to be uppercase


My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites

Ever heard of Caps lock and second the IMG HEIGHT doesnt need to be uppercase

Lol turn on caps lock and press the numbers. It still has numbers. This makes the signs, !(&@^$!&#, come up. Like I said, I made this because I thought someone could use it. If you cant find a use for it please stop arguing and basically saying its useless.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Nope it doesnt try it self Well it doesnt on my pc what about use Num Lock

Sorry I DIDnt say it was useless just pointed out that it was easier to press 1 key.

Ill stop argumentien now

Edited by rambo3889

My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites

Nope it doesnt try it self Well it doesnt on my pc what about use Num Lock

Sorry I DIDnt say it was useless just pointed out that it was easier to press 1 key.

Ill stop argumentien now

Thats ok. It works fine on my computer.

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