Search the Community
Showing results for tags 'Topic'.
-
Wondering about the possible ways to find a particular forum topic solely base on a given topic-number. Not working for example: (Space in '/ /' is intentional.) - http:/ /www.autoitscript.com/forum/topic/<number> - http:/ /www.autoitscript.com/forum/topic?<number> - 1) Using the BBC ... tag in forum editor and previewing the message. -- Pro: works. -- Con: only available to registered forum users. (major con in my view.) - 2) ? --- Note: remove the space in 'http:/ /www...' part. --- Topic Solved, and considered closed.
-
I am currently working on a (small) project, which will set my pc screen blank for x seconds and then turn it back on. The code looks like this now (I've copied the blackscreen func and put some other variables in): func BlackFor($time) Global $untilback = $time EndFunc BlackFor(5000); Sets how long the screen should be black, in milliseconds. func screenFlicker() Opt("WinTitleMatchMode", 4) $WM_SYSCommand = 274 $SC_MonitorPower = 61808 $Power_On = -1 $Power_Off = 2 $X = 1 $HWND = WinGetHandle("classname=Progman") DllCall("user32.dll", "int", "SendMessage", "hwnd", $HWND, "int", $WM_SYSCommand, "int", $SC_MonitorPower, "int", $Power_Off) Sleep($untilback) DllCall("user32.dll", "int", "SendMessage", "hwnd", $HWND, "int", $WM_SYSCommand, "int", $SC_MonitorPower, "int", $Power_On) endFunc screenFlicker() But, when I start a project and it works, I want to make it even better. So I thought about a GUI which sets the milliseconds to a config file. I understand the GUI part, but I need a solution of a config file. I saw a topic some months ago with a config script saver - which I can't find anymore. I've searched on Google, AutoIt forums.. can't find that excact one. It had functions like ConfgWrite and ConfgRead I think. I've looked into the AutoIt config systems, but I really want a config to be saved somewhere on a pc - easy to edit even without the editor I'll make for the script. The reason I want this screen-flicker, is that it might come good in the future :3 Even though I know that there are lots of these already... -CasterAnd