topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 19, 2024, 2:34 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - skrommel [ switch to compact view ]

Pages: prev1 2 3 4 5 6 [7] 8 9 10 11 12 ... 38next
151
Post New Requests Here / Vista style filename editing in XP
« on: September 24, 2008, 08:30 PM »
 :) One of the improvements in Vista is that it doesn't select the file type when you edit a filename.
Here's a quick hack to have this behaviour in XP, too!

It's called TheEnd!

TheEnd - Unselect the file type when renaming files in XP.

Features:

- Press F2 to rename a file.
- Or click a filename slowly two times.



You'll find the downloads and more info at 1 Hour Software by Skrommel.

Skrommel

152
Post New Requests Here / Re: IDEA: Desktop Bring to front
« on: September 24, 2008, 07:04 PM »
 :tellme: Or is FF3 fighting for the F1 key? Try changing the code.

Skrommel

153
Post New Requests Here / Re: IDEA: Desktop Bring to front
« on: September 24, 2008, 07:00 PM »
 :tellme: Really? There's no code in there to access anything other that Program Manager. Do you have another shell?

Skrommel

154
Post New Requests Here / Re: IDEA: Desktop Bring to front
« on: September 24, 2008, 06:43 PM »
 :) Try DeskTop!

Press F1 to show the desktop ontop of the other windows.

To change the hotkey, just edit the *F1:: line below.

Skrommel

;DeskTop.ahk
; Press F1 to show the desktop ontop of the other windows
;Skrommel @ 2008

#SingleInstance,Force
#NoEnv
SetWinDelay,0
SendMode,Input
SetWorkingDir,%A_ScriptDir%
DetectHiddenWindows,On

WinGet,desktop,Id,ahk_class Progman
Gui,-Caption +LastFound -Resize +AlwaysOnTop
Gui,Show,X0 Y0 W0 H0
gui:=WinActive("A")
OnExit,EXIT
Return

*F1::
TOGGLE:
If detached<>1
{
  SysGet,work,MonitorWorkArea
  parent:=DllCall("SetParent",UInt,desktop,UInt,gui)
  WinMove,ahk_id %gui%,,0,0,%workRight%,%workBottom%
  detached=1
}
Else
{
  DllCall("SetParent",UInt,desktop,UInt,parent)
  WinMove,ahk_id %gui%,,0,0,0,0
  detached=0
}
Return


GuiSize:
If ErrorLevel=1 ;Minimize
If detached=1
  Gosub,TOGGLE
Return

GuiClose:
If detached=1
  Gosub,TOGGLE
Return

EXIT:
If detached=1
  Gosub,TOGGLE
ExitApp

155
Post New Requests Here / Re: Idea: Pop out from directory
« on: September 23, 2008, 05:59 PM »
 :) I've started using ExtractNow from www.extractnow.com and plan to never extract a single archive manually again! Download and donate!

Skrommel

Features
- Supports ZIP, RAR, ISO, BIN, IMG, IMA, IMZ, 7Z, ACE, JAR, GZ, LZH, LHA, TAR, SIT archive formats
- Drag and drop files or folders from Windows Explorer to extract them
- Simple user interface and sleek design in a small package
- Recursively search through folders for archives (Just drag and drop them)
- Delete files or close program after extraction options
- Windows explorer file associations for all supported archive types
- Extract files into current directory, named folder, or favorite folder of choice
- System tray icon on Minimize and Always on top features
- Integrates with Windows Explorer via special context menu items

156
Post New Requests Here / Re: IDEA: ignore too early clicks
« on: September 23, 2008, 02:44 AM »
 :) Try WaitForIt!

It prevents accidental clicking on popup windows or when using "snap to" mouse settings.
To change the delay, just edit the delay= line in the code.

Skrommel

;WaitForIt.ahk
; Prevent accidental clicking on popup windows or when using "snap to" mouse settings
;Skrommel @ 2008

delay=1000  ;Time to wait in milliseconds

#SingleInstance,Force
SetWinDelay,0
Gui,+LastFound +OwnDialogs
hWnd:=WinExist()
DllCall("RegisterShellHookWindow",UInt,hWnd)
msgNum:=DllCall("RegisterWindowMessage", Str,"SHELLHOOK")
OnMessage(msgNum,"ShellMessage")
active:=WinActive("A")
OnExit,EXIT
Return


LBUtton::
MouseGetPos,mx,my,mwin,mctrl
If (mwin=active)
{
  If (A_TickCount-activated>delay)
    MouseClick,L,,,1,0,D,
}
Else
  MouseClick,L,,,1,0,D,
