-
Posts
436 -
Joined
-
Last visited
About JoHanatCent
- Birthday August 17
Profile Information
-
Member Title
Just for Fun
-
Location
Centurion, South Africa
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
JoHanatCent's Achievements
Universalist (7/7)
13
Reputation
-
@ad777 - Thank you for all your efforts. I'll rather not do the last suggested changes. It looks a bit extreme for my problem. Besides I may want to use Edge from time to time ; > @Werty - Yes I did that setting. But Edge sometimes just takes over any way. So I'm back to my initial Tab and send keys. Ckecking with Assoc .pdf every hour. Then only run the correction.
-
I found this in your registry address. Deleted the MSEdgePDF entry. It did delete. Restarted the PC. That entry was no longer in the registry. BUT Edge still open the PDF files. Again right click on the file. Changed to Acrobat. Everything works with Acrobat. Also checked the file assoc and FType they changed to Acrobat. It was about two hours later and Edge is back! I don't even use Edge as a browser. I'm using Chrome. (I even did some recommended changes in Edge to stop it. Not working!!!!!)
-
Sorry it is not working. Checked if registry entries worked - it did. Checked if Assoc changed - it did. Checked if Ftype changed = it did. Edge still open pdf files. <<< Very frustrating! Right clicked on a pdf file and changed to Adobe - it worked. Adobe opened the PDF files. <<< Very happy But 12 hours later it is all back to Edge !!! (No restart no updates nothing just like magic)
-
It all looks familiar. So I tried in your order as described above. See attached result. I also checked assoc and ftype. They show indeed acrobat. BUT Edge still open pdf files! #RequireAdmin $DosCMD = 'Assoc .pdf=pdffile' $DosCMD2 = 'Ftype pdffile=C:\Program Files\Adobe\Acrobat DC\Acrobat.exe %*';you might want to change path to the folder of Acrobat.exe RunWait(@ComSpec & ' /C ' & $DosCMD, '', @SW_Show) RunWait(@ComSpec & ' /C ' & $DosCMD2, '', @SW_Show) sleep(2000) RunWait(@ComSpec & ' /C ' & 'd:\temp\run.bat', @SW_Show) sleep(2000) RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\OpenWithList","z","REG_SZ","C:\Program Files\Adobe\Acrobat DC\Acrobat.exe") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\OpenWithList","MRUList","REG_SZ","z") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\OpenWithProgids","pdffile","REG_BINARY","") sleep(5000) RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\UserChoice","Progid","REG_SZ","pdffile")
-
Done that. See first post. It does change when one check BUT Edge is still opening the pdf file. There are also no policies set.
-
Still stuck. Tried this as well: $iPID = Run("explorer.exe /select, d:\temp\tow.pdf");Any pdf file should do Sleep(500) Send("{SHIFTDOWN}") Sleep(500) Send("{f10}") Sleep(500) Send("o") Sleep(500) Send("c") Send("{SHIFTUP}") Sleep(1500) $A = ProcessClose($iPID) Sleep(500)
-
I'm trying to make it easier to set Acrobat as default for .pdf files. None of these helps because it just keeps on opening with Edge. Tried assoc, ftype, xml setting and even registry settings. The only way is to go to file settings and manually change it. This is what I have so far but would like to do the whole thing without using TAB's $DosCMD = 'start ms-settings:defaultapps' RunWait(@ComSpec & ' /C ' & $DosCMD, '', @SW_Show)
-
Yes
-
SOLVED - Transparent GUI Object
JoHanatCent replied to Siwa's topic in AutoIt General Help and Support
Have you tried: GUICtrlCreateDate with example in help? -
Cannot Minimize 'Magnifier'
JoHanatCent replied to zeenmakr's topic in AutoIt General Help and Support
Use Run RunWait will "pauses script execution until the program finishes." -
Rskm reacted to a post in a topic: [Solved] Create borders around excel range
-
[Solved] Create borders around excel range
JoHanatCent replied to AnonymousX's topic in AutoIt General Help and Support
You can try $oExcel.ActiveSheet.range("F2:G3").BorderAround(1) -
_Excel_RangeWrite - Worksheet object? - (Moved)
JoHanatCent replied to rawmud's topic in AutoIt General Help and Support
Can you provide an example of your notepad files? I will be a lot easier to use FileReadToArray and the write to the exel file? -
Subz reacted to a post in a topic: Activate Excel Window
-
Do _Excel_Open once Then the WorkBooks. Don't need to switch Windows to get the values: #include <Excel.au3> Local $oExcel = _Excel_Open() ;Open Test1 Excel Workbook Local $ofile = @ScriptDir & "\test1.xlsx" Local $oWorkbook = _Excel_BookOpen($oExcel, $ofile) ;Open Test2 Excel Workbook Local $mfile = @ScriptDir & "\test2.xlsx" Local $mWorkbook = _Excel_BookOpen($oExcel, $mfile) ;Read Workbook data and display Local $read1 = _Excel_RangeRead($oWorkbook, Default, "B2") ; Cell B1 in Test1 workbook contains the word Test1 Local $read2 = _Excel_RangeRead($mWorkbook, Default, "B2") ; Cell B1 in Test2 workbook contains the word Test2 MsgBox(0, 0, $read1 & @CR & $read2) ;Returns the correct values.
-
Remove figure from the open workbook Excel
JoHanatCent replied to LazyVasily's topic in AutoIt General Help and Support
* Delete the part belonging to _Excel_BookOpen. * Put the title of the Excel window in $sWorkBook = * Use _Excel_BookAttach($sWorkbook, "Title") Working just as well. -
Remove figure from the open workbook Excel
JoHanatCent replied to LazyVasily's topic in AutoIt General Help and Support
@Lazy Why do you write about "filename" ? This is as used in _Excel_BookAttach. Look at the help example. Tested and working as requested: #include <Excel.au3> #include <MsgBoxConstants.au3> Local $sWorkBook = "1.xls" Local $oExcel = _Excel_Open() If @error Then Exit Msgbox($MB_ICONERROR, "Error", "Error creating Excel object! @error = " & @error & ", @extended = " & @extended) Local $oWorkbook = _Excel_BookOpen($oExcel, @ScriptDir & "\1.xls") If @error Then MsgBox($MB_SYSTEMMODAL, "Excel UDF: _Excel_BookAttach Example", "Error opening workbook '" & @ScriptDir & "\1.xls'." & @CRLF & "@error = " & @error & ", @extended = " & @extended) _Excel_Close($oExcel) Exit EndIf Local $oWorkBook = _Excel_BookAttach($sWorkbook, "filename") If @error Then Exit Msgbox($MB_ICONERROR, "Error", "Error attaching to the workbook! @error = " & @error & ", @extended = " & @extended) $oWorkBook.ActiveSheet.Shapes.Range("Oval 1").Delete If @error Then Exit Msgbox($MB_ICONERROR, "Error", "Error deleting shape! @error = " & @error & ", @extended = " & @extended)