Recently Browsing 0 members
No registered users viewing this page.
i have searched allot about an function that can read the INI file as a string
i mean function to read the ini files from string and not from the file directly.
i finally found an UDF that do what i want
but unfortunately all the functions work, but the function that i want it not working.
this is the udf
the function that i need is _IniReadFromString
this is the function
Func _IniReadFromString($szInput, $szSection, $szKey, $Default) $szInput = StringStripCR($szInput) Local $aRegMl = StringRegExp($szInput, "\[" & __StringEscapeRegExp($szSection) & "\]\n+(?:[^\.*?=.*\n)*" & __StringEscapeRegExp($szKey) & "=(.*)\n?(", 3) If @error Then Return SetError(1, 0, $Default) ; key not found Return $aRegMl EndFunc;==>_IniReadFromString
i hope that any one can help me
thank you in advance
I would like to create an auto login program using mouseclicks, controlclicks only, or whatever is required to send characters from Windows 10 On-Screen Keyboard to a User/Password login form. I thought I would start with OSK to NotePad. Using mouseclicks to enter ID/Password seems more secure than typing plain text. Seems like if I can get that to work I should be able to send the characters to any login form. I have tried many things but cannot send a character(s) from OSK to Notepad. Of course manually works great. Here is some code I have tried:
ControlGetFocus ("Untitled - Notepad")
; go to Notepad window
MouseMove(649, 206 , 0) ;move to Notepad, then click below
ControlGetFocus ("On-Screen Keyboard")
; go to OSK window then click on a character key
MouseMove(642, 807 , 0) ;letter - t
ControlClick("On-Screen Keyboard","","[CLASS:OSKMainClass]","left","",642, 807)
The above move to the correct position and appear to click but focus is lost to Notepad. Any help would be appreciated.
Run("notepad.exe") GLOBAL $One = ('Line1' & _ 'Line2' & _ 'Line3' & _ 'Line4' & _ 'Line5') ClipPut($One) $Notepad = WinWait("[CLASS:Notepad]", "", 10) ControlSend("Untitled - Notepad", "", "", ("^v")) Instead of having this paste as Line1Line2Line3Line4Line5
How can I make it paste it into notepad as (without double spacing.)
Checkout this why "OR" not works thats my code
Global $color = [0xE74747,0xE94747] Func Refresh() $StartConst = $Start ; reset value While $StartConst <> $End Local $i $i += 10 $StartConst += 17 $col = PixelGetColor($StartConst, $StartConst, $Title) ; get color ;For $t = 0 to 2 ; <- i know it could be done in for loop but it not works in my program If $col <> $color Then ; <- why this not works Global $NowVal = $i ; GUICtrlSetData($m_actual, $NowVal) ; ExitLoop EndIf ;Next WEnd EndFunc I want to check 2 colors without for loop but this below not works . it checks only first value why?
If $col <> $color Or $col <> $color Then ; <- why this not works