Return


~LButton Up::
Return


ShellMessage(wParam,lParam)
{
  Global active,activated,mwin,delay

  If wParam=4  ;HSHELL_WINDOWACTIVATED=4 HSHELL_WINDOWCREATED=1
  IfWinExist,ahk_id %lParam%
  {
    active:=lParam
    activated:=A_TickCount
  }
  If (active=mwin)
    activated:=A_TickCount-delay
}

EXIT:
  DllCall( "DeregisterShellHookWindow", UInt,hWnd ) ; Redundant, I guess!
ExitApp

157
Post New Requests Here / Re: IDEA: Toggle Fullscreen of Control
« on: September 05, 2008, 11:00 AM »
 :) I had this exact program on my old computer, shareware, but I can't remember it's name or where I found it, so I tried creating something like it myself a while back, but I never completed it. I'll go looking for either of them.

Skrommel

158
 :) Try SmallMeasure!

It's a simple screen ruler. Just move the two "corners" to measure the distance.
When the mousebutton is down, you can use the arrow keys for fine grain movement.

Skrommel


;SmallMeasure.ahk
; A simple screen ruler
; Move the corners to measure the distance
; When the mousebutton is down, use the arrow keys for fine grain moving
;Skrommel @ 2008

#SingleInstance,Force
SetWindelay,0
CoordMode,ToolTip,Screen

size=15

Gui,1:+LastFound +Border -Caption +ToolWindow +AlwaysOnTop
gui1:=WinExist()
Gui,1:Color,0000FF
Gui,1:Margin,0,0
Gui,1:Font,S100
Gui,1:Add,Text,GMOVE Vvfrom,% Chr(255)
Gui,1:Show,W%size% H%size%
WinSet,Region,0-0 %size%-0 0-%size%,ahk_id %gui1%

Gui,2:+LastFound +Border -Caption +ToolWindow +AlwaysOnTop
gui2:=WinExist()
Gui,2:Color,FF0000
Gui,2:Margin,0,0
Gui,2:Font,S100
Gui,2:Add,Text,GMOVE Vvto,% Chr(255)
Gui,2:Show,W%size% H%size%
WinSet,Region,%size%-0 %size%-%size% 0-%size% ,ahk_id %gui2%
Return


~LButton::
MouseGetPos,mx,my,mwin,mctrl
If mwin In %gui1%,%gui2%
{
  moving=1
  SetTimer,MEASURE,100
  Gosub,MEASURE
}
Return

~LButton Up::
If moving=1
{
  moving=0
  SetTimer,MEASURE,Off
  ToolTip
}

~*Right::
If moving=1
  MouseMove,1,0,0,R
Return

~*Left::
If moving=1
  MouseMove,-1,0,0,R
Return

~*Up::
If moving=1
  MouseMove,0,-1,0,R
Return

~*Down::
If moving=1
  MouseMove,0,1,0,R
Return

MOVE:
 PostMessage,0xA1,2,,,A
Return

MEASURE:
  MouseGetPos,mx,my,mwin,mctrl
  WinGetPos,wx2,wy2,,,ahk_id %gui2%
  WinGetPos,wx1,wy1,,,ahk_id %gui1%
  ToolTip,% "(" wx1 "," wy1 ") - (" wx2 "," wy2 ") = (" wx2+size-wx1 "," wy2+size-wy1 ") and " Round(Sqrt((wx2+size-wx1)**2+(wy2+size-wy1)**2)) " pixels long"
Return

159
 :) It seems I made a similar tool a little while back. Have a look at

https://www.donation....msg101263#msg101263

Skrommel

160
 :tellme: Some software must be detecting the change my script is making, 'cause there's no gui element in there except it shows the mouse settings dialog to force an update when swapping back.

Skrommel

161
 :tellme: Have you tried if Accents works with unicode chars?

Skrommel

162
 :) Done!

Skrommel

163
 :) Try this AutoHotkey script!

Almost untested, so please test it before you distribute it or use it on any vital files.

Skrommel

FileSelectFolder,folder,,2,Please select a folder
If folder=
  ExitApp
Loop,%folder%\*.msf,0,1
{
  SplitPath,A_LoopFileLongPath,name,dir,ext,name_no_ext,drive
  IfExist,%dir%\%name_no_ext%.sbd
  {
    FileGetAttrib,attrib,%dir%\%name_no_ext%.sbd
    IfInString,attrib,D
      FileMove,%dir%\%name_no_ext%.msf,%dir%\%name_no_ext%.msf.old
  }
}

164
 :) Try SwapMouseButtons!

