Search found 509 matches

by noname
21 Feb 2018, 07:50
Forum: Ask For Help
Topic: Multi GUI Image Refresh?
Replies: 4
Views: 762

Re: Multi GUI Image Refresh?

You are absolutely right BoBo it only works with bmp filetypes , by coincidence i used a bmp to test it ......... :oops: Using gdip you can use other filetypes but it makes a lot more code or you need to include Tic's gdip library.But i think it is worthwhile apart from using layered windows it is t...
by noname
21 Feb 2018, 05:34
Forum: Ask For Help
Topic: Check if connection to server and do something Topic is solved
Replies: 10
Views: 1934

Re: Check if connection to server and do something Topic is solved

Image


Masonjar13 has a valid point.But if your router is not powered through the UPS the check is enough.I would use this instead of pinging for just looking if power is off.
Actually i would install a USB hub or card ,it is only a few euros on amazon ;)
by noname
20 Feb 2018, 12:35
Forum: Ask For Help
Topic: Multi GUI Image Refresh?
Replies: 4
Views: 762

Re: Multi GUI Image Refresh?

If you want to fast update images without flickering you will need to draw direct on the device context . code from Skan : https://autohotkey.com/board/topic/73440-gui-image-flicker/ example without resizing the original image ( i would use Tic's Gdip library if resizing was needed) #SingleInstance,...
by noname
20 Feb 2018, 10:01
Forum: Ask For Help
Topic: Check if connection to server and do something Topic is solved
Replies: 10
Views: 1934

Re: Check if connection to server and do something Topic is solved

Why not getting a USB Port card ? Skan has provided the code for checking inernetconnection , tried it on win10 .The code is basic you need to adapt it to your needs ;) #persistent SetTimer, check_connection, 300000 ; 5min = 5*60*1000 ms return check_connection: If ConnectedToInternet() return else ...
by noname
19 Feb 2018, 12:59
Forum: Ask For Help
Topic: Could not get the webpage source into a variable Topic is solved
Replies: 5
Views: 851

Re: Could not get the webpage source into a variable Topic is solved

You can try this it downloads the same text as urldownloadtofile ,code posted by jNizM see https://autohotkey.com/boards/viewtopic.php?t=3291 ;urlDownloadToFile, http://demorg.net/, index.txt ;see jNizM https://autohotkey.com/boards/viewtopic.php?t=3291 msgbox % downloadtostring( "http://demorg.net"...
by noname
16 Feb 2018, 13:17
Forum: Ask For Help
Topic: Please help on RegExMatch
Replies: 3
Views: 913

Re: Please help on RegExMatch

