Search found 360 matches

by SirSocks
23 Aug 2021, 09:25
Forum: Ask for Help (v1)
Topic: ctrl windows d help
Replies: 2
Views: 303

Re: ctrl windows d help

This should work......

Code: Select all

F2::
send, {Ctrl down}{LWin Down}d{Ctrl Up}{LWin Up}
return
by SirSocks
19 Aug 2021, 21:34
Forum: 脚本函数
Topic: AHK源代码加密器 v3.3
Replies: 148
Views: 141497

Re: AHK源代码加密器 v3.1

@viet77 as mentioned in the documentation.....
When you want to Reload your own script, the built-in Reload command will fail, You can use Reload() function instead (it's added when encrypted).
by SirSocks
17 Aug 2021, 08:30
Forum: Scripts and Functions (v1)
Topic: gdipCharts - draw charts on your GUI using GDI+
Replies: 36
Views: 15772

Re: gdipCharts - draw charts on your GUI using GDI+

How can data be added to an array and visualized in gdipCharts? I read the documentation, but I didn't see any examples of pushing to an array. The code below does not work. Any help and guidance would be appreciated. #SingleInstance Force #Include gdipChart.ahk DataVar := [] Loop, 14 { DataVar.Push...
by SirSocks
28 Jul 2021, 07:24
Forum: Scripts and Functions (v1)
Topic: Base64 encoder/decoder for Binary data
Replies: 19
Views: 17622

Re: Base64 encoder/decoder for Binary data

Thank you for the function and examples. It works perfectly for me. :clap:
by SirSocks
25 Jul 2021, 22:24
Forum: Ask for Help (v1)
Topic: Simple and quick way to protect program
Replies: 3
Views: 330

Re: Simple and quick way to protect program

Here's one way to make your script expire.

Code: Select all

ExpireDate := 20210728120000 ; year month day hour minute seconds 
if ( A_NOW >= ExpireDate )
{
    ExitApp
}
by SirSocks
21 Jul 2021, 15:37
Forum: Ask for Help (v1)
Topic: Change GUI Control from hotkey
Replies: 3
Views: 235

Re: Change GUI Control from hotkey

It looks like Gui, New is interfering with the GuiControl. If you remove Gui,New your code will work as expected.
Documentation: Gui, New

Code: Select all

Gui, Add, Text, vVar, Text1
Gui, Show
f5::
   GuiControl, , Var, Text2 ;-- when pressing f5 nothing happens, Gui control still says "Text1"
Return
by SirSocks
19 Jul 2021, 17:55
Forum: Ask for Help (v1)
Topic: Multiple If statements on the same line Topic is solved
Replies: 8
Views: 1023

Re: Multiple If statements on the same line Topic is solved

boiler wrote:
19 Jul 2021, 14:31

Code: Select all

If !((A_LoopFileExt = "xlsx") OR (A_LoopFileExt = "pdf") OR (A_LoopFileExt = "txt")) ; Accepted filetypes.
  <code for not allowed>
Else
  <code for allowed>
@boiler That is very helpful! I'll start using ! before the double bracket. :clap:
by SirSocks
19 Jul 2021, 14:21
Forum: Ask for Help (v1)
Topic: Multiple If statements on the same line Topic is solved
Replies: 8
Views: 1023

Re: Multiple If statements on the same line Topic is solved

@Smile_ awesome! Thanks for providing an alternative. :thumbup:
by SirSocks
19 Jul 2021, 12:33
Forum: Ask for Help (v1)
Topic: Multiple If statements on the same line Topic is solved
Replies: 8
Views: 1023

Multiple If statements on the same line Topic is solved

What is the proper syntax for multiple if statements on the same line? All help and guidance are appreciated, Thank you. The code below does not work. Gui, add, text,, Drag and drop xlsx, pdf, or txt file here. gui, show, w250 h250 return GuiDropFiles: Loop, Files, %A_GuiEvent% { If (A_LoopFileExt !...
by SirSocks
18 Jul 2021, 19:33
Forum: Ask for Help (v1)
Topic: space help
Replies: 2
Views: 251

Re: space help

Try code below, it's untested.

Code: Select all

F1::
StopLoop := 0
Loop,
{
Send, {space} 
Sleep 50 
If (Stoploop = 1)
     {
     Break
     } 
}
Return

F2::
StopLoop := 1
Return

Esc::
Exitapp
by SirSocks
10 Jul 2021, 22:06
Forum: Tutorials (v1)
Topic: jeeswg's dates tutorial
Replies: 3
Views: 31439

Re: jeeswg's dates tutorial

This is very informative and helpful. Thank you for all of your tutorials. :bravo:
by SirSocks
08 Jul 2021, 15:44
Forum: Ask for Help (v1)
Topic: Resizing the active window
Replies: 3
Views: 2274

Re: Resizing the active window

You can keep a window above the taskbar by using AlwaysOnTop. Try making the window "AlwaysOnTop" then resize the window. Winset, Alwaysontop, , A ; active window will be set as AlwaysOnTop This example works for me, using notepad as the window. ^w:: ; CTRL W WinSet, AlwaysOnTop , , ahk_exe notepad....
by SirSocks
08 Jul 2021, 14:50
Forum: Scripts and Functions (v1)
Topic: TextToPic() : Converts a text control to picture control (with limitations)
Replies: 14
Views: 1905

Re: TextToPic() : Converts a text control to picture control (with limitations)

This is what I meant. Some Bootstrap like Buttons https://i.imgur.com/Me4ulBT.gif That looks great. Hope something like that gets implemented in AHK soon. I went for the rounded buttons as there are too many rectangles already. :) Seems like the request for colored buttons isn't on the list anytime...
by SirSocks
05 Jul 2021, 15:44
Forum: Ask for Help (v1)
Topic: Change GUI color when mouse hover Topic is solved
Replies: 4
Views: 499

Re: Change GUI color when mouse hover Topic is solved

Go it working. Full working code below.... Thanks for the guidance mikeyww Gui, Color, Teal Gui,Font, S20 Gui, add, text, x0 y60 w200 center, Drag and drop file here Gui, show, w200 h200 return GuiDropFiles: Msgbox, %A_GuiEvent% return ~LButton:: MouseGetPos, , , Win_ID WinGetTitle, titleVar, ahk_id...
by SirSocks
05 Jul 2021, 13:46
Forum: Ask for Help (v1)
Topic: Change GUI color when mouse hover Topic is solved
Replies: 4
Views: 499

Re: Change GUI color when mouse hover Topic is solved

I got a bit closer, but it's not working when the user hovers with a file. (example below) https://i.imgur.com/4XIjso5.gif Gui, Color, Teal Gui,Font, S20 Gui, add, text, x0 y60 w200 center, Drag and drop file here OnMessage(0x201, "WM_LBUTTONDOWN") Gui, show, w200 h200 return GuiDropFiles: Msgbox, %...
by SirSocks
05 Jul 2021, 13:16
Forum: Ask for Help (v1)
Topic: Change GUI color when mouse hover Topic is solved
Replies: 4
Views: 499

Change GUI color when mouse hover Topic is solved

Hello How can the color of a GUI change, when the user hovers with a file? (Example gif below) Example.... https://i.imgur.com/8QEbd5G.gif Gui, Color, Teal Gui,Font, S20 Gui, add, text, x0 y60 w200 center, Drag and drop file here OnMessage(0x200, "WM_MOUSEMOVE") Gui, show, w200 h200 return GuiDropFi...

Go to advanced search