Just press Windows-S to swap the left and right mouse buttons.

Skrommel

;SwapMouseButtons.ahk
; Press Windows-S to swap mouse buttons
;Skrommel @ 2008

#SingleInstance,Force
SendMode,Input
SetWindelay,0
SetKeyDelay,0

#s::
RegRead,swapped,HKEY_CURRENT_USER,Control Panel\Mouse,SwapMouseButtons
If swapped<>1
{
  Run,RUNDLL32 USER32.DLL`,SwapMouseButton
  RegWrite,REG_SZ,HKEY_CURRENT_USER,Control Panel\Mouse,SwapMouseButtons,1
}
Else
{
  Run,RUNDLL32.EXE SHELL32.dll`,Control_RunDLL main.cpl @0`,0
  WinWait,ahk_class #32770
  WinActivate,ahk_class #32770
  WinWaitActive,ahk_class #32770
  Send,%A_Space%{Enter}
  RegWrite,REG_SZ,HKEY_CURRENT_USER,Control Panel\Mouse,SwapMouseButtons,0
}
Return

165
 :) It's got nothing to do with the original post, but here's SwapMouseButtons!

Just press Windows-S to swap mouse buttons.

Skrommel

;SwapMouseButtons.ahk
; Press Windows-S to swap mouse buttons
;Skrommel @ 2008

#SingleInstance,Force
SendMode,Input
SetWindelay,0
SetKeyDelay,0

#s::
RegRead,swapped,HKEY_CURRENT_USER,Control Panel\Mouse,SwapMouseButtons
ToolTip,%swapped%
If swapped<>1
{
  Run,RUNDLL32 USER32.DLL`,SwapMouseButton
  RegWrite,REG_SZ,HKEY_CURRENT_USER,Control Panel\Mouse,SwapMouseButtons,1
}
Else
{
  Run,RUNDLL32.EXE SHELL32.dll`,Control_RunDLL main.cpl @0`,0
  WinWait,ahk_class #32770
  WinActivate,ahk_class #32770
  WinWaitActive,ahk_class #32770
  Send,%A_Space%{Enter}
  RegWrite,REG_SZ,HKEY_CURRENT_USER,Control Panel\Mouse,SwapMouseButtons,0
}
Return

166
 :) Or try Info!

It displays a user defined messagebox with text and an image, and it fades in and out.

Skrommel

;Info.ahk
; Display a user defined messagebox
;Skrommel @ 2008

#SingleInstance,Ignore
#NoTrayIcon

applicationname=Info

IfNotExist,%applicationname%.ini
FileAppend,
(
`;%applicationname%.ini
`;[Settings]
`;title=Info
`;image=%A_WinDir%\Bubbles.jpg
`;imagewidth=64    ;>0
`;text=Info by www.1HourSoftware.com
`;textwidth=100    ;>0
`;position=BR      ;TL TR BL BR C
`;transparency=200 ;0-255
`;showtime=5       ;>0
`;fadeintime=1     ;>0
`;fadeouttime=2    ;>0
`;permanent=0      ;0 1
`;sound=%A_WinDir%\Media\ding.wav

[Settings]
title=Info
image=%A_WinDir%\Bubbles.jpg
imagewidth=64
text=Info by www.1HourSoftware.com
textwidth=100
position=BR
transparency=200
showtime=5
fadeintime=1
fadeouttime=2
permanent=0
sound=%A_WinDir%\Media\ding.wav
)
,%applicationname%.ini
IniRead,image,%applicationname%.ini,Settings,image
IniRead,imagewidth,%applicationname%.ini,Settings,imagewidth
IniRead,text,%applicationname%.ini,Settings,text
IniRead,textwidth,%applicationname%.ini,Settings,textwidth
IniRead,position,%applicationname%.ini,Settings,position
IniRead,transparency,%applicationname%.ini,Settings,transparency
IniRead,showtime,%applicationname%.ini,Settings,showtime
IniRead,fadeintime,%applicationname%.ini,Settings,fadeintime
IniRead,fadeouttime,%applicationname%.ini,Settings,fadeouttime
IniRead,permanent,%applicationname%.ini,Settings,permanent
IniRead,sound,%applicationname%.ini,Settings,sound

SysGet,monitorcount,MonitorCount
right=0
bottom=0
Loop,%monitorcount%
{
  SysGet,monitor,Monitor,%A_Index%
  If monitorRight>%right%
    right:=monitorRight
  If monitorBottom>%bottom%
    bottom:=monitorBottom
}