Just a quick try (btw you made a type fault with <End> must be <END> ) Two options i did not know if you only wanted the text without the marker texts. STR = Somestring`r`n<START>`r`nText1`r`nText2`r`nText3`r`n<END>`r`nTEST StartStr = <START> EndStr = <END> if (RegExMatch(STR, "`as)" StartStr "(.*)"...
by noname
15 Feb 2018, 08:38
Forum: Ask For Help
Topic: Port knocking / Remote Control without actual network interaction
Replies: 2
Views: 533

Re: Port knocking / Remote Control without actual network interaction

By coincidence evilC just mentioned a way to have a trigger on a lan PC by using a shared folder.If you have file/printer sharing enabled it seems a nice way to do it!

https://autohotkey.com/boards/viewtopic.php?f=5&t=44257
by noname
15 Feb 2018, 08:30
Forum: Ask For Help
Topic: Execute file remotely via ip+tcp port
Replies: 9
Views: 1339

Re: Execute file remotely via ip+tcp port

File_Hash(sFile, SID = "CRC32") { nSize:= File_WriteMemory(sFile, sBuffer) Return Crypt_Hash(&sBuffer, nSize, SID) } File_AES(sFileFr, sFileTo, sPassword, SID = 256, bEncrypt = True) { If !(1 + hFileFr := File_CreateFile(sFileFr, 3, 0x80000000, 1)) Return "File not found!" nSize := File_GetFileSize...
by noname
15 Feb 2018, 06:05
Forum: Ask For Help
Topic: Execute file remotely via ip+tcp port
Replies: 9
Views: 1339

Re: Execute file remotely via ip+tcp port

Here is a zip file with a backup of TheGood's archive :
https://www.dropbox.com/s/a9mlk4expmsn4 ... d.zip?dl=1

Have you looked ad PsExec to run on a remote PC?

https://docs.microsoft.com/en-us/sysint ... ads/psexec
by noname
14 Feb 2018, 05:54
Forum: Ask For Help
Topic: Mimic Windows' TIMEOUT.EXE command
Replies: 6
Views: 879

Re: Mimic Windows' TIMEOUT.EXE command

Here is some basic code for timeout , you can always compile ahk code to exe . To run this code as ahk file where 1220 is the sleeptime in ms, any key pressed will exit the program : run, timeout.ahk 1220 timeout code: Loop, %0% ; For each parameter: { param := %A_Index% break } Loop, 5000 ; any key...
by noname
13 Feb 2018, 14:38
Forum: Scripts and Functions
Topic: yet another spinner
Replies: 19
Views: 3817

Re: yet another spinner

https://i.imgur.com/KwHxVry.png Nice one Wolf_II .Setting smoothing mode improves the image.( the setting you lost somewhere ? :) ) It is easy to rotate png to get the spinning effect but i only managed to rotate with a square image to keep it 100% centered while rotating. ;------------------------...
by noname
12 Feb 2018, 06:56
Forum: Scripts and Functions
Topic: [ Proof Of Concept ] Scrollable image list ( supports .gifs)
Replies: 11
Views: 4029

Re: [ Proof Of Concept ] Scrollable image list ( supports .gifs)

Thanks for sharing Sjc1000 , this is an excellent example in so many ways! :)
by noname
12 Feb 2018, 02:47
Forum: Ask For Help
Topic: how to check #IfWinActive, if window name starts with space?
Replies: 3
Views: 637

Re: how to check #IfWinActive, if window name starts with space?

You can use regex in settitlematchmode

example:

Code: Select all

SetTitleMatchMode, regex

title:="  two_space_in_title"
gui ,+alwaysontop
gui ,show, w200 h200 ,%title%
return

#ifwinactive ^\s\stwo_space  
numpad0::
msgbox ok
return

guiclose:
exitapp
by noname
06 Feb 2018, 14:57
Forum: Ask For Help
Topic: UrlDownloadToFile
Replies: 4
Views: 889

Re: UrlDownloadToFile

Maybe the directory does not exist ?

Try in your script directory:

Code: Select all

UrlDownloadToFile, https://autohotkey.com/download/1.1/version.txt, %A_ScriptDir%\AutoHotkey Latest Version.txt
if errorlevel
msgbox error %errorlevel%
by noname
06 Feb 2018, 06:20
Forum: Ask For Help
Topic: Can gdi+ load custom fonts from .ttf files? Topic is solved
Replies: 6
Views: 1161

Re: Can gdi+ render on desktop behind icons and can i somehow load custom fonts from .ttf files? Topic is solved

Hi BoBo ,

You can take a look at the mechanical clock / timer , it extracts all code to run it (including font and gdip lib).I only test on 32bit ahk so maybe it does not work on 64bit ahk .

https://autohotkey.com/boards/viewtopic.php?t=21300

Greetings,
by noname
06 Feb 2018, 00:54
Forum: Ask For Help
Topic: Can gdi+ load custom fonts from .ttf files? Topic is solved
Replies: 6
Views: 1161

Re: Can gdi+ render on desktop behind icons and can i somehow load custom fonts from .ttf files? Topic is solved

This is an adaption from the default using Private Fonts.You have to have the "real" name of the font and its filename. Gdip_PrivateFontToGraphics(pGraphics, Text, Options, Fontfile,FontName, Width="", Height="", Measure=0) { IWidth := Width, IHeight:= Height RegExMatch(Options, "i)X([\-\d\.]+)(p*)"...
by noname
04 Feb 2018, 11:21
Forum: Ask For Help
Topic: Working with GDIP2 windows. Topic is solved
Replies: 4
Views: 798

Re: Working with GDIP2 windows. Topic is solved

you need to draw everything You can make partial changes using Gdip_SetClipRect(pGraphics, x, y, w, h, CombineMode=0) in the old version gdip but i have no experience with classes and its syntax. I tried it with the setclip in gdip2 but i failed and there is no resetclip available in gdip2. I guess...
by noname
26 Jan 2018, 03:37
Forum: Ask For Help
Topic: Including media files directly in the exe?
Replies: 9
Views: 1307

Re: Including media files directly in the exe?

You can load a font without having to create a file using PrivateFontCollection.AddMemoryFont .But as you guessed the main purpose of having used Rseding's code is to include everything in one ahk file and no need to bother with a lot of files when you post it on this forum or keep them on PC.

Go to advanced search