Gui,Add,Picture,W%imagewidth% H-1 Vvimage,%image%
Gui,Add,Text,W%textwidth% Vvtext,%text%
Gui,Show,NoActivate X%right%,%title%
GuiControlGet,image,Pos,vimage
GuiControlGet,text,Pos,vtext

Gui,Destroy
Gui,+LastFound +ToolWindow +AlwaysOnTop
Gui,Add,Picture,% "XM YM+" MAX(imageH,textH)/2-imageH/2 " W" imageW " H-1",%image%
Gui,Add,Text,% "X+10 YM+" MAX(imageH,textH)/2-textH/2 " W" textW,%text%
Gui,Show,NoActivate X%right%,%title%

guiid:=WinExist()
WinGetPos,guix,guiy,guiwidth,guiheight,ahk_id %guiid%

SysGet,workarea,MonitorWorkArea
If position=TL
{
  x:=workareaLeft
  y:=workareaTop
}
If position=TR
{
  x:=workareaRight-guiwidth
  y:=workareaTop
}
If position=BL
{
  x:=workareaLeft
  y:=workareaBottom-guiheight
}
If position=BR
{
  x:=workareaRight-guiwidth
  y:=workareaBottom-guiheight
}
If position=C
{
  x:=workareaLeft+(workareaRight-MonitorLeft)/2-guiwidth/2
  y:=workareaTop+(workareaBottom-workareaTop)/2-guiheight/2
}

If fadeintime>0
{
  WinSet,Transparent,0,ahk_id %guiid%
  WinMove,ahk_id %guiid%,,%x%,%y%
  now:=A_TickCount
  Sleep,10
  WinSet,Transparent,1,ahk_id %guiid%
  now:=A_TickCount-now
  steps:=fadeintime*1000/now
  increase:=
  Loop,% steps
  {
    Sleep,10
    WinSet,Transparent,% transparency/steps*A_Index,ahk_id %guiid%
  }
}
Else
  WinMove,ahk_id %guiid%,,%x%,%y%
SoundPlay,%A_WinDir%\Media\ding.wav
Sleep,% showtime*1000

If permanent=1
  Return
If fadeouttime>0
{
  WinMove,ahk_id %guiid%,,%x%,%y%
  now:=A_TickCount
  Sleep,10
  WinSet,Transparent,%transparency%,ahk_id %guiid%
  now:=A_TickCount-now
  steps:=fadeouttime*1000/now
  increase:=
  Loop,% steps
  {
    Sleep,10
    WinSet,Transparent,% transparency-transparency/steps*A_Index,ahk_id %guiid%
  }
}

GuiClose:
ExitApp
Return


MAX(a,b)
{
  If a>%b%
    Return %a%
  Return %b%
}

167
 :) I just updated the post above to show the program instead of the code, and I think there's some improvements, too.

Skrommel

168
 :) I've just updated DragLock to work properly with the Windows key, and also added options to change the hotkey.

Skrommel

169
Coding Snacks / Re: codename: CopyCap - a tool to copy caption text
« on: August 02, 2008, 06:51 AM »
 :) I've changed the name to Captain. Again, sorry lanux128.

Skrommel

170
Coding Snacks / Re: codename: CopyCap - a tool to copy caption text
« on: August 02, 2008, 03:57 AM »
 :o I'm so sorry lanux128! I thought it was a coding snack request, I couldn't see any link in your post! I'll change the name immediately!

Skrommel

171
Coding Snacks / Re: codename: CopyCap - a tool to copy caption text
« on: August 01, 2008, 09:31 PM »
:) Try this one!

Captain - Obtain or change a window's title.

Features:
- Middel click on the caption of the window you need the text of.
- Rightclick the tray menu to change hotkey.



You'll find the downloads and more info at 1 Hour Software by Skrommel.

Skrommel

172
:) Try this one!

ShortcutTip - Prompts for a description when a shortcut is created.

Features:
- It watches the Start menu and the Desktop.

You'll find the downloads and more info at 1 Hour Software by Skrommel.


Skrommel

173
Coding Snacks / Re: Display Power schedule
« on: July 22, 2008, 07:14 PM »
 :) I've added an ini-file to the script above.

Skrommel

174
 :) Try the code above, I've changed it to use the Windows key.

Skrommel

175
Coding Snacks / Re: Display Power schedule
« on: July 16, 2008, 07:40 PM »
 :) Try MonitOff!

MonitOff - Turns off the monitor at user defined idle times during the day.

Features:
- Change settings using Settings in the Tray menu.

You'll find the downloads and more info at 1 Hour Software by Skrommel.

Skrommel

Pages: prev1 2 3 4 5 6 [7] 8 9 10 11 12 ... 38next